Get an MSI log to see what's going on. Look at all instances of 
FindRelatedProducts to see if it's detecting your older product. 

Why is REP after InstallFinalize? This is outside the audited actions, and one 
of the consequences is that if the uninstall of the older product fails it will 
attempt to roll back and reinstall, leaving you with two entries in ARP. 


Phil Wilson 


-----Original Message-----
From: Chuck [mailto:electroch...@att.net] 
Sent: Tuesday, May 12, 2009 7:25 PM
To: WiX-users@lists.sourceforge.net
Subject: [WiX-users] Two Entries in Add or Remove Programs

I have been testing the major upgrade procedure under WiX Version 3.0.5217.0 
and Windows XP. I install version 1.0 of my application successfully. (It has 
the required Upgrade element.) To prepare for the next version of my 
application I increment the FILEVERSION, PRODUCTVERSION and FileVersion values 
in resource file from 1.0 to 1.1 and rebuild the executable. (WiX Edit reads 
the File Version--see below.)

I go back to Wix Edit and change both the Product GUID and the Package GUID. 
The Upgrade ID GUID does not change. I rebuild the MSI setup package.

Then I use this new package to install version 1.1 of my application. 
Version 1.1 of the program installs successfully but I am left with two entries 
in Control Panel > Add or Remove Programs. One points to version 1.0; the other 
points to version 1.1.

<Upgrade Id="49AB249B-C143-412E-B138-6689533DC53A">
  <UpgradeVersion Property="OLDERVERSIONBEINGUPGRADED" 
Maximum="!(bind.FileVersion.gssta_exe)"   IncludeMinimum="yes" 
OnlyDetect="no" IncludeMaximum="no" Minimum="0.0.0.0" />
  <UpgradeVersion Property="NEWERVERSIONDETECTED" 
Minimum="!(bind.FileVersion.gssta_exe)" OnlyDetect="yes" 
IncludeMinimum="yes" />
</Upgrade>

<InstallExecuteSequence>
  <RemoveExistingProducts After="InstallFinalize" /> </InstallExecuteSequence>

In the Add or Remove Programs table, if I select Remove for version 1.0 (after 
version 1.1 is installed) the application is not removed. (The table entry does 
go away.) If I select Remove for version 1.1, the application is removed.

What can I do to ensure that only the latest version is shown in the Add or 
Remove Programs table?

--
Charles




------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image 
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to