[wix-users] Convincing internal MSI to run during Modify mode with custom bootstrapper

Hoover, Jacob Jacob.Hoover at greenheck.com
Mon Oct 14 08:23:23 PDT 2019


https://docs.microsoft.com/en-us/windows/win32/msi/conditional-statement-syntax?redirectedfrom=MSDN



-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Vanniekerk, Tyrel (GE Healthcare) via wix-users
Sent: Monday, October 14, 2019 8:53 AM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Vanniekerk, Tyrel (GE Healthcare) <tyrel.vanniekerk at ge.com>
Subject: Re: [wix-users] Convincing internal MSI to run during Modify mode with custom bootstrapper

I have done a lot of reading and think I have a better grasp on how WiX/MSI process things.  I am still having an issue though, probably with my syntax.  Hope you can help.

In my bootstrapper log file it shows that the two features (One conditional, the other not) are planned to be installed (AddLocal).  In the MSI log file however it seems the condition on FeatureB was not evaluated as true, so that Request and Action is set to Null.  Seeing as I set the planned state for FeatureB to Local, who does (&FeatureB = 3) evaluate to false?

    [09A8:4B80][2019-10-14T08:23:45]i203: Planned feature: FeatureB, state: Absent, default requested: Unknown, ba requested: Local, execute action: AddLocal, rollback action: Remove
    [09A8:4B80][2019-10-14T08:23:45]i203: Planned feature: FeatureA, state: Absent, default requested: Unknown, ba requested: Local, execute action: AddLocal, rollback action: Remove

    MSI (s) (50:40) [08:23:59:166]: Feature: FeatureB; Installed: Absent;   Request: Null;   Action: Null
    MSI (s) (50:40) [08:23:59:166]: Feature: FeatureA; Installed: Absent;   Request: Local;   Action: Local


    <Feature Id="FeatureA" Title="Feature A" Level="1">
      <ComponentGroupRef Id="SomeId" />
    </Feature>
    <Feature Id="FeatureB" Title="Feature B" Level="0">
      <Condition Level="1"><![CDATA[(&FeatureB = 3)]]></Condition>
    </Feature>

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/
NOTE: This email was received from an external source. Please use caution when opening links or attachments in the message.



More information about the wix-users mailing list