BigManStan
Posts: 20
Joined: Tue Sep 08, 2009 11:00 pm

File deletions upgrading to mixed mode installer

Hi,

I currently have two installer packages, one for 64-bit and the other 32-bit. I am trying to consolidate both packages into a mixed installer and am encountering problems with files in the mixed installer being deleted upon install.

All my installers are using the 'install new version then uninstall old version' order. This is required and cannot be changed. However, when I am performing an upgrade, the files that have been moved out of APPDIR and are in a child folder that has its contents installed into the parent folder are deleted upon upgrade.

To demonstrate, I've included 3 .aip files, one that is 32-bit, one that is 64-bit, and a mixed installer that is a higher product version and combines the files from both installers. The mixed installer has the 64-bit version of the file that is in APPDIR and the same 32-bit version of the file that is in a child folder which is conditionally installed only on 32-bit installs. (The 32/64 bit integration wizard uses this)

When upgrading from the standalone installer to the mixed installer on a 64-bit machine, the file is upgraded successfully, and not removed when the previous version is uninstalled.
When upgrading from the standalone installer to the mixed installer on a 32-bit machine, the file is installed but then deleted when the previous version is uninstalled.
I've tried the reverse of this situation, where APPDIR contains the 32-bit version of the file, and the 64-bit version is installed from a child folder into the parent and I get the same behavior, reversed.

In summary, when upgrading from a single mode to mixed mode installer, when the order of upgrading is to install the new product then uninstall the old, files that are in child folders that are conditionally installed into the parent folder are overwritten on upgrade from the non-mixed mode installer.

How can I remedy this?

Thanks,

Justin
Attachments
upgrademixed_mixed.aip
(14.56 KiB) Downloaded 303 times
upgrademixed_x64.aip
(7.54 KiB) Downloaded 337 times
upgrademixed_x86.aip
(7.44 KiB) Downloaded 534 times
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: File deletions upgrading to mixed mode installer

Hi Justin,

You can try to set the same GUID to your 32-bit files' components( old and upgraded ) from the Organization Page and enable the "Ensure that all files in this folder overwrite any installed target files" option for the same folder you have the "Install folder content into the parent folder" option enabled.

Another way would be to change the order from the Upgrades Page to "Uninstall old version first and then install new version".

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”