In general, in your bundle you can define a Variable element as a string and
as Overridable=yes.  Then pass the contents of the string variable to the
MSI using MsiProperty.  The WixStdBA will pass command line entries that it
does not parse through to the BA.

    <Variable Name='SomeVariable' Value='*' Type='string'
bal:Overridable='yes'/>

    <MsiProperty Name='SOME_PROPERTY' Value='[SomeVariable]' />

Bundle.exe SomeVariable=MyValue

The WixStdBA can use a BAFunctions.dll which can be used to modify
SomeVariable in your BA.  See wix src for samples.

If you implemented a managed BA, then there are more options on how to
approach this.

An issue might be that an on-demand launch of the msi would not use the BA,
so you might want to consider implementing a remember property pattern and
let the msi retrieve the data rather than requiring the data to be passed in
on the command line.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Wix-Burn-UI-Pass-variable-to-msi-on-repair-and-uninstall-tp7596298p7596300.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to