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
Silent Upgrade Issue
-
- Site Admin
- Posts: 5361
- Joined: Sun Aug 22, 2010 4:28 am
Re: Silent Upgrade Issue
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
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
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
Re: Silent Upgrade Issue
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.
James.
Who is online
Users browsing this forum: No registered users and 118 guests