更改了 MSI 中的组件 GUID,这导致了问题

发布于 2024-11-27 15:42:31 字数 415 浏览 1 评论 0原文

我正在开发一个产品的安装程序(当前版本 3)。在版本 1 和版本 2(已发布)之间,组件的 guid 发生了更改,但密钥路径和一切都保持不变(并且需要保持不变)。在版本 3 中,我需要进行更改以在安装顺序中稍后移动 RemoveExisitingProducts。然而,这暴露了一个新的错误,导致从版本 1 升级到版本 3 时,其 guid 更改的组件无法安装。我正在尝试找出解决此错误的方法。修复可以修复安装,但我不想修复。我认为可能需要某种破解来修复它,但我还没有成功。我尝试转到 HKLM/Microsoft/windows/currentversion/installer/user data/S-15-18/components/OLDPACKEDGUID 并在运行新安装程序之前将其删除,但这似乎会导致严重的问题,而且情况会更糟。

有人知道这个问题的解决方案吗,即使这是一个大黑客? 谢谢

I am working on the installer for a product (currently version 3). Between versions 1 and 2 (already released), the guid of a component was changed, but the keypath adn everything stayed the same (and needs to stay the same still). In version 3, I need to make a change to move RemoveExisitingProducts later in the install sequence. However, this is exposing a new bug causing the component that had its guid changed to not be installed if upgrading from version 1 to version 3. I'm trying to figure out a way around this bug. Repairing fixes the installation but I'd rather not have to repair. I think it'll probably take some kind of hack to fix it, but I haven't been successful. I tried going to HKLM/Microsoft/windows/currentversion/installer/user data/S-15-18/components/OLDPACKEDGUID and deleting it before running the new installer, but that seems to cause terrible issues and be much worse.

anyone know a solution to this issue, even if it's a big hack?
Thanks

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

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

发布评论

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

评论(1

风启觞 2024-12-04 15:42:31

您可以尝试将 RemoveExistingProducts 安排在序列的前面,以便在升级过程中,在安装新产品之前完全卸载以前的产品。

另请看看这个 WiX 升级问题。并且

You can try to schedule RemoveExistingProducts earlier in the sequence so that during upgrade the previous product is completely uninstalled before installing the new product.

Also look at this WiX upgrade question. And another one may also be helpful.

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