I'm creating a bundle using WIX. I'm using a util:FileSearch to check if a file exists and I want to install a MsiPackage if that file exists. I'm also checking the processor architecture which works.
Here's the Bundle.wxs:
<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi"
xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Bundle Name="My_Setup_2" Version="1.0.0.0" Manufacturer="ABC" UpgradeCode="3945a604-d6ae-4334-8a5b-1e9e2f222e08">
<BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
<Chain>
<PackageGroupRef Id="MyInstallx64"/>
</Chain>
</Bundle>
<Fragment>
<util:FileSearch Id="Outlook2013Search"
Variable="Outlook2013Exists"
Result="exists"
Path="[ProgramFilesFolder]Microsoft Office\Office15\OUTLOOK.EXE"/>
<PackageGroup Id="MyInstallx64">
<MsiPackage
SourceFile="MyInstallx64.msi"
InstallCondition="ProcessorArchitecture = 9 AND Outlook2013Exists = true" Visible="yes" >
</MsiPackage>
</PackageGroup>
</Fragment>
</Wix>
What do I put in the InstallCondition so that the msi only installs if this file exists? I tried "Outlook2013Exists = true" but this does not work.