Define the properties that you want passed to your MSI using <MsiProperty>
elements under the corresponding <MsiPackage> element. You can set the
MsiProperty@Value attribute to the value of a <Variable> element. Your BA
can change / update the value of the Burn variable.
So here's a burn variable that you will later set through your BA:
<Variable Name="MyBurnVariable" Persisted="yes" Type="string" Value="Test
Variable"/>
Here's your MSI package that has a public property named MY_PUBLIC_PROPERTY
that will get set by the engine:
<MsiPackage Id="Package1"
Compressed="no"
Vital="yes"
Name="data\MSI\Package1.msi"
Cache="yes"
SourceFile="C:\data\MSI\Package1.msi">
<MsiProperty Name="MY_PUBLIC_PROPERTY" Value="[MyBurnVariable]"/>
</MsiPackage>
Here's your BA code that changes the value of MyBurnVariable at some point:
MyBootstrapperApplication.Engine.StringVariables["MyBurnVariable"] = "My New
Value";
--
View this message in context:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Pass-BootstrapperApplication-properties-to-MSIPackages-tp7195074p7196697.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users