Re: [WiX-users] [Wix-users] msi and combo box

2011-04-07 Thread Thomazeau Michel
Hi,

I see your point Tobias, thanks for your quick answer. If the solution with
the combo box doen't work/doesn't fit my expectation, I will go for the
transform.


I have a question about the combo box.


I have set the combobox with its property and it seems to works fine
 Control Type=ComboBox Property=LANGUAGELIST Id=languageCombo
Width=84 Height=16 X=30 Y=244 ComboList=yes RightToLeft=yes/
ComboBox Property=LANGUAGELIST
ListItem Text=English Value=1033 / !--or ListItem
Text=English Value=English /--
ListItem Text=Spanish Value=3082 /
ListItem Text=Japanese Value=1041 /
  /ComboBox
Property Id=LANGUAGELIST1033/Property !-- default value--


but I don't see how to use this property to change the value of my
ScrollableText dynamically.

 Control Id=AgreementText Type=ScrollableText X=20 Y=60 Width=330
Height=140 Sunken=yes TabSkip=no
 Text SourceFile=EULA_English.rtf /
 /Control


Just putting the properties in the field (Text
SourceFile=EULA_[LANGUAGELIST].rtf/) doen't compile and it is normal.

Do I need to go for a wix project variable? or a condition?


Can someone help me to do that?


Thanks


Michel.
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [Wix-users] msi and combo box

2011-04-07 Thread Tobias S
HI,

Think this is a bit more tricky:

Control Id=LicenseText Type=ScrollableText X=20 Y=60
Width=330 Height=140 Sunken=yes TabSkip=no
Text SourceFile=!(wix.WixUILicenseRtf=$(var.licenseRtf)) /
/Control

adds the source file for the ScrollableText during binding of the
installation. Actually here you would need 3 different rtf files and
so you have to work around to populate the ScrollableText control.

At first glance it seems that you need some additional code to do so
(comp. http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg06828.html
)


Regards,
Tobias

2011/4/7 Thomazeau Michel neomichou...@gmail.com:
 Hi,

 I see your point Tobias, thanks for your quick answer. If the solution with
 the combo box doen't work/doesn't fit my expectation, I will go for the
 transform.


 I have a question about the combo box.


 I have set the combobox with its property and it seems to works fine
  Control Type=ComboBox Property=LANGUAGELIST Id=languageCombo
 Width=84 Height=16 X=30 Y=244 ComboList=yes RightToLeft=yes/
 ComboBox Property=LANGUAGELIST
            ListItem Text=English Value=1033 / !--or ListItem
 Text=English Value=English /--
            ListItem Text=Spanish Value=3082 /
            ListItem Text=Japanese Value=1041 /
          /ComboBox
 Property Id=LANGUAGELIST1033/Property !-- default value--


 but I don't see how to use this property to change the value of my
 ScrollableText dynamically.

  Control Id=AgreementText Type=ScrollableText X=20 Y=60 Width=330
 Height=140 Sunken=yes TabSkip=no
  Text SourceFile=EULA_English.rtf /
  /Control


 Just putting the properties in the field (Text
 SourceFile=EULA_[LANGUAGELIST].rtf/) doen't compile and it is normal.

 Do I need to go for a wix project variable? or a condition?


 Can someone help me to do that?


 Thanks


 Michel.
 --
 Xperia(TM) PLAY
 It's a major breakthrough. An authentic gaming
 smartphone on the nation's most reliable network.
 And it wants your games.
 http://p.sf.net/sfu/verizon-sfdev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [Wix-users] msi and combo box

2011-04-07 Thread Thomazeau Michel
Hi Tobias,

Thanks for you quick reply.


I already have the differents rtf files (one per language) integrated in my
visual project, So at least for this part I think I am ok!
I have a custom license page (a title/a textfield/a checkbox, and the
buttons) and I wanted to integrate a combobox in this page to change the
tetfield value.



I was a little worried that you will reply me that there were no choice but
to use Custom Action ...

Then I will have to learn how it works as I am a little new to the WIX
process and know nothing about custom action.

Meanwhile I read this:
http://www.tramontana.co.hu/wix/index.php
http://msdn.microsoft.com/en-us/library/Aa372048
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Question-about-using-custom-action-to-query-control-table-td5738865.html
http://www.mail-archive.com/wix-users@lists.sourceforge.net/msg42223.html
and some others I have closed.


I admit being a little lost.
Do I need to create an extern dll in my situation and write some external
code or can I do that directly in the wix files as all values/properties are
there and don't use external binaries/request?



If I understood well, what I need is:

1. Getting the current value of the combobox

It doen't seems possible to do that when the value of the combobox is
modified as the combobox doen't have a publish-like attribute. Am I wrong?
So I cannot launch a custom action when the combo box value is modified.
So I will have to do this another way.
Does custom action allow to watch over the properties values?



2.Updating the msi control table to change the sourcefile of the textfield

For the moment this thing is totally obscur for me...




Perhaps you (or somebody else) know some others links/tutorials than can
help me to code such a custom action (getting some ui properties and setting
the control table accordingly)?




Thanks a lot,

M.
--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] [Wix-users] msi and combo box

2011-04-06 Thread Tobias S
So if I  understand your requirements correctly you want to have a
combobox just for selecting a language for the license agreement?

That should be possible by adding a combobox e.g. on the first
installation scren and afterwards set a property for the selected
language and use this value for the language of the license agreement.
But to be honest from my point of view I'd recommend to localize the
complete UI and then the license agreement as well. E.g. all the
strings are already included in WiX and you only have to localize
additional ones.

Then build the lanugage transforms and create a bootstrapper to to
select the language. Alternatively you can use the approach to embed
transforms as it is descibed e.g. here:
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Multilanguage-install-td6161866.html

Regards
Tobias


2011/4/6 Thomazeau Michel neomichou...@gmail.com:
 Hi Guys,


 I have not found any infomation about using combo box ( the widget where you
 can choose one item in a list ) with WIX.


 My problem is about dynamic license text localization.


 I have seen many post about creating multiple msi, one for each languages. I
 have try this, in fact it work fine, all the ui that are produced are well
 localized but this solution does not correspond to my needs, because it
 induce to have one msi for every language (and I want to adress the msi to
 16 different languages ...).


 Another problem is that I don't care about the UI button or text
 localization, the only thing I want to be translated is the license text
 that appears in the second or third page of the installer.

 And the easiest way to do that, from user point of view, is to have a
 combobox where he can choose his language and that change the license text
 field below.



 Is there any way to do that with WIX?


 Tanks a lot,


 M.
 --
 Xperia(TM) PLAY
 It's a major breakthrough. An authentic gaming
 smartphone on the nation's most reliable network.
 And it wants your games.
 http://p.sf.net/sfu/verizon-sfdev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users


--
Xperia(TM) PLAY
It's a major breakthrough. An authentic gaming
smartphone on the nation's most reliable network.
And it wants your games.
http://p.sf.net/sfu/verizon-sfdev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users