SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

Upgrade removes "synchronized folders"

Hi Advanced Installer Team,
when I try to update a given version to newer one the all the "synchronized folders" and its contents get deleted during the uninstall of the old version (We use "install new version first then uninstall old version"). For the given folder I have only activated ("synchronize Folder with contents from disk" and at that page chosen my "MainFeature")
Is this a known bug?
SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

Re: Upgrade removes "synchronized folders"

Update to my post:
I deactivated the "synchronized folders" feature in the following version but the contents are still getting deleted.

Example that shows what happens and what I would expect:
First install of the product:
Folder A contains file 1.jpg (Folder A is synchronized in First Installation)

Upgrade of the new product:
In the new product there still is the file 1.jpg in the given folder (and it did not change).
--> Because we use "First Install then uninstall old version" the file 1.jpg is again copied to the specific location BUT is erased during the uninstall of the oldversion at the end of the upgrade.
Why is that? I would assume that the file stays at its position.
SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

Re: Upgrade removes "synchronized folders"

We need the "Install new Version first and then uninstall old version" feature in order to perform a proper rollback when errors occur.
Should I send you the verbose log and the aip file for further investigation? I still can't figure out why some of the files are deleted while others remain as expected.

Edit: Looks like your answer has been deleted mihai?!
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Upgrade removes "synchronized folders"

Hello,

When using the "Synchronized folders" feature, you must pay special attention to the GUIDs of the files' components and the files' components structure in the Organization page, so that they remain the same. In an upgrade process with the "Install new version first and then uninstall old version" option enabled, the components GUIDs are used to verify sharing resources between versions, thus if the GUIDs will not be the same, the resources will get deleted.

You can try to synchronize the folder in the first version, disable the option( the folder will keep its file contents ) and then use that version as a template for future versions.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

Re: Upgrade removes "synchronized folders"

I removed the "synchronized Folder" attribute for the folder in the upgrading version, but it still removes the files. Any other ideas how to prevent the deletions of these files during the uninstall of the upgrade?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Upgrade removes "synchronized folders"

Hello,

You must ensure your resources have the same GUID in both versions( initial and upgrade ). You can do this from the first version by synchronizing the folder and then disabling this option( the folder will keep its file contents ). You can then use the first version as a template for any upgrade or future versions.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
SubZero
Posts: 63
Joined: Mon Mar 14, 2011 10:29 am

Re: Upgrade removes "synchronized folders"

Thanks that works! I think the user should be warned that "synchronized folder" should not be used if "First install new version, then uninstall old version" is activated in order to avoid the given problems.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Upgrade removes "synchronized folders"

Hello,

You are welcome, I'm glad the solution works for you. Thank you for your suggestion, I will forward your request to the technical writing team and we will consider including it in the user guide for a future version.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”