Failed update/upgrade, previous version removed, what then? - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Failed update/upgrade, previous version removed, what then?

Hello everyone.

I wonder what state the user will be left with when he tries an update and the update fails after having removed the previous version?

Will we have to handcraft a solution to be able to deal with this case? Does Windows Installer not handle such situations?



With best regards

Clemens Anhuth
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Failed update/upgrade, previous version removed, what then?

Hi Clemens,
I wonder what state the user will be left with when he tries an update and the update fails after having removed the previous version?
When performing the upgrade, the installed version is removed automatically. Therefore, the old version will not be available anymore.

If the upgraded package fails, depending on the moment of the problem Windows Installer rollbacks the installation (or not). If the installation is rolled back, then the machine will not have any version installed. If the installation cannot be rolled back, the machine will have a broken installation of the upgraded package.
Will we have to handcraft a solution to be able to deal with this case?
I'm not sure if Windows Installer supports a solution for this. Because of the way the upgrade process works, after the old package is uninstalled there isn't much to do in order to get it back.
Does Windows Installer not handle such situations?
I'm afraid that Windows Installer assumes that the upgraded package will be installed successfully. This is because for a full upgrade the situation is similar to a clean installation: the entire package is installed on the target machine. Therefore, from the Windows Installer point of view, an upgraded package must work as expected (just like the old package).

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Failed update/upgrade, previous version removed, what then?

Hello Cosmin,

thanks for your reply.

We'll live without this full rollback functionality for starters, I guess (we hand crafted a solution for this when using NSIS, but it was considerable effort).


Ciao

clemens

Return to “Common Problems”