Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
726 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 Reply

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...