Alex99
Posts: 42
Joined: Thu Feb 14, 2013 9:28 am

Upgrade failure removes old installation

Hello,
I use AdvancedInstaller v.11.2.1. I have next uprades page:
Untitled.jpg
Untitled.jpg (38.66 KiB) Viewed 3752 times
On updrading if installation of new version fails installation of new version rollbacks, but deinstallation of old version wasn't rollback. Is there any AdvancedInstaller's way to restore old installation if new installtion fail or I have to customize upgrade behaviour manualy? And if I have to customize what information in registry I have to save before upgrade(to restore it after installation failure)?
Alex99
Posts: 42
Joined: Thu Feb 14, 2013 9:28 am

Re: Upgrade failure removes old installation

Also in order by: http://www.advancedinstaller.com/user-g ... rades.html I can't use "Install new version first and then uninstall old version" because every version components changes.
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Upgrade failure removes old installation

Hello,

This is the normal Windows Installer behavior when using the "Uninstall old version first and then install new version" upgrade order. In case of an upgrade installation failure (after the "RemoveExistingProducts" standard action) the old product version installation won't be reverted on rollback.

In order to achieve what you want you can only use the "Install new version first and then uninstall old version" upgrade order which, as you already mentioned, implies some strict rules to be fulfilled (i.e. the files' components don't change from the old version to the new one, their names and GUIDs remain the same). Please take a look on our "Windows Installer Upgrades" article.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”