Allow user to select file, then copy into install location - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

tmcallaghan
Posts: 16
Joined: Thu Mar 24, 2011 2:38 pm

Allow user to select file, then copy into install location

I can see how to allow the user to select a single file during the install process from the tutorial at http://www.advancedinstaller.com/user-g ... -file.html, how do I copy that file to my installation folder during the install process?

Thanks,
Tim
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Allow user to select file, then copy into install location

Hi,

Usually, the tutorial you followed is meant to get the selected file's path.

However, you can try to use the same logic from this tutorial and adapt it to use the selected folder path and file name from the tutorial you followed. In this case, you would have to use a custom action to parse the "MY_FILEPATH" public property.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
tmcallaghan
Posts: 16
Joined: Thu Mar 24, 2011 2:38 pm

Re: Allow user to select file, then copy into install location

Thanks for the tip.

Will I be able to have the user select a file during the install process? I need a file selection dialog that allows the user to choose a bitmap file (*.bmp). If the user selects a file I need to install that particular file into a folder off my application folder named \bitmap.

-Tim
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Allow user to select file, then copy into install location

Hi Tim,
Will I be able to have the user select a file during the install process?
Yes. First, you can try to implement this article you initially mentioned to prompt the user for a file location. Then you would need to use your own custom action to parse the "MY_FILEPATH"( which will hold the selected file's entire path ) to get the folder location and the file name. You can then try to use this information in the steps from this article so that it installs the file accordingly.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”