Mr. Murri that was just the thing I was looking for. Thanks.

Why isn't stuff like this documented or given examples anywhere though?


On Thu, Aug 8, 2013 at 11:47 PM, Blair Murri <os...@live.com> wrote:

> String fooString =
> Bootstrapper.Engine.FormatString(Bootstrapper.Engine.StringVariables["FooVariable"]);
>
> > From: r...@robmensching.com
> > Date: Thu, 8 Aug 2013 07:42:58 -0700
> > To: wix-users@lists.sourceforge.net
> > Subject: Re: [WiX-users] Burn Built-in Variables & Custom Boostrapper UI
> >
> > You need to format the string.
> >
> >
> > On Thu, Aug 8, 2013 at 6:18 AM, Veli-Matti Visuri <
> > veli-matti.vis...@futuremark.com> wrote:
> >
> > > Hi, I've been working on a bootstrapper with a customized UI and I
> cannot
> > > figure out a way on how to "translate" the burn built-in variables
> from the
> > > engine to the UI.
> > >
> > > You can see the list of the variables here:
> > > http://wix.sourceforge.net/manual-wix3/bundle_built_in_variables.htm
> > >
> > >
> > > I'll try to explain the situation here:
> > > (Before you make remarks, note that this isn't the actual code I'm
> using)
> > >
> > >
> > > 1. I have a variable defined in the Bundle.wxs like:
> > > <Variable Name="FooVariable" Type="string"
> Value="[DesktopFolder]\Foo\Bar"
> > > bal:Overridable="yes"/>
> > >
> > >
> > > 2. I read the variable in the C# customized UI from the engine in the
> UI
> > > like this:
> > > String fooString = Bootstrapper.Engine.StringVariables["FooVariable"];
> > >
> > >
> > > 3. Then I show the install path variable, let's say in a message box
> > > MessageBox.Show(fooString);
> > >
> > >
> > > 4. The messagebox says:
> > > [DesktopFolder]\Foo\Bar
> > >
> > > But I wish it showed:
> > > C:\Users\Example\Desktop\Foo\Bar
> > >
> > >
> > > To put it verbally, I would like to make the UI not to say the name of
> the
> > > burn built-in variable, but the actual path to the e.g. desktop folder.
> > >
> > > Is there any possible way I could do this? Is there any workaround? I
> > > would't like to programmatically fetch these folders in the UI.
> > >
> > >
> ------------------------------------------------------------------------------
> > > Get 100% visibility into Java/.NET code with AppDynamics Lite!
> > > It's a free troubleshooting tool designed for production.
> > > Get down to code-level detail for bottlenecks, with <2% overhead.
> > > Download for free and get started troubleshooting in minutes.
> > >
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> > >
> >
> ------------------------------------------------------------------------------
> > Get 100% visibility into Java/.NET code with AppDynamics Lite!
> > It's a free troubleshooting tool designed for production.
> > Get down to code-level detail for bottlenecks, with <2% overhead.
> > Download for free and get started troubleshooting in minutes.
> >
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
> ------------------------------------------------------------------------------
> Get 100% visibility into Java/.NET code with AppDynamics Lite!
> It's a free troubleshooting tool designed for production.
> Get down to code-level detail for bottlenecks, with <2% overhead.
> Download for free and get started troubleshooting in minutes.
> http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to