Hi Dirk,

Thank you for your reply. I tried the way as you suggested that write an 
setup.exe with dialog, where the user can select the language. The next button 
will call the appropriate language msi to install the package. Therefore, the 
setup.exe is only a small program to perform the language selection task. 

It works fine for me. What do you think? Is it the correct way to realize the 
different language installation function?

Best regards,

Chunyan 
 

-----Ursprüngliche Nachricht-----
Von: Dirk Räder [mailto:d...@raeder.cc] 
Gesendet: Mittwoch, 8. Juli 2009 18:26
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] How to localize wix package in this way?

Hi again,

as I wrote before: Windows Installer does not allow one MSI calling another 
MSI. You will have to use an external program calling the MSI with the 
appropriate language information.

Regards,

Dirk

2009/7/8 Jiang, Chunyan (GE Healthcare) <chunyan.ji...@ge.com>:
> As I thought to define two wix projects to realize my aim, I tried to define 
> a CustomAction in one msi to call another msi.
>
>    <Binary Id="GermanInstallMsi"
>        SourceFile="..SourceDir\VP6Wix.msi" />
>
>    <CustomAction Id="GermanInstall"
>                  BinaryKey="GermanInstallMsi"
>                  ExeCommand=""
>                  Execute="deferred"
>                  Return="check"
>                  HideTarget="no"
>                  Impersonate="no" />
>
>  Then call this action in one push button after the radio button is selected:
>
>      <Control Type="PushButton" Id="next" Width="74" Height="17" 
> X="202" Y="229" Text="Next" Property="USERNAME">
>          <Publish Event="DoAction" 
> Value="GermanInstall"><![CDATA[LanguageNumber = "1" ]]></Publish>
>
> However, when I run the first msi, select one language, click the push 
> button, I got the error:
>
> The installer has encountered an unexpected error installing this package. 
> This may indicate a problem with this package. The error code is 2762.
>
> The language selection dialog is called in InstallUISequence as:
>
>    <InstallUISequence>
>      <Show Dialog="InstallLanguageSelect" Before="CostFinalize" />
>
> Why does the error come when I run the first msi? Could some one give me tips?
>
> Regards,
>
> Chunyan
>
> -----Ursprüngliche Nachricht-----
> Von: Jiang, Chunyan (GE Healthcare)
> Gesendet: Mittwoch, 8. Juli 2009 14:58
> An: General discussion for Windows Installer XML toolset.
> Betreff: Re: [WiX-users] How to localize wix package in this way?
>
> Hi Rob,
>
> Thanks to the Wix Tutorial, I learned from the SampleAskKey source code and 
> got to know how to use RadioButtonGroup to get the different selection value. 
> For example, I give the three radio buttons different value for the property 
> and define the push button publish even according to different property's 
> values.
>
> As you said, WIX doesn't support language switching. Is it possible to create 
> another wix project, which has different localization msi, using the push 
> button above to call the msi accordingly? The idea is to have two wix 
> projects. One is for language selection, the other one is for the real 
> installation, which has different localization msi versions.
>
> How can I define the publish event for the push button in this case?
>
>
> Best regards,
>
> Chunyan
>
> -----Ursprüngliche Nachricht-----
> Von: Jiang, Chunyan (GE Healthcare)
> Gesendet: Mittwoch, 8. Juli 2009 10:17
> An: General discussion for Windows Installer XML toolset.
> Betreff: Re: [WiX-users] How to localize wix package in this way?
>
> Hi Rob,
>
> Thank you for your information. Although Wix doesn't support switching 
> different language packages, I think the radio button can transfer the 
> language selection parameter to some small program or dll, and ask it to 
> select the coresponding localization package and go on to do the installation.
>
> How ever, I don't know how to transfer parameter throught radio button 
> selection, and what program or dll can be used in wix. Is there some example 
> that I can learn?
>
> Best regards,
>
>
> Chunyan
>
> -----Ursprüngliche Nachricht-----
> Von: Rob Mensching [mailto:r...@wixtoolset.org]
> Gesendet: Montag, 6. Juli 2009 19:39
> An: General discussion for Windows Installer XML toolset.
> Betreff: Re: [WiX-users] How to localize wix package in this way?
>
> Windows Installer doesn't support that. You need to have something outside 
> control the language switching.
>
> Jiang, Chunyan (GE Healthcare) wrote:
>> Hi Wix-users,
>>
>> I would like to create the installation package by using of wix. Is 
>> it possible to have different language installation in the same package?
>> For example, the first dialog have the radio button group, English, 
>> German, Italian. If user select one language, click next button, the 
>> next dialog will show the defined language page.
>>
>> I have read some articles about localization in wix. And I can define 
>> the string in .wxl and refer it in the dialog as !(loc.stringname)
>>
>> However, I don't know how to define the radio button condation or 
>> action in order to load the corresponding dialog.
>>
>> It will be appreciated for any help!
>>
>>
>> Chunyan
>> ---------------------------------------------------------------------
>> -
>> -------- _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>
> ----------------------------------------------------------------------
> -------- _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ----------------------------------------------------------------------
> -------- Enter the BlackBerry Developer Challenge This is your chance 
> to win up to $100,000 in prizes! For a limited time, vendors 
> submitting new applications to BlackBerry App World(TM) will have the 
> opportunity to enter the BlackBerry Developer Challenge. See full 
> prize details at: http://p.sf.net/sfu/Challenge 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ----------------------------------------------------------------------
> -------- Enter the BlackBerry Developer Challenge This is your chance 
> to win up to $100,000 in prizes! For a limited time, vendors 
> submitting new applications to BlackBerry App World(TM) will have the 
> opportunity to enter the BlackBerry Developer Challenge. See full 
> prize details at: http://p.sf.net/sfu/Challenge 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
> ----------------------------------------------------------------------
> -------- Enter the BlackBerry Developer Challenge This is your chance 
> to win up to $100,000 in prizes! For a limited time, vendors 
> submitting new applications to BlackBerry App World(TM) will have the 
> opportunity to enter the BlackBerry Developer Challenge. See full 
> prize details at: http://p.sf.net/sfu/Challenge 
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge This is your chance to win up to 
$100,000 in prizes! For a limited time, vendors submitting new applications to 
BlackBerry App World(TM) will have the opportunity to enter the BlackBerry 
Developer Challenge. See full prize details at: http://p.sf.net/sfu/Challenge 
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to