如何启动维护模式--“更改、修复或删除安装” WIX 中的对话框
我已经从这里更改了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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这是当您使用完全相同的产品 ID 但不同的软件包 ID 重建安装程序然后再次运行它时出现的错误。
如果您运行原始 MSI 文件,它应该进入维护模式。
如果您如果不再有原始 MSI,您仍然可以通过添加/删除程序卸载您的产品,因为 Windows Installer 在
c:\windows\installer\
下缓存了随机名称的 MSI 文件。除非您需要支持细粒度的升级场景(即打补丁),我建议您将产品ID设置为
“*”
并按照wix帮助中的描述实现重大升级主题如何:在安装程序中实施主要升级。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.我希望这就是您所缺少的:
假设您有一个可用但缺少用户界面的现有安装程序,则以下是使用 WixUI 库存对话框集所需遵循的步骤:
将 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:
Add a UIRef element to your installer source code, using an Id attribute of one of the dialog sets. In your case:
You can also customize your dialogs, so that you could create a custom 'maintenance' dialog.
-Good luck. Chris