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!

dbrooks
Posts: 6
Joined: Tue Jul 16, 2013 6:48 pm

Folder Syncronization and continuous integration

Hello,

We've started to use folder synchronization in our AI projects. It's working for the most part, but there is an unfortunate side effect we're hoping to get some guidance to resolve.

We keep our project file in source control, and whenever a developer makes a change (e.x. modifies a dialog) the project file ends up with explicit entries for each file in the build folder on that developer's machine at that particular time. I understand that the folder sync does resolve again at build time on the CI host, effectively ignoring these explicit file entries. However, tracking changes to the project file xml in source is extremely messy, and the actual relevant change (e.x. the dialog modification) is somewhere among differences that can be ignored.

Is there a way to avoid the explicit file entries in the project file when folder sync is turned on? That would solve our problem, I think.

Thanks,

Dave Brooks
Lead Software Engineer
PreEmptive Solutions
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Folder Syncronization and continuous integration

Hello Dave,

In order to achieve that, here is what you can try.

In the Files and Folders page you can have a regular folder which is not synchronized with the folder from the disk. Here you can add the content of the folder to which you want to synchronize. This way, you will be able to build your project from Advanced Installer.

Then you can create an ;aic file which will contains the following command lines statement:
  • 1) Delete Folder Command – you need to delete that folder in order to make sure that all the resources are deleted.
    2) create a new folder which will be used for syncronization.
    3) Synchronize the created folder with the desired one using the New Synchronized Folder Command
    Please keep in mind that if some resources from this folder are further used, e.g. for shortcuts, services, schedule tasks, etc you need to recreate this functionality.
    E.g. you can use the New Shortcut Command to create a new file shortcut.
    4) Build command to build your project.
Since the save command hasn't been specified, the commands performed through the file of commands( ;aic file) will not be saved in your .AIP(project file). Your project will revert to its state, before executing the file of commands. You can take a look on the Command line article which may be useful to you.

Please let us know if that helped.

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

Return to “Building Installers”