wix 项目中定义的所有组件是否都包含在最终的 msi 中?

发布于 2024-10-01 18:08:05 字数 298 浏览 0 评论 0原文

当使用 Heat 自动生成时,它似乎创建了比我们实际想要交付的更多的组件。

例如,有一个需要安装的服务,所以我们想做服务注册的东西,它也是一个com组件,所以我们想做com注册。这一切都在一个 MSVC# 项目中,并将该项目包含到 wix 中的安装项目中,自动对其进行加热(我只是想为构建设置依赖项),并且输出包含数百个组件。

如果您想允许某些动态部分 - 例如更改 com 注册 - 而不包含所有内容 - 例如 pdb 文件 - 如何最好地管理它?

当您将此热文件包含到您的项目中时,您将如何指定哪些组件构成哪些功能以及哪些被忽略?

When using Heat to auto generate it seems to create a whole bunch more components than what we want to actually ship.

For instance, Have a service that needs to be installed, so we want to do service registration stuff, and it is also a com component so we want to do com registration. This is all in an MSVC# project and including the project into the install project in wix automatically ran heat on it (I just meant to setup a dependency for build) and the output included hundreds of components.

If you want to allow for some dynamic portion - say change to the com registration - without including everything - like pdb files - how is this best managed?

When you include this heat file into your project, how would you specify which components make up which features and which get ignored?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

夏九 2024-10-08 18:08:06

您可以指定参数以及所需的扩展文件和要排除的扩展文件。

例子

%1\Paraffin.exe -dir "..\..\..\..\Application" -dirref INSTALLLOCATION -custom App ..\..\AppFragment.wxs -guids -ext .vspscc -ext .cs -ext .resx -ext .csproj -ext .exclude -ext LocalAppSettings.config -ext .pdb -direXclude UITests -direXclude obj -direXclude Netrics -direXclude XSLT -multiple

You can specify the parameters along with which extension files you want and which to exclude.

Example

%1\Paraffin.exe -dir "..\..\..\..\Application" -dirref INSTALLLOCATION -custom App ..\..\AppFragment.wxs -guids -ext .vspscc -ext .cs -ext .resx -ext .csproj -ext .exclude -ext LocalAppSettings.config -ext .pdb -direXclude UITests -direXclude obj -direXclude Netrics -direXclude XSLT -multiple
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文