2
WIX 3.0 Toolset 및 VS2008을 사용하고 있습니다. 내 ".wixproj"파일에 다음 코드를 추가했습니다 (잘 작동합니다). Office 2007이 설치되어있는 경우에만 PIA를 설치할 수 있도록 조건을 추가하고 싶습니다.Wix : 조건부 부트 스트 래퍼 사전 요구 사항을 정의하는 방법은 무엇입니까?
...
<ItemGroup>
<BootstrapperFile Include="Microsoft.Net.Framework.3.5">
<ProductName>.NET Framework 3.5</ProductName>
</BootstrapperFile>
<!-- Here I want to check if office is installed. If true then install the PIAs -->
<BootstrapperFile Include="Microsoft.Office.PIARedist.2007">
<ProductName>Microsoft Office 2007 Primary Interop Assemblies</ProductName>
</BootstrapperFile>
</ItemGroup>
...
다음 설치 코드는 .wxs이지만 다음은 부트 스트 래퍼에서 유용하지 않습니다.
...
<!-- Properties to check for Word 2007 Version. Return string should be "Word.Application.12" -->
<Property Id="WORDVERSION">
<RegistrySearch Id="RegistrySearchWordVersion"
Root="HKCR"
Key="Word.Application\CurVer"
Type="raw"/>
</Property>
...