Page 1 of 1

Cancel of update still uninstalls current product

Posted: Sun Jun 07, 2015 3:41 pm
by scotteb
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

Re: Canel of update still uninstalls current product

Posted: Mon Jun 08, 2015 12:18 pm
by FrancescoT
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