Silent Upgrade Issue
Posted: 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
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