Synchronize content with folder from disk - 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!

Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Synchronize content with folder from disk

Using AI 7.7:
I'm using this great feature: "Synchronize content with folder from disk".
However, there are files from the directory that I'm synchronizing that I want to FORCE them to exist!
How do I do that?

Meaning: say I have a folder I'm sychronizing on:

Code: Select all

c:\me
and the files there change all the time (sometimes 5 files sometimes 10 for example and with different names also).
But one file:

Code: Select all

"c:\me\mustexist.txt"
must always be included, otherwise I want the compilation of the msi to fail.

How can I achieve that?
Dashut.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Synchronize content with folder from disk

Hi Dashut,

I'm afraid this cannot be done from Advanced Installer. The synchronizing feature simply refreshes the folders' content
at build-time or when you open the project in Advanced Installer.

There is no predefined behavior in Advanced Installer that can check/force the existence of a file before a build.

Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dashut
Posts: 142
Joined: Tue May 04, 2010 4:41 pm

Re: Synchronize content with folder from disk

Can this be added to your TODO list?
How do you suggest to do this? I really need to verify that some files exist and if not to fail the msi compilation.

Dashut.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Synchronize content with folder from disk

Hi Dashut,
Can this be added to your TODO list?
It will be added on a temporary list, if other users will request it then surely it will included in our plans for the future.
How do you suggest to do this?
Here is what you can try:
-- create a post-build event on the machine that builds the application(not installation package) to move that file in another folder
-- in Advanced Installer go to Files and Folders page and add the file manually in the folder which you have synchronized, from the new location of course

The synchronization will not affect the file added manually, i.e. files added manually will always be present in the package and after that to the content of the existent folder
it is added the one of synchronized folder.

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

Return to “Common Problems”