如何启动维护模式--“更改、修复或删除安装” WIX 中的对话框

发布于 2024-08-15 16:17:13 字数 320 浏览 5 评论 0原文

我已经从这里更改了wix教程代码 http://www.tramontana.co.hu/wix/ 制作我自己的安装程序。

当我运行安装程序来设置我的应用程序时没有问题。但是当我再次运行安装程序时,会跳出一个窗口,显示“该产品的另一个版本已安装...”

但是在示例中,运行时应该有一个维护模式,“更改、修复或删除安装”对话框程序安装后的安装程序。

我正在使用 WixUI_Mondo,我认为它会自动提供维护模式,知道如何启动它吗?

I have changed the wix tutorial codes from here http://www.tramontana.co.hu/wix/ to make my own installer.

There is no problem when I run the installer to setup my application. But when I run the the installer again, a window jumped out said "Another version of this prodcut is already installed..."

But in the sample, there should be a Maintenance mode, "change, repair or remove installation" dialog when running the installer after the program has already been installed.

I am using the WixUI_Mondo, I think it provides the maintenance mode automatically, any idea how to launch it?

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

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

发布评论

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

评论(2

貪欢 2024-08-22 16:17:13

但是当我运行安装程序时
又,一个窗口跳了出来,说道
“该产品的另一个版本是
已经安装...”

这是当您使用完全相同的产品 ID 但不同的软件包 ID 重建安装程序然后再次运行它时出现的错误。

如果您运行原始 MSI 文件,它应该进入维护模式。

如果您如果不再有原始 MSI,您仍然可以通过添加/删除程序卸载您的产品,因为 Windows Installer 在 c:\windows\installer\ 下缓存了随机名称的 MSI 文件。

除非您需要支持细粒度的升级场景(即打补丁),我建议您将产品ID设置为“*”并按照wix帮助中的描述实现重大升级主题如何:在安装程序中实施主要升级

But when I run the the installer
again, a window jumped out and said
"Another version of this product is
already installed..."

This is the error you get when you rebuild your installer with the exact same product ID, but different package ID and then run it again.

If you run the original MSI file it should go to maintenance mode.

If you don't have the original MSI anymore, you can still uninstall your product via add/remove programs. This is possible because Windows Installer caches MSI files with a random name under c:\windows\installer\.

Unless you need to support fine-grained upgrade scenarios (i.e. patching), I recommend you set the product ID to "*" and implement major upgrades as described in the wix help topic How to: Implement a Major Upgrade in your Installer.

素罗衫 2024-08-22 16:17:13

我希望这就是您所缺少的:

假设您有一个可用但缺少用户界面的现有安装程序,则以下是使用 WixUI 库存对话框集所需遵循的步骤:

  1. 将 UIRef 元素添加到您的安装程序源代码,使用对话框集之一的 Id 属性。对于您的情况:

    <前><代码><产品...>
    >

您还可以自定义对话框,以便创建自定义“维护”对话框。

-祝你好运。克里斯

I hope this is what you're missing:

Assuming you have an existing installer that's functional but just lacking a user interface, here are the steps you need to follow to use a WixUI stock dialog set:

  1. Add a UIRef element to your installer source code, using an Id attribute of one of the dialog sets. In your case:

    <Product ...>
    <UIRef Id="WixUI_Mondo" />
    </Product>
    

You can also customize your dialogs, so that you could create a custom 'maintenance' dialog.

-Good luck. Chris

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