zura
Posts: 14
Joined: Tue Aug 19, 2014 10:19 pm

Problems with upgrade when using synchronized folders

Dear all,

I'm having a problem that I couldn't find a solution and wandering if someone can offer any advice:
I use synchronized folders in my project in order to keep installer always contain the right files from my application. The initial install works just fine but I can't make upgrade work, the process fails because the installed files get deleted and my custom action breaks when referring to those.

I found an old discussion http://www.advancedinstaller.com/forums ... =2&t=17922 with the same problem and there conclusion was that if you use install new first, uninstall old next, you can't use synchronized folders. In my case, I'm using uninstall then install option.

Does this mean that synchronized folders shouldn't be used in any case or I'm doing something wrong and there is a way to make project work and have successful upgrades and still keep synced folders?

Thanks a lot,
Zura
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Problems with upgrade when using synchronized folders

Hi Zura,

Since the Uninstall old version first and then install new version option is enabled, in this case, the installer removes the old applications entirely before installing the new applications. So, a major upgrade is essentially the removal of an older product which is replaced by a newer product. In Advanced Installer the upgrades can be configured from the UpgradesView.
Basically, the upgrade process performs the following actions:
  • -Detect and completely remove older products.
    -Install the new product.
In order to have a better view about this, can you please send us the .AIP (project file) of the old version, the .AIP of the higher version and a verbose log of the installation process when performing an upgrade to support at advancedinstaller dot com so we can investigate it? If it contains confidential information you can send us a small test project which reproduce this behaviour.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
zura
Posts: 14
Joined: Tue Aug 19, 2014 10:19 pm

Re: Problems with upgrade when using synchronized folders

Thank you Dan for your response,

Yes, I was expecting exactly that behavior. I have a custom action on uninstall and it is supposed to be run before the RemoveFiles action, but somehow I see in the logs that files are removed first and then this action fails.

I'm sending the requested files to the support now.
Thanks,
Zurab

Return to “Common Problems”