Seems like a reasonable feature request.

On Fri, Feb 18, 2011 at 7:19 AM, James Johnston <johnst...@inn-soft.com>wrote:

> Oh wow...  Right now we just change it in our build script when calling
> light:
>
> light <parameters> -dWixUILicenseRtf=SupportFiles/License_${language}.rtf
> <more parameters>
>
> Which is also unnecessarily kludgy; that information really should be in
> the
> localization file but at the time I didn't figure out how (that blog entry
> was written after I wrote the setup project...).
>
> Your solution is better except that it involves modifying WiX source code.
> Any chance this might be added to a future version of WiX?  This common
> task
> seems needlessly complicated.  Maybe the change would break compatibility,
> but on the other hand the status quo of modifying WiX source code doesn't
> seem any better to me!
>
> Unless there is a better way that neither of us know about??
>
> James
>
> -----Original Message-----
> From: Tobias S [mailto:tobias.s1...@gmail.com]
> Sent: Friday, February 18, 2011 15:08
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Dynamically set WixVariable WixUILicenseRtf
>
> Ok, knew there exists an english speaking tutorial:
>
> http://weblogs.sqlteam.com/mladenp/archive/2010/04/15/WiX-3-Tutorial-Custom-
> EULA-License-and-MSI-localization.aspx<http://weblogs.sqlteam.com/mladenp/archive/2010/04/15/WiX-3-Tutorial-Custom-EULA-License-and-MSI-localization.aspx>
>
> 2011/2/18 Tobias S <tobias.s1...@gmail.com>:
> > You have to overwrite the default WiX dialog e.g. in WixUI_InstallDir
> > with a modified LicenseAgreementDlg.wxs:
> >
> > 1.) get the WiX Source code
> >
> >
> > 2.) from there add copies from
> > src\ext\UIExtension\wixlib\WixUI_InstallDir.wxs +
> > LicenseAgreementDlg.wxs to your solution renamed as
> > MyLicenseAgreementDlg.wxs + MyWixUI_InstallDir.wxs
> >
> >
> > 3.) MyLicenseAgreementDlg.wxs
> > change lines
> > <Dialog Id="LicenseAgreementDlg" Width="370" Height="270"
> > Title="!(loc.LicenseAgreementDlg_Title)">
> > -->
> > <Dialog Id="MyLicenseAgreementDlg" Width="370" Height="270"
> > Title="!(loc.LicenseAgreementDlg_Title)">
> >
> >
> >
> > <Control Id="LicenseText" Type="ScrollableText" X="20" Y="60"
> > Width="330" Height="140" Sunken="yes" TabSkip="no">
> >   <Text SourceFile="!(wix.WixUILicenseRtf=$(var.licenseRtf))" />
> > </Control>
> >
> > -->
> >
> > <Control Id="LicenseText" Type="ScrollableText" X="20" Y="60"
> > Width="330" Height="140" Sunken="yes" TabSkip="no">
> >   <Text SourceFile="!(loc.LicenseRtf)" /> </Control>
> >
> >
> > 4.) WixUI_InstallDir.wxs
> > change line
> >  <UI Id="WixUI_InstallDir">
> > -->
> >  <UI Id="MyWixUI_InstallDir">
> >
> > Replace all four occurences of LicenseAgreementDlg with
> MyLicenseAgreementDlg
> >
> >
> > 5.) Change in the main wxs the reference to the modified
> MyWixUI_InstallDir
> > <UIRef Id="WixUI_InstallDir"/>
> > -->
> > <UIRef Id="MyWixUI_InstallDir"/>
> >
> >
> > 6.) Add for every language a localization file with at least the
> > following content:
> > <?xml version="1.0" encoding="utf-8"?>
> > <WixLocalization Culture="en-US"
> > xmlns="http://schemas.microsoft.com/wix/2006/localization";>
> >  <String Id="Language">1033</String>
> >  <String Id="LicenseRtf">Languages\EnglishLicenseAgreement.rtf</String>
> > </WixLocalization>
> >
> >
> > Here LicenseRtf is the location of the localized License Agreement
> >
> >
> > Regards
> > Tobias
> >
> >
> > 2011/2/18 Michael Tissington <michael_tissing...@ciqual.com>:
> >> How can I dynamically set the value of WixUILicenseRtf?
> >>
> >> I have tried <WixVariable Id="WixUILicenseRtf" Value="[PROPERTY_NAME]"/>
> >>
> >> What I'm trying to do is for each localization to use a different
> license.rtf.
> >>
> >>
> >>
>
> ----------------------------------------------------------------------------
> --
> >> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio
> XE:
> >> Pinpoint memory and threading errors before they happen.
> >> Find and fix more than 250 security defects in the development cycle.
> >> Locate bottlenecks in serial and parallel code that limit performance.
> >> http://p.sf.net/sfu/intel-dev2devfeb
> >> _______________________________________________
> >> WiX-users mailing list
> >> WiX-users@lists.sourceforge.net
> >> https://lists.sourceforge.net/lists/listinfo/wix-users
> >>
> >
>
>
> ----------------------------------------------------------------------------
> --
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
>


-- 
virtually, Rob Mensching - http://RobMensching.com LLC
------------------------------------------------------------------------------
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to