I've got a VS.NET 2003 setup project which is correctly setup to remove any existing version before installing the current on. (DetectNewerVersionInstalled=true, RemovePreviousVersions=true and I've changed (incremented) the Version which has changed the ProductCode and PackageCode but left the UpgradeCode as is). All good stuff!
However, the installer has a few custom actions and these may be causing problems?! What I get is the new version installed but two entries in the Add/Remove programs list.
Here is a segment of trace from an later version install (i.e. it should be uninstalling the previous version!):
This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Problem with remove old version (VS.NET project)
Started by
adamhearn
, Aug 18 2004 17:16
1 reply to this topic
Posted 18 August 2004 - 17:16
QUOTE |
MSI (s) (20:74): Doing action: RemoveExistingProducts Action start 16:35:45: RemoveExistingProducts. MSI (s) (20:74): Note: 1: 2262 2: Error 3: -2147287038 MSI (s) (20:74): Note: 1: 2262 2: Error 3: -2147287038 MSI (s) (20:74): Note: 1: 2262 2: Error 3: -2147287038 MSI (s) (20:74): Note: 1: 2262 2: Error 3: -2147287038 Action ended 16:35:45: RemoveExistingProducts. Return value 1. |
Here's a sample from a test setup project that works as I'd expect so I can see that my proper one above just didn't run - presumably 'cause it had a return value of 1!
QUOTE |
MSI (s) (20:24): Doing action: RemoveExistingProducts Action start 16:40:29: RemoveExistingProducts. MSI (s) (20:24): Note: 1: 2262 2: Error 3: -2147287038 MSI (s) (20:24): Note: 1: 2262 2: Error 3: -2147287038 Action 16:40:29: RemoveExistingProducts. Removing applications RemoveExistingProducts: Application: {B77C7C8A-A971-4C3E-B258-1E2BB2FE978A}, Command line: UPGRADINGPRODUCTCODE={C39FEA88-2148-47ED-AA1B-EE41BA49F52E} REMOVE=ALL Action start 16:40:30: INSTALL. |
From the 1st log data, can anyone help me diagnose this further?
Thanks in advance!
Posted 19 August 2004 - 10:52
Note 2262 seems to indicate that the Error table is missing from your msi file. If you add a valid error table hopefully we will get some more meaningful error messages.
A return value of 1 indicates success, probably because you have set the msidbUpgradeAttributesIgnoreRemoveFailure (0x004) flag in the Attributes column of your Upgrade table.
A return value of 1 indicates success, probably because you have set the msidbUpgradeAttributesIgnoreRemoveFailure (0x004) flag in the Attributes column of your Upgrade table.
Stefan Krüger
InstallSite.org twitter facebook