开发者

How to combine MSI files created with WiX in differnet languages to one file where yo can select the language?

开发者 https://www.devze.com 2023-04-09 01:28 出处:网络
I have a Windows Installer XML (WiX 3.5) project and five localization files for my installer. Therefore WiX creates five .msi files, for every language one. How can i put all in one .msi and let the

I have a Windows Installer XML (WiX 3.5) project and five localization files for my installer. Therefore WiX creates five .msi files, for every language one. How can i put all in one .msi and let the user select the language when executing the installer?

I heard something about a bootstrapper, but then i would have a Setup.exe and i need a msi file. Is it开发者_如何学Go not possible to adabt the localization strings after compiling with WiX?


This can be done using transforms. Please take a look at this article: http://www.installsite.org/pages/en/msi/articles/embeddedlang/


There are 2 parts to making this happen,

  • localisation of the Installer UI, and/or
  • choice of installed files.

The method I chose will automatically select the local (or near local) language, and can also be forced to a specific transform using command line options. This doesn't prompt the user to choose which language to install in - so maybe it doesn't actually meet your needs.

The second 'installed files' doesn't seem to be documented as well and I was recently asking about it in Why would MST not include files with different content.
As a response provided there is now an ANT build script using Windows7 SDK & antdotnet

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号