anasrallah
Posts: 14
Joined: Tue Dec 13, 2011 7:52 pm

Dynamic Files

I'm trying to find out how to make the installer pick all files residing in a folder included with the installation and move them to a folder.
per instance I want to send the msi and exe file along with a folder called bin containing a bunch of files and I want the installer to pick whatever the folder contains and put them in the APPDIR\Bin folder. This way I don't have to rebuild the installer every time I have a new file added or removed from that folder, I will just update the folder.
Thanks
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Dynamic Files

Hi,

You can create you own custom action or use file operations for this purpose:
http://www.advancedinstaller.com/user-g ... tions.html

A more elegant approach would be to use Merge Modules:
http://www.advancedinstaller.com/user-g ... oject.html

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anasrallah
Posts: 14
Joined: Tue Dec 13, 2011 7:52 pm

Re: Dynamic Files

I tried your suggestions but I don't see any of them that could help me in my scenario.
the file move you can only move files that were chosen to be installed on one of your defined folder to another folder, I don't see how this can pick up files from a folder shipped with your installation.
same with merge modules.

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

Re: Dynamic Files

Hello,

Picking up the files from an external folder at install time is not a recommended installer approach for several reasons. One of them is that the resources will not have an associated accounted component.

You need to investigate the functionality from my last post more. For instance file operations support wildcards and can pick up all the contents from a folder. You can set the location of this folder in a per-machine location like Common Application Data folder:
http://www.advancedinstaller.com/user-g ... paths.html

You can search our user guide or press F1 in the Advanced Installer GUI and the associated article will be shown.

Another approach you could consider would be to use our "Synchronized folders" feature:
http://www.advancedinstaller.com/user-g ... lders.html
This would synchronize your folder at build time just like merge modules.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”