Re: [WiX-users] Pass BootstrapperApplication properties to MSIPackages

2012-01-17 Thread jhennessey
Define the properties that you want passed to your MSI using 
elements under the corresponding  element. You can set the
MsiProperty@Value attribute to the value of a  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:


Here's your MSI package that has a public property named MY_PUBLIC_PROPERTY
that will get set by the engine:






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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Pass BootstrapperApplication properties to MSIPackages

2012-01-17 Thread Dirk Räder
Hi Romeo,

it's quite simple:
The bootstrapper will probably start "msiexec /i installer.msi",
right? Simply append TARGETDIR="InstallLocation" to it and you're
done.

For any other property, you can do the same: make the property public
by writing it all uppercase inside your wxs files, assign a reasonable
default value and pass the desired value from the BA.

Regards,

Dirk

2012/1/17 Romeo S. :
> Hi,
>
> I have written a BA where the installing user answers/modifies default
> configuration.
> How can I pass the updated properties back to MSI?
>
> E.g. The installing user changes the default InstallLocation, how can I
> notify the MSI that it should use the InstallLocation from the BA?
>
> Thanks,
> dfox
>
> --
> View this message in context: 
> http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Pass-BootstrapperApplication-properties-to-MSIPackages-tp7195074p7195074.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
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users

--
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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Pass BootstrapperApplication properties to MSIPackages

2012-01-16 Thread Romeo S.
Hi,

I have written a BA where the installing user answers/modifies default
configuration.
How can I pass the updated properties back to MSI?

E.g. The installing user changes the default InstallLocation, how can I
notify the MSI that it should use the InstallLocation from the BA?

Thanks,
dfox

--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Pass-BootstrapperApplication-properties-to-MSIPackages-tp7195074p7195074.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
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users