简体   繁体   中英

conditional installation not working for administrative install wix toolset

I am trying to extract msi using administrative install in order to create patch, but it is not extracting all the components, I suspect this is due to the conditional install element which works fine in regular install

<Feature Id="SomeFeature" Level="0">
        <ComponentGroupRef Id="Somecomponent" />
        <ComponentGroupRef Id="Somecomponents" />
       <Condition Level="1"><![CDATA[(SOMEPROP = "true") OR (REMOVE ~= "ALL")]]></Condition>
      </Feature>

is it possible to use condition element for administrative install? SOMEPROP property value is true by default and is changed on some custom action which i believe wont run in administrative install.

According to the Windows Installer SDK :

A feature with an installation level of 0 (zero) is not installed during any installation, including administrative installations.

You need to reverse your logic so that the feature is installed by default and conditionally disabled.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM