Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Not Uninstalling Previous InstallShield MSI

My setup.exe generated via Advanced Installer v11.4 is not uninstalling the previous InstallShield-generated MSI, even though they use the same upgrade code.

In Advanced Installer 11.4, I have set the upgrade code to be identical to the upgrade code used in the InstallShield-generated MSI, and used a different product code. I have verified these numbers by using Microsoft's Orca tool. This is happening on Windows 7; I have not tested on Windows 8.

Oddly, in another product this exact scenario works just fine. But for this product, the AI installer just ignores the previous version.

I've read the Help pages and Forum posts, but all I really see is that one needs to use the same upgrade code ... which I already knew.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Not Uninstalling Previous InstallShield MSI

Hello,
My setup.exe generated via Advanced Installer v11.4 is not uninstalling the previous InstallShield-generated MSI, even though they use the same upgrade code.
I'm not sure why you encountered this behavior.
Since the old package is created with another tool and it is MSI-based, you can use its UpgradeCode in the Upgrades page in order to set the new package to upgrade the old one. With this method the old package is uninstalled automatically and silently right before the new installation starts.

If the previous version is not uninstalled then, the Installation Type might be different, as a per-user installation cannot upgrade a per-machine installation and a per-machine installation cannot upgrade a per-user installation.
In this case, you can use the predefined Uninstall previous versions custom action. With this custom action you can uninstall the older versions of your product, no matter what Installation Type they use (per-user or per-machine).

Please let me know if that helped.

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: Not Uninstalling Previous InstallShield MSI

Hi Dan,

I was already aware of the challenges with upgrading from one installation type to another (e.g., per-user,per-machine) ... but in this case both installers are per-machine.

I tried your custom action suggestion, and I'm not sure I did it right, but still nothing is happening to the old version. Does it make a difference that the old one is a 32-bit program, and the new one is a 64-bit, so going in different Program Files?

I can make both installers available to you; they're both very simple.
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Not Uninstalling Previous InstallShield MSI

Hello,
I can make both installers available to you; they're both very simple.
Please send me a download link to support at advancedinstaller dot com for the InstallShield MSI and your .AIP(project file) which you are using so we can investigate this? If it contains confidential information you can send us a small test project which reproduce this behavior.
Also, can you please send us a verbose log of the installation processl?

Best regards,
Dan
Dan Ghiorghita - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Dev63
Posts: 25
Joined: Mon Dec 02, 2013 8:21 pm

Re: Not Uninstalling Previous InstallShield MSI

Thanks for having Danut take a look at this.

I guess we'll never know why AI/Microsoft isnt' picking up the previous version with the same upgrade code, but with his help I was able to get the custom uninstall action to work (my mistake on the custom action was to select only the "Upgrade" checkbox). FYI, I put the custom action as the last step in the Wizards stage: works fine there for me, and that way it doesn't uninstall the old program until the user has committed to installing the new one.

Thanks for your help! You guys are great!
Dan
Posts: 4530
Joined: Wed Apr 24, 2013 3:51 pm

Re: Not Uninstalling Previous InstallShield MSI

You're always welcome,

If there is anything else I can help you with, please let me know.

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

Return to “Common Problems”