BTW, it turned out that my previous installs did not have the ALLUSERS
property set (and were installed per-user), but my new ones do. That was the
issue. It took a while to track down because the log message:

FindRelatedProducts: current install is per-machine....

never mentions the UpgradeCode, just the product code. I wound up doing a
RegistrySearch to detect these old products (fortunately only 3) and fail
the install with a CA if detected. I wish there was a good way to know they
are installed per-user w/o a CA, but this is good enough.
-Chris
On Tue, Jun 17, 2008 at 7:40 PM, Chris Mumford <[EMAIL PROTECTED]>
wrote:

> No (but that's good to know). I'm trying to upgrade version 2.3.1 to
> version 4.0.0.0 and that is the version that doesn't get removed.
>
>
> On Tue, Jun 17, 2008 at 9:49 AM, Wilson, Phil <[EMAIL PROTECTED]>
> wrote:
>
>> Major upgrades use only the first three fields of a ProductVersion, so
>> there's no distinction between 3.0.0.0 and 3.0.0.1.  Is that what you're
>> seeing?
>>
>> Phil Wilson
>>
>> -----Original Message-----
>> From: [EMAIL PROTECTED] [mailto:
>> [EMAIL PROTECTED] On Behalf Of Chris Mumford
>> Sent: Monday, June 16, 2008 8:28 PM
>> To: General discussion for Windows Installer XML toolset.
>> Subject: [WiX-users] Help me fix my mistake please...
>>
>> I learned a few years back not to change my upgrade code, unfortunately a
>> little too late. The good news is that I only changed it once. My current
>> WiX source is:
>>
>> <Product Id="A390115B-BF30-4481-8F46-9615FEE3C5C5" Name="MyProduct"
>>    Language="1033" Version="$(var.Version)" Manufacturer="MyCompany"
>>    UpgradeCode="9B672C80-9A35-4EA5-9A9B-7D7E3626E912">
>>
>>  ...
>>
>>  <Upgrade Id="9B672C80-9A35-4EA5-9A9B-7D7E3626E912">
>>    <UpgradeVersion Minimum="3.0.0.1"
>>      IncludeMinimum="yes"
>>      Maximum="$(var.Version)"
>>      IncludeMaximum="no"
>>      Language="1033"
>>      Property="UPGRADE_OLD_VERSION" />
>>    <UpgradeVersion Minimum="$(var.Version)"
>>      IncludeMinimum="no"
>>      OnlyDetect="yes"
>>      Language="1033"
>>      Property="NEWPRODUCTFOUND" />
>>    </Upgrade>
>>
>>  <Upgrade Id="A2787551-7D36-4B1B-9FC7-58C4D483114C">
>>    <UpgradeVersion Minimum="1.0.0.0"
>>      IncludeMinimum="yes"
>>      Maximum="3.0.0.0"
>>      IncludeMaximum="no"
>>      Language="1033"
>>      Property="UPGRADE_ANCIENT_VERSION" />
>>  </Upgrade>
>>
>> And what I'm seeing is that version 3.0.0.1 and later is being upgraded
>> properly, but prior versions (those having UpgradeCode
>> 9B672C80-9A35-4EA5-9A9B-7D7E3626E912) are not being uninstalled and are
>> left
>> on the machine.
>>
>> Can anybody spot what I'm doing wrong here?
>>
>> Thanks,
>>
>> -Chris
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
>>
>> -------------------------------------------------------------------------
>> Check out the new SourceForge.net Marketplace.
>> It's the best place to buy or sell services for
>> just about anything Open Source.
>> http://sourceforge.net/services/buy/index.php
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
>
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to