I am trying to partition my project into separate wix files. I have one for the website related parts.
That file looks like this:
<wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:iis="http://schemas.microsoft.com/wix/IIsExtension">
<fragment>
<property id="user-content-WEBPORT" value="80">
<property id="user-content-IISMAJORVERSION" secure="yes">
<registrysearch id="user-content-IisRegistryMajor" key="Software\Microsoft\InetMgr\Parameters" name="MajorVersion" root="HKLM" type="raw">
</registrysearch></property></property></fragment></wix>
<User Id = "WebUser" Name = "name" Domain = "domain" />
<DirectoryRef Id = "INSTALLDIR">
<Component Id = "WebSite_Iis5" Guid = "..."
Permanent = "yes"
>
<Condition>
When I try to compile this with candle (3.0.4318.0) it reports an error:
candle-compile:
[exec] website.wxs
[exec] C:\Shared\scm\ExternalTools\Build Scripts\Bundle\website.wxs(18) : error CNDL0005 : The Fragment element contains an unexpected child element 'User'.
But according to the (admittedly v2) wix Schema documentation, User is a valid child of Fragment.
What gives?
In WiX v3, User is an extension (WixUtilExtension), so you must load the extension and use its namespace. See WiX.chm for details.