Dynamic file list - Advanced Installer Community
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

Dynamic file list

Hello,

I have a build process that creates a large number of files for the installer (mostly executable and dll files). The naming of these files have a specific semantic that is linked to the application feature they belong to (i.e. all files starting with "wa" will be part of the application administration module, etc). These files might be different from one build to the other: it is possible - although not frequent - that a new file is added to the application. They will, however, all end up in the same couple of folders (application files will go to the program folder, data files will go to the shared application data folder)

I would like not to have to manually edit the installer to add any of these new files. is there a way to tell the installer to pick up all the files that matches a specific pattern from a specific folder ? Alternatively, I could move the files belonging to different groups to different folders as part of the preparation process but I can't find a way to tell the installer to pick up any file in a specific folder.

Also, I have a group of files that are not created by me that must be installed along with my data folder. They contain the samples for the end users. I have the same issue with these files as with the executables: how can I tell the installer to pick up everything withing a specific directory tree (including subfolders) and put it into the installer ?

Thank you
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dynamic file list

Hello,

In order to achieve that you can synchronize your folder to a source folder on disk.
Basically, the folder synchronization works like this:
  • the synchronized folder from your project will be identical in content with the source folder from the disk.
  • if the files and folders in the synchronized folder on the disk change, this change is also made in the synchronized folder from your project.
  • if you add regular files and folders in a synchronized folder, these elements will not be affected by the synchronization.
    the synchronization is refreshed when you open the project, when you use the [ Refresh ] button in the "Files and Folders" page or when you built the project.
Also, you can edit filters that will allow you to specify which files will be added to the package. Use the [ Edit filters... ] button to do that from the Synchronize tab of the Edit Folder properties.

Please let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Fulgan
Posts: 101
Joined: Mon Feb 27, 2012 10:42 am

Re: Dynamic file list

Thank you for your answer: it is exactly what I was looking for.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Dynamic file list

You're welcome,

If you have other questions, please let us know.

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

Return to “Common Problems”