jmoleary
Posts: 53
Joined: Mon May 13, 2019 7:30 pm

Synchronized Folder build wants to edit the .AIP file

We build our MSI from a .NET publish folder using a Synchronized Folder (APPDIR ..\Publish\MyApp, Advanced Installer 24.0). The publish folder is a build output: CI cleans it, republishes, then builds the .aip from the command line. We never edit individual files in the installer project.

The problem: every time the project is built or opened in the GUI, Advanced Installer re-scans the folder and writes the resulting File/Component rows back into the .aip. If a developer’s local publish folder is out of date, a plain GUI build silently rewrites the checked-in .aip to match it. For example, Firmware_v197.bin gets swapped for an older Firmware_v190.bin, because our firmware filenames carry the version. The developer made no edits, but source control shows the project as modified, and an accidental commit would ship stale files. The project’s version attribute also gets bumped by whatever AI version opened it.

Our questions:

Is there a way to have a synchronized folder resolved only at build time, so its file list goes straight into the MSI without being persisted in the .aip? WiX’s build-time harvesting works this way, for comparison.
If not, can a build be told not to save sync results back to the project (a build-only or read-only mode, from the GUI or the command line)?
If persisting the rows is required, for example to keep component GUIDs stable between releases, what workflow do you recommend when the synced folder is a generated build output?

Thanks!
Catalin
Posts: 7845
Joined: Wed Jun 13, 2018 7:49 am

Re: Synchronized Folder build wants to edit the .AIP file

Hello,
Is there a way to have a synchronized folder resolved only at build time, so its file list goes straight into the MSI without being persisted in the .aip?
Yes, we have the "Do not save files in project" option.
Screenshot_188.png
Screenshot_188.png (270.01 KiB) Viewed 909 times
This way, the files will only be added at build time:
Screenshot_189.png
Screenshot_189.png (18.19 KiB) Viewed 909 times

Hope this helps! :)

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”