[wix-users] Passing property to MergeModule from Parent MSI

Rob Mensching rob at firegiant.com
Wed Dec 21 21:35:01 PST 2022

Perhaps consider a .wixlib instead? https://robmensching.com/blog/posts/2008/10/10/what-are-.wixlibs-and-why-would-you-use-them/

-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of Mike Henseler via wix-users
Sent: Wednesday, December 21, 2022 5:12 PM
To: wix-users at lists.wixtoolset.org
Cc: Mike Henseler <m.henseler at simfront.com>
Subject: [wix-users] Passing property to MergeModule from Parent MSI

Cannot get this to work when passing property from parent msi to mergemodule/custom action data(CAD) I have a VBscript (CA) that writes IPADDRESS to a text file. (works perfectly in parent msi) Property IPADDRESS is entered from a custom dialog, but has a default value I use CAD to pass parameters from MSI to VBscript during a deferred CA.
I have moved this action to a MergeModule, but now I am unable to pass value of IPADDRESS to module

<ConfigurationData Name="IPADDRESS" Value="[IPADDRESS]"
<Configuration Name="IPADDRESS" Format="Text" DefaultValue="" Type="Property" />

<Binary Id='LnchrCnfgFlsScrpt' SourceFile ='ConfigFiles.vbs' /> <CustomAction Id="LnchrCaUpdtRdHstInfFl" BinaryKey='LnchrCnfgFlsScrpt' Execute='deferred' Return='ignore' VBScriptCall="Update_InfoTxt" Impersonate="no" /> <SetProperty Id="LnchrCaUpdtRdHstInfFl" Value="[IPADDRESS];[INSTALLDIR]" Sequence="execute" Before="LnchrCaUpdtRdHstInfFl" />

<Custom Action="LnchrCaUpdtRdHstInfFl" Before="InstallFinalize">NOT Installed</Custom> </InstallExecuteSequence>

....Also Tried
SuppressModularization, but IPADDRESS property remains Modularized  in CA.

>From Custom Action Table in MSI
Action: SetLnchrCaUpdtRdHstInfFl.DFCDCE3C_6AC1_4D2A_B039_C55A9806E480
Type: 51
Source: LnchrCaUpdtRdHstInfFl.DFCDCE3C_6AC1_4D2A_B039_C55A9806E480
Target: [IPADDRESS.DFCDCE3C_6AC1_4D2A_B039_C55A9806E480];[INSTALLDIR.DFCDCE3C_6AC1_4D2A_B039_C55A9806E480]
If I open MSI with orca and manually drop the GUID from [IPADDRESS] then action works fine

Action: LnchrCaUpdtRdHstInfFl.DFCDCE3C_6AC1_4D2A_B039_C55A9806E480
Type: 7238
Source: LnchrCnfgFlsScrpt.DFCDCE3C_6AC1_4D2A_B039_C55A9806E480
Target: Update_InfoTxt

Any ideas?
Thnks in advance.

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

More information about the wix-users mailing list