I'm working on a WiX bundle project in Visual Studio 2012 with WiX (v3.7), and need to set install conditions for the generated EXE bootstrap installer. So far I have:
The problem I am having is around line 13, where I set the installation condition. The error returned is this:
Some initial Google-ing pointed to:
1) add "WixBalExtension" exists as a resource to the bundle project,
2) add the namespace ref for "bal" and set it to the correct schema definition, and
3) ensure that the WixBalExtension.dll is referenced in the compile command.
Removing the "bal:Condition" node does allow the installer to build successfully -- albeit without the operating system inspection. Intellisense does give the "Condition" option when you start typing "bal:" within the "BootstrapperApplicationRef" node, as well as the "Message" attribute.
... Suggestions?
Code:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:bal="http://schemas.microsoft.com/wix/BalExtension"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle Name="MyApplicationName"
Version="1.0"
Manufacturer="MyCompanyName"
UpgradeCode="GuidGoesHere"
IconSourceFile="App.ico"
Copyright="2011">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense">
<bal:Condition Message="This application is only supported on machines running Windows 7 x64.">
<![CDATA[VersionNT64 >= 601]]>
</bal:Condition>
<bal:WixStandardBootstrapperApplication LicenseFile="license.rtf"
SuppressOptionsUI="yes"
LogoFile="Logo.png" />
</BootstrapperApplicationRef>
( ... )
The problem I am having is around line 13, where I set the installation condition. The error returned is this:
Code:
Error 24 The BootstrapperApplicationRef element contains an unexpected child element 'bal:Condition'.
Some initial Google-ing pointed to:
1) add "WixBalExtension" exists as a resource to the bundle project,
2) add the namespace ref for "bal" and set it to the correct schema definition, and
3) ensure that the WixBalExtension.dll is referenced in the compile command.
Removing the "bal:Condition" node does allow the installer to build successfully -- albeit without the operating system inspection. Intellisense does give the "Condition" option when you start typing "bal:" within the "BootstrapperApplicationRef" node, as well as the "Message" attribute.
... Suggestions?
Last edited: