I'm trying to create a new Wix Package for an MSI setup with the Heatwave extension for Visual Studio 2019.
In Visual Studio I create a new MSI Package project using Heatwave. Immediately after Heatwave generated the new project, I already see a list of 101 warnings:
The global element 'http://wixtoolset.org/schemas/v4/wxs:101DifferentElements' has already been declared.
If I then add <Property Id="ALLUSERS" Value="2" />
and try to compile, I get:
Error WIX0091 Duplicate Property with identifier 'ALLUSERS' found.
I even removed the <Feature>
element to rule out any interference with the included ExampleComponents.wxs. - No difference.
If I run wix build .\Package.wxs
on the command line I get the very same WIX0091 error.
The complete XML of my .wxs file is this:
<Wix xmlns="http://wixtoolset.org/schemas/v4/wxs">
<Package Name="Wix5_Heatwave_Package1" Manufacturer="TODO Manufacturer"
Version="1.0.0.0" UpgradeCode="7208ccb9-5e6f-4f68-839c-673ab4e201e6">
<MajorUpgrade DowngradeErrorMessage="!(loc.DowngradeError)" />
<Property Id="ALLUSERS" Value="2" />
</Package>
</Wix>
Versions used: Wix V5.0.2, Heatwave V1.0.4
I'm all new to WiX5, but do have some experience with WiX3.*. What am I doing wrong here?
Don't specify ALLUSERS
directly. Use the Package
element's Scope
attribute instead. In your case, I think you'll want Scope='perUserOrMachine'
.