sbaebler
Posts: 18
Joined: Wed Oct 08, 2008 10:15 am

Files in synchronized folder are added to aip file

I have a synchronized folder that contains files from the my reference manual. These files change quite often.
I realized that when I open the project while the folder is not empty and then save the project again, references to all the files in the synchronized folder are stored.

Why is this the case, it blows up the size of the aip file.

Note: for one item in the synchronized folder I have a custom action defined. Is this why all files are referenced?
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Files in synchronized folder are added to aip file

Please note that the purpose of the synchronize feature is to add files from the source folder in the project. The synchronization takes place every time you
open, save and build the project, this is why the files are added to the project.
http://www.advancedinstaller.com/user-g ... onize.html

To exclude a set of files you can use the filters available.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
sbaebler
Posts: 18
Joined: Wed Oct 08, 2008 10:15 am

Re: Files in synchronized folder are added to aip file

I understand the benefit of the synchronized folder in that the content is automatically updated.

However, I do not understand what the benefit of writing these files to the configuration file is. The synchronized folder is already listed in the project file and whenever the files are used, they can be parsed from the file system. Why also list the files explicity when the folder is already listed? Is this some implementation legacy that all files must be listed in the project file?

I do not trust the changes that I perform with the Advanced Installer Gui (I'm always afraid to change some settings by accident). I always perform a diff on the xml project file before I commit any changes to our repository. Having a long project file is a disadvantage because changes are hidden in the long lists of files.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Files in synchronized folder are added to aip file

Why also list the files explicity when the folder is already listed? Is this some implementation legacy that all files must be listed in the project file?
The current design of the application is to pick the files from the list present in the project when building the output package. Since the synchronization feature was added long after that, it had to be adapted to this design, so the synchronization simply adds the files automatically to the project, thus adding/removing elements in the XML project file.

Usually the file rows from the project file are grouped in a single area from the project so the changes should be easy to skip when making the diff.

Regards,
bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”