How to Sync Multiple folders - 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!

MatthewHall
Posts: 5
Joined: Tue Oct 30, 2012 11:52 am

How to Sync Multiple folders

I am using the advanced installer command line and I am wanting to add the contents of a folder on disk to the root directory of my project.
I have done this already by using the /NewSync but when I try and do this again for another folder I get an error saying that the Project is already Syncornised.

In the below example the %1 is the folder location that is passed to the batch file from TFS and is the location of the output files from a TFS build

Echo Syncing new folder to App Directory...
"C:\Program Files (x86)\Caphyon\Advanced Installer 9.6.1\bin\x86\advinst.exe" /Edit "C:\AdvancedInstaller\Development\MohawkDevelopmentInstall.aip" /NewSync APPDIR\Development %1

Echo Adding Dev Express Folder...
"C:\Program Files (x86)\Caphyon\Advanced Installer 9.6.1\bin\x86\advinst.exe" /Edit "C:\AdvancedInstaller\Development\MohawkDevelopmentInstall.aip" /NewSync APPDIR\Development "C:\Program Files (x86)\DevExpress\DXperience 12.2\Bin\Framework"

The effect I am after is having the files from both of the folders in the same root directory in this case APPDIR\Development

If anyone can help with this I would greatly appricate it.

Thanks

Matt
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: How to Sync Multiple folders

Hello Matt,

Please keep in mind that the synchronize folder operation is a one-to-one operation, not a one-to-many operation. So, you cannot synchronize a project folder with more than one source folder from disk.

In order to achieve what you want you can create two subfolders (e.g. Dev1 and Dev2) in your APPDIR\Development project folder and then synchronize them with the related source folder from disk. Also, if you want to install resource files from Dev1 and Dev2 folders directly into APPDIR\Development project folders, then you can enable the "Install folder content into the parent folder" option from "Folder Properties" dialog.

If you have any questions let us know.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”