Hi,

I've probably run into a bug with the latest WIX 3.6 build (see issue 
https://sourceforge.net/tracker/?func=detail&aid=3521939&group_id=105970&atid=642714)
 on SourceForge.

Basically, I've an MSI which installs a file in a per-user scenario:

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
        <Product Id="*" Name="Test" Language="1033" Version="1.0.0.0" 
Manufacturer="Someone" UpgradeCode="d7aea251-6b1e-4f16-80a5-67d2f1d524d3">
                <Package InstallerVersion="200" Compressed="yes" 
InstallScope="perUser" />
                <Property Id="ALLUSERS" Secure="yes" />
                <MajorUpgrade DowngradeErrorMessage="A newer version of 
[ProductName] is already installed." />
                <MediaTemplate />
                <Feature Id="ProductFeature" Title="Test" Level="1">
                        <ComponentGroupRef Id="ProductComponents" />
                </Feature>
        </Product>

        <Fragment>
                <Directory Id="TARGETDIR" Name="SourceDir">
                        <Directory Id="LocalAppDataFolder" Name="AppData">
                                <Directory Id="AppRootDirectory" Name="TestApp" 
/>
                        </Directory>
                </Directory>
        </Fragment>

        <Fragment>
                <ComponentGroup Id="ProductComponents" 
Directory="AppRootDirectory">
                         <Component Id="ProductComponent" 
Guid="7AA2DC14-D353-474B-A0DB-C9430753668F">
                                 <RemoveFolder Id="RemoveDir" On="uninstall" 
Directory="AppRootDirectory" />
                                 <RegistryKey Root="HKCU" 
Key="Software\TestApp">
                                         <RegistryValue Type="string" 
Name="Description" Value="[ProductName]" KeyPath="yes" />
                                 </RegistryKey>
                                 <File Source="Product.wxs" />
                         </Component> 
                </ComponentGroup>
        </Fragment>
</Wix>

Then, I have this bootstrapper:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi";>
        <Bundle Name="Bootstrapper1" Version="1.0.0.0" Manufacturer="Someone" 
UpgradeCode="2f3f318f-a5ef-41cf-96d3-31276b88691f">
                <BootstrapperApplicationRef 
Id="WixStandardBootstrapperApplication.RtfLicense" />

                <Chain>
                        <MsiPackage SourceFile="..\Test\bin\Debug\Test.msi" /> 
                </Chain>
        </Bundle>
</Wix>


When I run the bootstrapper, then increment the Bundle/@Version and the 
Product/@Version attributes and run the bootstrapper again, the bootstrapper 
offers the UI for new installations.

The Bootstrapper log reads as follows:
[1168:1008][2012-04-27T11:05:56]: Burn v3.6.2823.0, Windows v6.1 (Build 7601: 
Service Pack 1), path: C:\temp\Test\Bootstrapper1\bin\Debug\Bootstrapper1.exe, 
cmdline: ''
[1168:1008][2012-04-27T11:05:57]: Setting string variable 'WixBundleLog' to 
value 'C:\Users\hkrause\AppData\Local\Temp\Bootstrapper1_20120427110557.log'
[1168:1008][2012-04-27T11:05:57]: Setting string variable 
'WixBundleOriginalSource' to value 
'C:\temp\Test\Bootstrapper1\bin\Debug\Bootstrapper1.exe'
[1168:1008][2012-04-27T11:05:57]: Setting string variable 'WixBundleName' to 
value 'Bootstrapper1'
[1168:1008][2012-04-27T11:05:57]: Detect 1 packages
[1168:1008][2012-04-27T11:05:57]: Detected related bundle: 
{49c5e601-b030-423b-a3b0-3bbacca35c84}, type: Upgrade, scope: PerUser, version: 
1.0.0.0, operation: MajorUpgrade
[1168:1008][2012-04-27T11:05:57]: Detected related package: 
{B581A39E-7BF2-48FE-B361-E10EB3C34356}, scope: PerUser, version: 1.0.0.0, 
language: 0 operation: MajorUpgrade
[1168:1008][2012-04-27T11:05:57]: Detected package: Test.msi, state: Absent, 
cached: None
[1168:1008][2012-04-27T11:05:57]: Detect complete, result: 0x0

So, it detects a previous version and says it would do an upgrade. But then, 
the UI for a new installation appears. If I go with the installation, I end up 
with two ARP entries.

Am I doing something wrong with my installer?

Kind regards,
Henning 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to