It's possible that whitespace isn't being preserved when parsing the content
of the Text element. I don't know if adding xml:preserve attributes (or some
other xml: attribute) will fix that or not.

IIRC what some of us have done for localizing license agreements UI is to do
the following: layout the localized RTF files in some consistent fashion in
the filesystem, and use either a "WixVariable" or a localization variable to
supply the variable part of the path to the files. Something like this:

<Text SourceFile="$(var.RTF.Folders)!(loc.RTF.Foldername)\license.rtf" />
Or
<Text SourceFile="$(var.RTF.Folder)!(loc.RTF.File)" />

-----Original Message-----
From: David Amey [mailto:da...@creative-engine.co.uk] 
Sent: Friday, October 15, 2010 2:39 AM
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] License Agreement

Thanks for this Blair,

Made it much easier to replace the standard dialog.

I am still having an issue though I'm afraid.

Basically I'm using a localised string to populate the scrollable text.
However the text doesn't appear when running the msi. Here is the
control snippet:

<Control Id="TextArea" Type="ScrollableText" X="5" Y="50" Width="360"
Height="130" Sunken="yes" TabSkip="no">
        <Text>!(loc.License_Agreement)</Text>
</Control>

I found an example in the tutorial, so I applied the following:

<Control Id="TextArea" Type="ScrollableText" X="5" Y="50" Width="360"
Height="130" Sunken="yes" TabSkip="no">
        <Text>{\rtf1\ansi\ansicpg1252\deff0\deftab720
                        {\fonttbl{\f0\froman\fprq2 Times New Roman;}}
                        {\colortbl\red0\green0\blue0;}
                        \deflang1033\horzdoc{\*\fchars }{\*\lchars }
                        \pard\plain\f0\fs20
                        !(loc.License_Agreement)\par
                }</Text>
</Control>

This makes the text appear when running the msi, but all the text is
squashed together, and loses line breaks enter in the localisation file.
I understand the font application from the code above, but not sure what
the rest is doing...

If anyone can shed some light on this I would greatly appreciate it.

Thanks again!

Dave

-----Original Message-----
From: Blair [mailto:os...@live.com] 
Sent: 12 October 2010 23:47
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] License Agreement

Follow the recommendations elsewhere on how to replace/alter a dialog
provided by the toolset, copying the license dialog, and remove the
SourceFile attribute of the Text element that is the child of the
"ScrollableText" type-control, and make the text of the Text element be
your literal RTF.

-----Original Message-----
From: David Amey [mailto:da...@creative-engine.co.uk]
Sent: Tuesday, October 12, 2010 1:54 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] License Agreement

Hi everybody,

 

Was wondering if there is a way to populate the standard 'license
Agreement' dialog with a string in a 'wxl' file, instead of the rtf?

 

Thanks!

David Amey
The Creative Engine Ltd
Almac House, Church Lane, Bisley, Surrey, GU24 9DR
T: +44 (0)1483 799200  F: +44 (0)1483 799111

 

------------------------------------------------------------------------
----
--
Beautiful is writing same markup. Internet Explorer 9 supports standards
for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------
------
Beautiful is writing same markup. Internet Explorer 9 supports standards
for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

----------------------------------------------------------------------------
--
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Download new Adobe(R) Flash(R) Builder(TM) 4
The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly 
Flex(R) Builder(TM)) enable the development of rich applications that run
across multiple browsers and platforms. Download your free trials today!
http://p.sf.net/sfu/adobe-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to