如何在使用 WiX 构建的 MSI 中包含卫星组件(本地化资源)? [英] How do I include Satellite Assemblies(Localized Resources) in an MSI built with WiX?

查看:23
本文介绍了如何在使用 WiX 构建的 MSI 中包含卫星组件(本地化资源)?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在从事的项目正在从使用 VS2008 部署/安装程序切换到 WiX,我目前对此很陌生.我已经添加了将资源项目的输出复制到 Resources.dll 中的代码,但是在旧的 VS2008 安装程序文件系统中,还有本地化的资源输出,它当前生成两个文件夹(en 和 es),​​另一个 dll 位于 (每种语言的 Resources.resources.dll).我进行了一些搜索,但似乎无法找到将这些文件夹放入 msi 的方法,因为实际上不知道这些文件夹存在并将它们直接放入.这样做的最佳方法是什么?

The project I'm working on is switching from using the VS2008 deployment/installer to WiX, which i'm currently very new to. I've added the code to copy the output of the resources project into the Resources.dll, but in the old VS2008 installer file system there is also the localized resources output which currently produces two foldes (en and es) with another dll in (Resources.resources.dll) for each language. I've had a bit of a search, but can't seem to find the method of getting these folders into the msi short of actually knowing that those folders exist and putting them straight in. What's the best way to do this?

推荐答案

在您的 Wix 源中为每个本地化文件夹(en 和 es)定义 元素,然后定义 元素,用于您的附属程序集.

Define <Directory> elements in your Wix source for each of the localization folders (en and es), then define <Component> elements within them for your satellite assemblies.

简而言之,把它们直接放进去!

In short, put them straight in!

这篇关于如何在使用 WiX 构建的 MSI 中包含卫星组件(本地化资源)?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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