Search code examples
wix

Wix toolset - Bundle MSI Install Conditions - Not Silent Install


I am trying to achieve something that on the surface is simple. From my bundle, I need to install an MSI package based on a few conditions. Both of these conditions work fine independently however when added together it doesn't work.

Conditions. Install if Dulx or Basic and if NOT in silent mode.

<MsiPackage
        Id="Prep"
        Compressed="yes"
        Name="Redist\InstallCheckList.msi"
        SourceFile="$(var.InstallCheckList.TargetDir)Prep.msi"
        DisplayInternalUI="no"
        Vital="yes" 
        InstallCondition="(InstallTypeDulx=1 OR InstallTypeBasic=1) AND UILEVEL > 2" >
        <MsiProperty Name="INSTALLLOCATION" Value="[InstallFolder]" />
    </MsiPackage>

I have tried surrounding the InstallTypes and UIlevel in (), i've tried replacing the > then with >. Any help would be great.


Solution

  • You probable mean WixBundleUILevel: https://wixtoolset.org/docs/tools/burn/builtin-variables/