调用的Setup.exe微星基于区域设置 [英] Setup.exe calling msi based on Regional setting

查看:128
本文介绍了调用的Setup.exe微星基于区域设置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

环境: Windows 7的SP1 的Visual Studio 2010旗舰版SP1 .NET 4.0

Environment: Windows 7 SP1 Visual Studio 2010 Ultimate SP1 .NET 4.0

我有一些prerequisites(Windows安装程序4.5,SQL Server的防爆preSS 2008 ...)

I have a Visual Studio Setup project with some prerequisites(Windows Installer 4.5, SQL Server Express 2008...)

我的部署包有一个SETUP.EXE,app.msi和文件夹prerequisites。

My deployment package has an setup.exe, app.msi and folders with prerequisites.

现在我们要本地化的MSIS。 因此,我们将有app.en.msi和app.de.msi

Now we want to localize the msis. So we will have app.en.msi and app.de.msi

我需要两个部署包? 或者,我可以有一个智能的setup.exe,可以根据区域设置app.en.msi和app.de.msi之间进行选择?

Do I need two deployment packages? Or can I have an intelligent setup.exe which can choose between the app.en.msi and app.de.msi based on the regional setting?

推荐答案

一般的处理方法是这样的:

The general approach is this:

  • create the base MSI in the main language (usually English)
  • create a MST transform for each language; this transform should change the UI strings to their translated values
  • create a custom EXE bootstrapper which detects the system language or shows a language selection dialog
  • this bootstrapper should then launch the MSI with the appropriate transform

Visual Studio中不支持这一点,但你可以生成与转换的逆戟鲸

Visual Studio doesn't support this, but you can generate transforms with Orca.

请注意,这不是一件容易的事。你必须做的一切手工工作,其中包括翻译成你想要的语言的UI字符串。

Please note that this is not an easy task. You would have to do everything by hand, including getting the UI strings translated in the languages you want.

对于多语言包更容易使用商业安装创作工具已经有专门的支持及相应的字符串。

For multilingual packages it's easier to use a commercial setup authoring tool which already has dedicated support and the appropriate strings.

这篇关于调用的Setup.exe微星基于区域设置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆