The installer for my new version fails to uninstall the older version of the same product. This used to work with older versions.
Code: Select all
if Variable NEEDSUPGRADE Equals TRUE
Set Variable REMOVEOLD to
Set Variable ERROROLD to
Install/Remove MSI Package $PRODUCTCODE$[REMOVE=ALL] (get result into variable REMOVEOLD)
if Variable REMOVEOLD Equals ERROR
MessageBox: $TITLE$ Setup, Unable to uninstall old version of $TITLE$. Please uninstall it yourself using Control Panel Add-Remove Programs before attempting to install this product.$NEWLINE$$NEWLINE$$ERROROLD$
Terminate Installation
end
According to http://support.microsoft.com/kb/229683/de that's the MSI errorcode ERROR_UNKNOWN_PRODUCT 1605
So the first guess was, that I changed the product guid by accident.
But Subversion tells me that the product guid is the same for all revisions that I compared.
Further interesting behavior is:
- The second time I start the new installer, it doesn't attempt to remove the old version, and the install succeeds.
- If I install the old version on top of the new one, it correctly removes the new version (another indication that the guid's match).
Has anybody experienced something similar?
Any hints on where to search further?
Rgds
Richard

