Creating localized Wix setup

Add-in Express™ Support Service
That's what is more important than anything else

Creating localized Wix setup
 
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hello Oliver,

I have a question. Do you use Visual Studio German or English?
Posted 10 Feb, 2017 05:38:56 Top
OliverM




Posts: 144
Joined: 2015-08-13
Hi Sergey,

I am using Visual Studio English.
Kind regards
Oliver
Posted 10 Feb, 2017 05:57:39 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hello Oliver,

I reproduced the issue. Please set 'Format' to English (United States) in the Region dialog of Windows.
It should help to compile the WiX setup project. Currently, I don't know what causes this issue. I will try to fix it as soon as possible.
Posted 10 Feb, 2017 11:37:57 Top
OliverM




Posts: 144
Joined: 2015-08-13
Hi Sergey,

I am glad to hear you can reproduce the issue!
Following your advice, I changed the settings but it did not help.
I still believe there is an issue with setting the language id's after merging transforms.

As a simple example I created a setup, set the localization property to neutral and added German as the only language.
This should create a msi able to start on a machine with UI culture de-DE in German, on any other machine it should default to English.
Unfortunately it does not work and setup always starts in English.

To be sure the transform has been merged into msi at all, I double check with
msiexec /i MySetup.msi TRANSFORMS=":1031"


Ok, transforms are merged correctly but why it does not work then?
To clarify that I check the package languages set using WiLangId.vbs from the MS SDK.

cscript "WiLangId.vbs" MySetup.msi

returns the following:
Package language = 1031,3072,0 ProductLanguage = 3072, Database codepage = 1252 ADX


Note the ordering of the package language id's!

I change the ordering of languages and kick the 0 out.
cscript "WiLangId.vbs" MySetup.msi Package 3072,1031


which then returns the following:
Package language = 3072,1031 ProductLanguage = 3072, Database codepage = 1252 ADX

Having the id's changed in such a way makes the setup come up in the appropriate language on the test machines.
Kind regards
Oliver
Posted 11 Feb, 2017 08:50:39 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Oliver,

>>Ok, transforms are merged correctly but why it does not work then?
Is the 'Format' field of the 'Region and Settings' dialog set to 'German (Germany)' on the test machine?
Posted 16 Feb, 2017 05:51:38 Top
OliverM




Posts: 144
Joined: 2015-08-13
Hi Sergey,

No, everything on the test machine is set up in English. Format, location etc. Only thing in German is a German keyboard layout I have added.
Kind regards
Oliver
Posted 16 Feb, 2017 08:50:33 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hi Oliver,

To change the UI language of MSI dialogs you need to change the Format field to an appropriate language. Please check it on the test PC.
Posted 16 Feb, 2017 10:34:18 Top
OliverM




Posts: 144
Joined: 2015-08-13
Hi Andrey,

Sorry I misunderstood your question.

The test machine is originally setup in German.
The development machine is originally set up in English (plus German keyboard layout).

Once I have corrected the language id's with the script as described above, setup starts:
- On the test machine in German.
- On the development machine in English
- On the devolopment machine in German (if the Format specifier in region settings is changed to German)

If I do not modify language id's setup starts on every machine in English and also changing the region settings does not help.
Kind regards
Oliver
Posted 16 Feb, 2017 11:06:03 Top
Sergey Grischenko


Add-in Express team


Posts: 7187
Joined: 2004-07-05
Hello Oliver,

For some reason I can't reproduce the issue. My PC is English. I created a setup project for English, German and French, set 'Format' to 'German (Germany)' and run the .msi file. I see German text in the Welcome dialog.
Is the project compiled without errors on your dev PC (English)? If so, please compile the setup on your PC and send me the msi file to the support e-mail. I will test it.
Posted 17 Feb, 2017 08:56:53 Top
OliverM




Posts: 144
Joined: 2015-08-13
Hi Sergey,

The project and the setup project compile without errors.
I have sent the setup to the support address.

Could you please send me the setup you have created, so I can test whether or not it behaves identically on my machines?
Kind regards
Oliver
Posted 17 Feb, 2017 10:31:57 Top