我什么时候应该在 WiX 中使用 -sreg?热.EXE?

发布于 2024-09-24 00:22:54 字数 401 浏览 1 评论 0原文

我正在使用 HEAT 自动生成文件目录的 WiX 片段。

我正在部署的项目是一个 ASP.NET 项目。当我尝试获取目录时,HEAT 会生成 RegistryValue 条目,为 .NET DLL 写入 InProcServer32 条目。

使用 -sreg 删除所述条目。

问题:

  1. 我是否应该使用 HEAT 自动生成片段?我读过 到处都是我不应该去的地方 做这个。我什么时候应该使用 HEAT?

  2. 我应该始终使用 -sreg 吗?如果什么 我正在部署 COM 对象?

  3. 使用 -sreg 的缺点是什么 分发 .NET 程序集时?

*抱歉,WiX 和整个部署都是新手。 :)

I'm using HEAT to autogenerate WiX fragments for a directory of files.

The project I'm deploying is an ASP.NET project. When I tried to harvest a directory, HEAT generates RegistryValue entries that writes InProcServer32 entries for .NET DLLs.

Using -sreg removes said entries.

Questions:

  1. Should I even be using HEAT to
    autogenerate fragments? I've read
    everywhere that I should not be
    doing this. When should I use HEAT?

  2. Should I always use -sreg? What if
    I'm deploying COM objects?

  3. What is the downside of using -sreg
    when distributing .NET assemblies?

*Sorry, new to WiX and deployment as a whole. :)

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

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

发布评论

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

评论(1

杯别 2024-10-01 00:22:54
  1. 在我看来,热量应该作为生成片段的第一步。对此有不同的看法,许多人喜欢在构建过程中使用它。
  2. 仅当不需要注册表值时才使用 -sreg。如果你有 COM,你就会想要它们。这就是答案 1 的用武之地,我认为您运行 heat,然后编辑输出以适合您想要执行的操作。
  3. 取决于情况,.NET 本身不需要注册表值,但如果您使用 COM,则需要。对于非 com 程序集,您会得到什么值?
  1. In my opinion heat should be used as a first pass to generate a fragment. Opinions vary on this and many people like to use it in a build process.
  2. Only use -sreg if would don't want the registry values. If you have COM you would want them. This is where answer 1 comes in, I think you run heat then edit the output to suit what you want to do.
  3. Depends, .NET itself doesn't need the registry values but if you use COM it will. What values do you get for non-com assemblies?
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文