Silent Upgrade Issue

Got a problem you cannot solve? Try here.
jkirby
Posts: 16
Joined: Wed Feb 19, 2014 5:44 am

Silent Upgrade Issue

Postby jkirby » Wed Jun 24, 2015 5:50 am

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

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

Re: Silent Upgrade Issue

Postby FrancescoT » Wed Jun 24, 2015 12:40 pm

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
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

jkirby
Posts: 16
Joined: Wed Feb 19, 2014 5:44 am

Re: Silent Upgrade Issue

Postby jkirby » Thu Jun 25, 2015 5:49 am

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.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 111 guests