With FormatString I can evaluate the variable but for using this value as 
msiproperty to pass as installation path to the msi in the burn chain I have to 
write back the value in the original variable using c# code.But is there any 
way for doing this in the bundle code? Something like a MarkupExtension of 
WPF?For example:<Variable Name="InstallFolderVariable" Type="string" 
Value="Format{[DesktopFolder]}" />

> From: r...@robmensching.com
> Date: Mon, 8 Apr 2013 13:39:48 -0700
> To: wix-users@lists.sourceforge.net
> Subject: Re: [WiX-users] Burn 3.7.1224.0 Builtin Variable not working
> 
> If you want the value of a Variable formatted call the Engine
> FormatString() method. This is very similar to MSI API to format a property.
> 
> 
> On Mon, Apr 8, 2013 at 1:26 PM, Marco Tognacci <mark...@live.it> wrote:
> 
> > I need to have the value resolved in the plan phase as I have to report it
> > on the Managed custom UI, to report it to the user and let the user change
> > it. But in this case the variable is not resolved but is written exacly as
> > I wrote it as "[DesktopFolder]" and not with the path
> > "C:\User\...".robmensching has reported that "Variable is like Property.
> > The Value attribute is the value of the variable. It isn't interpreted."And
> > this is exacly the behaviour that I have seen, so I have seen that in the
> > Wix Burn setup Bundle report
> > <Variable Name='InstallFolder' Type='string'
> > Value='[ProgramFilesFolder]WiX Toolset v$(var.WixMajorMinor)' />
> > so even this doesn't work, or I miss something ?!?!?I have tried to read
> > the variable from the
> > Bootstrapper.Engine.StringVariables["InstallFolderVariable"]but even after
> > installation Plan the value is not resolved.
> >
> >
> > > From: n...@x2systems.com
> > > To: wix-users@lists.sourceforge.net
> > > Date: Mon, 8 Apr 2013 19:46:11 +0000
> > > Subject: Re: [WiX-users] Burn 3.7.1224.0 Builtin Variable not working
> > >
> > > Putting it in square brackets as you have. Don't be surprised if the log
> > does show the value, e.g. "[05C8:130C][2013-04-07T13:34:17]i000:
> > Initializing string variable 'InstallFolderVariable' to value
> > '[DesktopFolder]'" when the install phase runs the correct value will be
> > inserted.
> > >
> > > Neil
> > >
> > > -----Original Message-----
> > > From: Marco Tognacci [mailto:mark...@live.it]
> > > Sent: 08 April 2013 20:30
> > > To: General discussion for Windows Installer XML toolset.
> > > Subject: Re: [WiX-users] Burn 3.7.1224.0 Builtin Variable not working
> > >
> > > OK, but if I want to assign to a burn variable, the value of one of the
> > builtin variable in the Burn bootstrapper which is the right way for doing
> > it?For example to assign the value of [DesktopFolder] ?
> > >
> > > > From: r...@robmensching.com
> > > > Date: Sun, 7 Apr 2013 20:01:31 -0700
> > > > To: wix-users@lists.sourceforge.net
> > > > Subject: Re: [WiX-users] Burn 3.7.1224.0 Builtin Variable not working
> > > >
> > > > Variable is like Property. The Value attribute is the value of the
> > > > variable. It isn't interpreted.
> > > >
> > > >
> > > > On Sun, Apr 7, 2013 at 8:00 AM, Marco Tognacci <mark...@live.it>
> > wrote:
> > > >
> > > > > In my Bundle application I have defined a variable to define the
> > > > > installation folder, I want to initialize this variable to a builtin
> > > > > variable likeProgramFilesFolder or DesktopFolder, but this doesn't
> > work.
> > > > > I have used in my Bundle
> > > > > <Variable Name="InstallFolderVariable" Type="string"
> > > > > Value="[DesktopFolder]" />
> > > > > In the log of the Burn installation there is the variable associated
> > > > > to [DesktopFolder] and the path is not resolved,is there a different
> > > > > syntax to refer to a built in variable in Burn Bundle different from
> > > > > package msi? Or it's a bug?
> > > > > [05C8:130C][2013-04-07T13:34:17]i000: Initializing string variable
> > > > > 'InstallFolderVariable' to value '[DesktopFolder]'
> > > > >
> > > > >
> > > > > > From: mark...@live.it
> > > > > > To: wix-users@lists.sourceforge.net
> > > > > > Date: Sun, 7 Apr 2013 13:41:34 +0200
> > > > > > Subject: [WiX-users] Burn 3.7.1224.0 Builtin Variable not working
> > > > > >
> > > > > > In my Bundle application I have defined a variable to define the
> > > > > installation folder, I want to initialize this variable to a builtin
> > > > > variable likeProgramFilesFolder or  DesktopFolder, but this doesn't
> > work.
> > > > > > <Bundle Name="My Test Application" Version="1.0.0.0"
> > > > > Manufacturer="Bryan"
> > > > > UpgradeCode="C82A383C-751A-43B8-90BF-A250F7BC2863">
> > > > >  <BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost">
> > > > >  <Payload SourceFile="..\TestBA\BootstrapperCore.config"/>
> >  <Payload
> > > > > SourceFile="..\TestBA\bin\Release\TestBA.dll"/>      <Payload
> > > > > SourceFile="..\TestBA\bin\Release\GalaSoft.MvvmLight.WPF4.dll"/>
> > > > >  <Payload SourceFile="C:\Program Files (x86)\WiX Toolset
> > > > > v3.7\SDK\Microsoft.Deployment.WindowsInstaller.dll"/>
> > > > >  </BootstrapperApplicationRef>
> > > > > >     <Variable Name="InstallFolderVariable" Type="string"
> > > > > Value="[DesktopFolder]" />        <Chain>      <PackageGroupRef
> > > > > Id='Netfx4Full' />      <MsiPackage
> > > > > SourceFile="..\DummyInstaller\bin\Release\DummyInstaller.msi"
> > > > > Id="DummyInstallationPackageId" Cache="yes" Visible="no"
> > > > > DisplayInternalUI="no">        <MsiProperty Name="INSTALLFOLDER"
> > > > > Value="[InstallFolderVariable]"/>      </MsiPackage>    </Chain>
> >  </Bundle>
> > > > > > and this is the Burn Log file where the variable
> > > > > > InstallFolderVariable
> > > > > is defined as [DesktopFolder], is there a different syntax to refer
> > > > > to a built in variable in Burn Bundle different from package msi? Or
> > it's a bug?
> > > > > > [05C8:130C][2013-04-07T13:34:17]i001: Burn v3.7.1224.0, Windows
> > > > > > v6.2
> > > > > (Build 9200: Service Pack 0), path:
> > > > > F:\Programming\WiX\Samples\_xxxxx Sample
> > > > > xxxxx\TestBA\BootstrapperSetup\bin\Release\BootstrapperSetup.exe,
> > > > > cmdline: ''[05C8:130C][2013-04-07T13:34:17]i000: Initializing string
> > > > > variable 'InstallFolderVariable' to value
> > > > > '[DesktopFolder]'[05C8:130C][2013-04-07T13:34:17]i000: Setting
> > > > > string variable 'WixBundleLog' to value
> > > > >
> > 'C:\Users\User\AppData\Local\Temp\My_Test_Application_20130407133417.log'[05C8:130C][2013-04-07T13:34:17]i000:
> > > > > Setting string variable 'WixBundleOriginalSource' to value
> > > > > 'F:\Programming\WiX\Samples\_xxxxx Sample
> > > > >
> > xxxxx\TestBA\BootstrapperSetup\bin\Release\BootstrapperSetup.exe'[05C8:130C][2013-04-07T13:34:17]i000:
> > > > > Setting string variable 'WixBundleName' to value 'My Test
> > > > > Application'[05C8:130C][2013-04-07T13:34:17]i000: Loading managed
> > > > > bootstrapper application.
> > > > > >
> > > > > --------------------------------------------------------------------
> > > > > ----------
> > > > > > Minimize network downtime and maximize team effectiveness.
> > > > > > Reduce network management and security costs.Learn how to hire the
> > > > > > most talented Cisco Certified professionals. Visit the Employer
> > > > > > Resources Portal
> > > > > > http://www.cisco.com/web/learning/employer_resources/index.html
> > > > > > _______________________________________________
> > > > > > WiX-users mailing list
> > > > > > WiX-users@lists.sourceforge.net
> > > > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > > >
> > > > >
> > > > > --------------------------------------------------------------------
> > > > > ---------- Minimize network downtime and maximize team
> > > > > effectiveness.
> > > > > Reduce network management and security costs.Learn how to hire the
> > > > > most talented Cisco Certified professionals. Visit the Employer
> > > > > Resources Portal
> > > > > http://www.cisco.com/web/learning/employer_resources/index.html
> > > > > _______________________________________________
> > > > > WiX-users mailing list
> > > > > WiX-users@lists.sourceforge.net
> > > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > > > >
> > > > >
> > > > ----------------------------------------------------------------------
> > > > -------- Minimize network downtime and maximize team effectiveness.
> > > > Reduce network management and security costs.Learn how to hire the
> > > > most talented Cisco Certified professionals. Visit the Employer
> > > > Resources Portal
> > > > http://www.cisco.com/web/learning/employer_resources/index.html
> > > > _______________________________________________
> > > > WiX-users mailing list
> > > > WiX-users@lists.sourceforge.net
> > > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> > >
> > ------------------------------------------------------------------------------
> > > Minimize network downtime and maximize team effectiveness.
> > > Reduce network management and security costs.Learn how to hire the most
> > talented Cisco Certified professionals. Visit the Employer Resources Portal
> > http://www.cisco.com/web/learning/employer_resources/index.html
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> > >
> > >
> > ------------------------------------------------------------------------------
> > > Minimize network downtime and maximize team effectiveness.
> > > Reduce network management and security costs.Learn how to hire
> > > the most talented Cisco Certified professionals. Visit the
> > > Employer Resources Portal
> > > http://www.cisco.com/web/learning/employer_resources/index.html
> > > _______________________________________________
> > > WiX-users mailing list
> > > WiX-users@lists.sourceforge.net
> > > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> > ------------------------------------------------------------------------------
> > Minimize network downtime and maximize team effectiveness.
> > Reduce network management and security costs.Learn how to hire
> > the most talented Cisco Certified professionals. Visit the
> > Employer Resources Portal
> > http://www.cisco.com/web/learning/employer_resources/index.html
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> ------------------------------------------------------------------------------
> Minimize network downtime and maximize team effectiveness.
> Reduce network management and security costs.Learn how to hire 
> the most talented Cisco Certified professionals. Visit the 
> Employer Resources Portal
> http://www.cisco.com/web/learning/employer_resources/index.html
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
                                          
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to