Cancel of update still uninstalls current product

Got a problem you cannot solve? Try here.
scotteb
Posts: 17
Joined: Tue Aug 17, 2010 3:35 pm

Cancel of update still uninstalls current product

Postby scotteb » Sun Jun 07, 2015 3:41 pm

Greetings! I am using IA Studio 12.

I just discovered that if a user has version 1.0 of a product installed, downloads the install package for 1.1, executes the install but cancels during the interview, then the prior version of the product as been removed. Testing shows that this is the default behavior, and does not seem to be specific to our scripts. Is that accurate? My user was upset and I don't blame them.

I am not an MSI (nor even IA) expert, but I am a developer so think I see what is happening. It appears that when NEEDSUPGRADE = true, then the currently installed package is run with REMOVE=ALL during pre-requisites, before the wizard even opens. Do I have that right?

We would like to move this so that if the user cancels the install that the current version remains untouched. How would you recommend that I accomplish that?

Thank you,
Scott
Last edited by scotteb on Thu Jun 11, 2015 12:15 pm, edited 1 time in total.

FrancescoT
Site Admin
Posts: 5361
Joined: Sun Aug 22, 2010 4:28 am

Re: Canel of update still uninstalls current product

Postby FrancescoT » Mon Jun 08, 2015 12:18 pm

Dear Scott,

by default with a full update, the install process first removes the already installed application before to proceed to install the new one.

Anyway this behavior can be changed as you want.
The code that un-installs is not hidden and it's on top of your MSIcode script. So in your case, just move it anywhere you like.

By default all the code responsible of the un-install process, if a previous installed version is found, it's comprised within the "Install Application Pre-Requisites" Code Region of the Main Script.

Hope this helps you.

Regards
Francesco Toscano
InstallAware Software

White Papers (HowTos) - http://www.installaware.com/publication ... papers.htm
Publications - http://www.installaware.com/publications-review.htm
InstallAware Help -F1 anywhere in the InstallAware IDE


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 89 guests