[wix-users] Sending back the modified variable back to bundle from msi

Rob Mensching rob at firegiant.com
Wed Mar 7 15:33:54 PST 2018


Variables can flow into Properties. There is no mechanism to flow the other way. Plus, all the values are set at Plan time anyway.

_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Shintaro Takechi via wix-users
Sent: Wednesday, March 7, 2018 3:32 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Shintaro Takechi <devst119 at gmail.com>
Subject: [wix-users] Sending back the modified variable back to bundle from msi

Hi All,

I would like to install a secondary package via modified variable within the first package.
Would that be possible?
Here is my bundle code.
  <Variable Name="InstallMini"
              Type="numeric"
              Value="1"
              bal:Overridable="yes"/>

  <Chain>
    <MsiPackage SourceFile="Msis\WiXSandBox.msi"
                           DisplayInternalUI="yes"
                  Compressed="yes"
                  Vital="yes"
                  >
      <MsiProperty Name="INSTALLMINI" Value="[InstallMini]"/>
    </MsiPackage>
    <MsiPackage SourceFile="Msis\WixMiniInstaller.msi"
                  *InstallCondition="InstallMini"*
                  />
  </Chain>

Looking at the generated log, I can see that the INSTALLMINI is passed in to the WiXSandBox, and being initially 1 is now modified to 0 within the WiXSandBox.
However, the WixMiniInstaller is still being installed even though InstallMini should be 0.

I think I am some how not passing back the InstallMini back to the bundle.

Would anybody know how I may be able to resolve this?

____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/


More information about the wix-users mailing list