私はWIXを使ってバンドルを作成しています。私はutil:FileSearchを使用してファイルが存在するかどうかを確認していますが、そのファイルが存在する場合はMsiPackageをインストールします。私は、動作するプロセッサのアーキテクチャもチェックしています。WIX:インストール条件でファイル検索結果を使用するには?
はここBundle.wxsです:このファイルが存在する場合、MSIにのみインストールするよう
<?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>
私はInstallConditionに何を入れますか?私は "Outlook2013Exists = true"を試しましたが、これは動作しません。