.net 重高潮问题

发布于 2024-08-21 11:13:37 字数 154 浏览 9 评论 0原文

假设我们有一个部署 .net com dll 并在其上运行 regasm 的设置,该设置没有卸载,因此注销永远不会被调用.. 并且您可以一遍又一遍地运行该设置..

有任何危险吗这样做?如果我使用新版本的 dll 部署新设置会发生什么。

从不运行卸载有什么危险吗?

Lets say we have this scenario a setup that deploys a .net com dll and runs regasm on it, this setup has no uninstall so unregister Will never be called.. And you can run the setup over and over again..

Is there any danger in doing so?? What would happen if i deploy à new setup with à new version of the dll..

Is there any danger in never running uninstall?

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

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

发布评论

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

评论(1

沦落红尘 2024-08-28 11:13:37

这里不是 100% 确定,但我相信如果你保持所有 IID、ClassID 和 ProgID 相同,就可以了。如果您不断为类生成新的唯一 ID,则可能会因未使用的条目而使注册表变得混乱。因此,当您部署此类内容时,最好对所有 COM ID 有一个良好、明确的处理。

Not 100% sure here, but I believe if you keep all of the the IIDs, ClassIDs and ProgIDs the same, you're OK. If you keep generating new unique IDs for your classes, you could clutter up the registry with unused entries. So it's probably best to have a good, explicit handle on all of your COM IDs when you deploy something like this.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文