Reset a sync. folder using AdvancedInstaller.com command - Advanced Installer Community
MarwaAhmad
Posts: 14
Joined: Mon Mar 24, 2014 2:16 pm

Reset a sync. folder using AdvancedInstaller.com command

Hello,
I have an advanced installer project which its Application Folder(in Files and Folders tab) is synchronized with a certain folder.
Now, I want to change that synchronized folder with another one using the command line (as shown in the attached figure.)

This is the old sync. folder.
C:\autobuild\programfiles\updatespublisher\test

and I want to pass a new sync. folder (using the command line) which is:
D:\programfiles\appfiles
The command I used to do this is:
AdvancedInstaller.com /edit C:\autobuild\programfiles\Installer.aip /ResetSync D:\programfiles\appfiles

But this didn't work, i got the following error:

Folder not found: D:\programfiles\appfiles.
Although that path i.e. D:\programfiles\appfiles is already exists.


did i miss parameter to be passed in the command?

Thanks in advance,
Marwa Ahmad
Attachments
old_sync.jpg
old_sync.jpg (107.78 KiB) Viewed 3146 times
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Reset a sync. folder using AdvancedInstaller.com command

Hello Ahmad,
The command I used to do this is:
AdvancedInstaller.com /edit C:\autobuild\programfiles\Installer.aip /ResetSync D:\programfiles\appfiles
Please note that you are using an incorrect Reset Synchronized command line statement. You need to point to the folder from your .AIP (project file) and not to the one from the disk in order to resets a synchronized folder from the project. So, you should have something like that:

Code: Select all

AdvancedInstaller.com /edit C:\autobuild\programfiles\Installer.aip /ResetSync APPDIR\MySyncFolder
In order to synchronizes a folder from the project with one from the disk you should use a command line like this:

Code: Select all

AdvancedInstaller.com /edit C:\autobuild\programfiles\Installer.aip /NewSync APPDIR\MySyncFolder C:\FolderFromDiskToSynchrinize
You can also take a look on the Reset Sync Folders forum thread which debates a similar subject.

Let us know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
MarwaAhmad
Posts: 14
Joined: Mon Mar 24, 2014 2:16 pm

Re: Reset a sync. folder using AdvancedInstaller.com command

Hello Dan,
Thank you it works! i executed the commands you stated; ResetSync then NewSync.

The commands were:
AdvancedInstaller.com /edit C:\autobuild\programfiles\Installer.aip /ResetSync APPDIR
then
AdvancedInstaller.com /edit C:\autobuild\programfiles\Installer.aip /NewSync APPDIR D:\programfiles\appfiles

best regards,
Marwa Ahmad
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Reset a sync. folder using AdvancedInstaller.com command

You're welcome Ahmad,

If you have other questions, please let us know.

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

Return to “Common Problems”