Copy files into specific folder - Advanced Installer Community
Farshad
Posts: 1
Joined: Sun Apr 16, 2017 11:26 am

Copy files into specific folder

Hi all. I have 2 radio buttons and i want to let users choose which drive they want to be their destination.
i mean i have for example 10 files and i want to let user choose for example C: or D:.
when they choose C or D, files will be copied there.
i dont wana interrupt installation process. it can be placed on exit dialog. these files are needed after installation.

thank you
codesynergy
Posts: 100
Joined: Fri Nov 14, 2014 10:29 pm

Re: Copy files into specific folder

Hello Farshad,

Wouldn't it be easier to use one of the built-in installation folder selection dialogs - "SetupTypeDlg" ("Custom") or "FolderDlg"? This way, the user could browse to the location they want to install to (including the drive). Otherwise, you will have to implement some logic to detect and display the available drives.


Thanks.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Copy files into specific folder

Hello and welcome to Advanced Installer forums,

As suggested by @codesynergy, you can use our predefined support to install files in custom folder. For this, you can follow the steps from the How to browse for a folder at install time article. Otherwise, you will have to implement custom logic to detect and display the available drives, you cannot hardcode them in the installer.
i dont wana interrupt installation process. it can be placed on exit dialog. these files are needed after installation.
Note that the files from the installer are copied at a given time, during the InstallFiles Action. That means you cannot install them on the ExitDialog.

Should there be any difficulty you encounter implementing something, please do not hesitate to contact me and I will gladly assist.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”