2

I am using WIX 3.0 Toolset and VS2008. In my ".wixproj" file I have added the following code (which works fine). I want to add a condition so that it will only install PIA if office 2007 is installed.

...
    <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>
     ...

I have the following code written in my installer script .wxs but this is not useful in the bootstrapper.

...
<!-- 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>
...

1 Answer 1

1

Similar to: WIX: GenerateBootStrapper conditions?

Check out the Product and Package Schema Reference and you probably want to look at the <BypassIf> and <InstallChecks> element.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.