(Un)Install MSI Setup launching repair, not remove
Posted: Wed Dec 03, 2008 1:49 pm
I'm using the Get Product Code from Upgrade Code plugin to get the product code for my old installers that were built using Visual Studio Setup. The plugin is working great. But when I try to uninstall the old version based on the Product Code returned from the plugin, it seems to be running a repair instead of an uninstall. Nothing is removed and a message gets written to the Application Event Log that says, "Configuration completed successfully." This is the same as what it shows when I manually "repair" the old installation.
Here's how my call to (Un)Install MSI Setup looks:
[copied as text]
Install/Remove MSI Package $OLDPRODUCTCODE$[REMOVE=ALL] (get result into variable REMOVEOLD)
[/copied as text]
[copied as code]
~InstallAware Clipboard Data~
~(Un)Install MSI Setup~
~{MY_PRODUCT_CODE_GUID}~
~REMOVE=ALL,TRUE,$OLDPRODUCTCODE$,FALSE,,,REMOVEOLD,ERROROLD,TRUE~
~mMSI.dll\\mMSIExec.dll~
[/copied as code]
I check that $REMOVEOLD$ is not equal to ERROR afterwards and it's not. It seems that the call to (Un)Install MSI Setup is completing successfully; it's just doing the wrong thing. It's not uninstalling even though I'm passing "REMOVE=ALL".
Any thoughts? Anyone had this happen before?
Here's how my call to (Un)Install MSI Setup looks:
[copied as text]
Install/Remove MSI Package $OLDPRODUCTCODE$[REMOVE=ALL] (get result into variable REMOVEOLD)
[/copied as text]
[copied as code]
~InstallAware Clipboard Data~
~(Un)Install MSI Setup~
~{MY_PRODUCT_CODE_GUID}~
~REMOVE=ALL,TRUE,$OLDPRODUCTCODE$,FALSE,,,REMOVEOLD,ERROROLD,TRUE~
~mMSI.dll\\mMSIExec.dll~
[/copied as code]
I check that $REMOVEOLD$ is not equal to ERROR afterwards and it's not. It seems that the call to (Un)Install MSI Setup is completing successfully; it's just doing the wrong thing. It's not uninstalling even though I'm passing "REMOVE=ALL".
Any thoughts? Anyone had this happen before?