In case anyone else runs into this problem, the ID in my Upgrade element
didn't match the UpgradeCode.  It isn't clear in the example in the help
that these need to be the same GUID.  Of course when I read the doc for the
Upgrade element, that made it clear.

Dan

-----Original Message-----
From: Wix Mailing List [mailto:w...@danhinsley.com] 
Sent: Friday, April 30, 2010 11:14 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Double entries in Add/Remove programs

I looked at the thread in the archive, but it appears that this person
didn't resolve his issue (or at least didn't post when he did).  Here's what
I've got:

 

<Product Id="*" Name="Myrna" Language="1033"

           Version="0.01.0" Manufacturer="No Bull Software"
UpgradeCode="{BF762230-9947-44b7-AC28-602088490E13}">

    <Package Id ="*"  InstallerVersion="300" Compressed="yes" />

    <Media Id="1" Cabinet="media1.cab" EmbedCab="yes" />

 

    <Upgrade Id="{A8C90E5E-814A-4bae-B5BB-6DD2A363DB69}">

      <UpgradeVersion Property="OLDERVERSIONBEINGUPGRADED" Minimum="0.0.0"
Maximum="0.01.0" IncludeMaximum="no"  />

      <UpgradeVersion Property="NEWERVERSIONDETECTED" Minimum="0.01.0"
OnlyDetect="yes" IncludeMinimum="yes" />

    </Upgrade>

    <Condition Message="A later version of [ProductName] is already
installed.  Install will now exit.">

      <![CDATA[Installed OR NOT NEWERVERSIONDETECTED]]>

    </Condition>

 

..

 

   <InstallExecuteSequence>

      <RemoveExistingProducts After="InstallExecute" />

    </InstallExecuteSequence>

 

The InstallExecuteSequence if after the <Feature> list if that matters.

 

I install as above, everything works as it should. Then I change
Product/@Version, UpgradeVersion(OLDER.)/@Maximum and
UpgradeVersion(NEWER.)/@Minimum all to 0.02.0.

 

I install again, it installs and I have two entries in the Add/Remove table,
one for version 0.01.0 and one for 0.02.0. 

 

In the log for FindRelatedProducts I find:

 

MSI (c) (E0:BC) [11:09:30:281]: Doing action: FindRelatedProducts

MSI (c) (E0:BC) [11:09:30:281]: Note: 1: 2205 2:  3: ActionText 

Action 11:09:30: FindRelatedProducts. Searching for related applications

Action start 11:09:30: FindRelatedProducts.

Action ended 11:09:30: FindRelatedProducts. Return value 1.

 

MSI (s) (9C:6C) [11:09:50:357]: Doing action: FindRelatedProducts

MSI (s) (9C:6C) [11:09:50:357]: Note: 1: 2205 2:  3: ActionText 

Action 11:09:50: FindRelatedProducts. Searching for related applications

Action start 11:09:50: FindRelatedProducts.

MSI (s) (9C:6C) [11:09:50:357]: Skipping FindRelatedProducts action: already
done on client side

Action ended 11:09:50: FindRelatedProducts. Return value 0.

 

Which, given the other thread leads me to believe that FindRelatedProducts
isn't finding the prior install, but I can't for the life of me figure out
why.  Can anyone point me in the right direction here?

 

Thanks

 

Dan

 

----------------------------------------------------------------------------
--
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to