Page 1 of 1

Silent Upgrade Issue

Posted: Wed Jun 24, 2015 5:50 am
by jkirby
We have v2.1 of our product installed on customer machines and are releasing v2.2. We have generated a new install with the same PRODUCTCODE but different REVISIONCODE. In the MSIcode, if MAINTENANCE=TRUE then we run the following before we install our files:

Install/Remove MSI Package $PRODUCTCODE$[REMOVE=ALL]

This works fine when the MSI is run manually by the user by double-clicking on the MSI file in Explorer.

However, if we run the exact same MSI silently, then everything works fine too, apart from the fact that it leaves v2.1 in Programs and Features in Windows. So our application shows up twice after the silent upgrade, once on v2.1 and once on v2.2. Double-click v2.1 and windows knows that it's been removed and asks whether you'd like to get rid of it. If you say yes then it goes and everything is tidy again.

This is how we run it silently from the command line:
msiexec /i myinstall.msi CMDLINE="/s"

I did some logging and analysed the return and error from the Install/Remove MSI Package command above and even when running silently, it reports that the uninstallation of the old version was a success. I am also an administrator on my machine and the command line window.

Can anyone please help?

Thank you

James

Re: Silent Upgrade Issue

Posted: Wed Jun 24, 2015 12:40 pm
by FrancescoT
Dear James,

please have a look at the following link and use the included script.
http://www.installaware.com/forum/viewtopic.php?f=2&t=10258

Hope this helps you.

Regards

Re: Silent Upgrade Issue

Posted: Thu Jun 25, 2015 5:49 am
by jkirby
Thank you. That script has worked, although I'm still uncertain WHY we need to manually remove the entry when upgrading in silent mode.

James.