Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
757 views
in Technique[技术] by (71.8m points)

localization - Change WIX Installer language at run

Multi-Language MSI Packages without Setup.exe Launcher

Please help me to create multi language MSI package without Setup.exe by using wix.

I have created mst file for different languages and embedded it with EmbedTransform tool but it works only with command lint option like msiexec /i SampleMulti.msi TRANSFORMS=":fr-fr.mst". It was not working if I change language of my machine and install directly using msi.

I have followed below link from post but it also did not work how to create language transformation that will correctly change the ProductLanguage property in Wix.

It can also be fine if we can choose language from dropdown and installer language change according.

Please help me out.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

You can follow the directions as described on this site: Multi-Language MSI Packages without Setup.exe Launcher

Steps described shortly:

  • You create a basic MSI-package with English as default / fallback language
  • You create transforms for every other language you want to include
  • You embed those transforms within your MSI-package (so you basically just have one MSI-file)
  • You adjust the Summary Information Stream

The scripts used are taken from the Windows SDK. Using this method you start the MSI and based on the regional options (not the UI language) configured for your system, Windows Installer will present the installation in the related language (if a transform was included) or in English (if Windows Installer couldn't find any appropriate language transform).

Used it myself with 5 languages included and worked like a charm.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...