使用 Wix 安装 Visual Studio 代码片段
我为 MVVM Light 创建了一个安装程序,安装的一部分是关于 Visual Studio 2010、2010 Express 和 2008 的代码片段。不幸的是,代码片段安装到带有 LCID 的文件夹中(文化代码,例如 en-US 为 1033) )。如果代码片段不在正确的文件夹/LCID 中,Visual Studio 不会加载它们(是的,我知道这很愚蠢。但这就是我们所拥有的......)
当 VS 以英语安装时,一切都很好。但是,当找到 Geman(例如)版本的 VS 时,代码片段无法在 VS 中注册。
Wix 中有没有办法检测 LCID 并将其用作属性,换句话说,根据 LCID 将片段安装在正确的文件夹中?我知道多语言安装程序,但它看起来就像是杀死苍蝇的火箭筒。还有其他想法吗?
谢谢, 洛朗
I created an installer for MVVM Light and part of the installation is about code snippets for Visual Studio 2010, 2010 Express and 2008. Unfortunately, the code snippets are installed into a folder with a LCID (culture code, for instance 1033 for en-US). If the snippets are not in the correct folder/LCID, Visual Studio doesn't load them (yes, utterly stupid I know. But this is what we have...)
When VS is installed in English, all is well. However when a Geman (for instance) version of VS is found, the snippets fail to register in VS.
Is there a way in Wix to detect the LCID and to use that as a property, in other words to install the snippets in the correct folder depending on the LCID? I know about multilanguage installers but it seems like a bazooka to kill a fly. Any other idea?
Thanks,
Laurent
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
用户的区域设置可在 UserLanguageID 属性中找到。您需要一个 SetDirectory 将运行时值分配给目录名称。
The user's locale is available in the UserLanguageID property. You need a SetDirectory to assign the runtime value to a directory's name.