command line project sync? - 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!

jmquigsx
Posts: 6
Joined: Fri Feb 16, 2007 8:28 pm

command line project sync?

It seems that if you build a project from the command line (using the /build option), advanced installer does not synchronize installer directories to the contents of the file system. Is there a way to get the synchronization behavior from the command line?

The problem I have is that we have a docs folder whose contents are changing a lot and need to be resynced in the project file. So right now my build system has to activate the installer UI so that the folder is synced in the project. Then I have to manually click the build button. I'd rather have this process automated from the command line.
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi,

I cannot reproduce this behavior on my computer. The /build command automatically refresh the content of the synchronized folders. What version of Advanced Installer you use?

Please let us know if the problem persist.

Regards,
Gigi
_______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
jmquigsx
Posts: 6
Joined: Fri Feb 16, 2007 8:28 pm

I am using AI 4.6.4. But I seem to have been wrong about this. I was assuming that after the command line build, advanced installer would resave the updated project file. But it does not do this. So the AI project file had no visible differences even though the .msi generated from it had been properly updated with the new files from the synced source directory.

I guess that I can use an /edit command to re-save the project file after the command line build.
jmquigsx
Posts: 6
Joined: Fri Feb 16, 2007 8:28 pm

I found the edit commands to do what I want:

;aic
build
save

Which I put in a file called aibuild.aic, then execute with this command line:

advancedinstaller.exe /execute project.aip aibuild.aic

Return to “Common Problems”