The only way I found to do this was to clone LicenseAgreementDlg.wxs in
to my project (see
http://neilsleightholm.blogspot.com/2008/08/customised-uis-for-wix.html
here for details) then change the file reference to: 
<Text SourceFile="$(var.ProjectDir)\!(loc.LicenseRtf)" />

In each of my localisation files (wxl) I have a line like this:
<String Id="LicenseRtf"
Overridable="yes">Localisation\License.rtf</String>

Where License.rtf changes to the correct localised version e.g.
License_es-es.rtf. This has the advantage that if you don't have a
licence file it will fall back to the default language version.

Neil

-----Original Message-----
From: Robert Nickel [mailto:robert.nic...@dcam.de] 
Sent: 04 February 2009 08:29
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] localized WixUILicenseRtf in VisualStudio 2005

> You can also use the WixVariable element in a source file.
Yes, but I cannot assign language specific strings to this variable,
e.g.

<WixVariable Id="WixUILicenseRtf" Value="!(loc.path_to_license_rtf)" />

because the localized strings are evaluated at link time. I get the
error
error LGHT0103: The system cannot find the file
'!(loc.path_to_license_rtf)'.

That's why the localized license file should be given to light.exe as a
parameter. I don't see a way to work with the build mechanisms of Visual
Studio unless I can give a parameter to light.exe in the project
properties
that depends on the current culture, e.g.
-dWixUILicenseRtf="C:\rtf-path\$(Culture)\license.rtf"

Is something like this possible? Otherwise I would have to build the
project
manually.  

Robert


------------------------------------------------------------------------
------
Create and Deploy Rich Internet Apps outside the browser with
Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and
code to
build responsive, highly engaging applications that combine the power of
local
resources and data with the reach of the web. Download the Adobe AIR SDK
and
Ajax docs to start building applications
today-http://p.sf.net/sfu/adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to