如何手动删除 MSI 安装?
我正在学习 VS 2008 安装项目来为我们的 C# 应用程序创建安装。我在卸载过程中尝试删除 exe 本身时犯了一个错误。现在我手动删除了exe文件,但该条目仍在“添加删除程序”列表中。我尝试安装固定的较新版本,但 msi 不允许我这样做。
如何手动删除旧版本(我可以使用regedit,没问题)?我用的是XP机器。谢谢
编辑: 在删除该卸载注册表项中的子项后,我仍然无法安装较新的版本。
I am learning VS 2008 setup project to create install for our C# application. I made a mistake trying to delete the exe itself during the uninstall. Now I manually deleted the exe file but the entry still in Add Remove Program list. I try to install a fixed newer version but msi doesn't allow me to do so.
How can I remove the old version manually (i can use regedit, no problem)? I am using XP machine. thanks
EDIT:
After I removed its subkey in that uninstall registry entry, I still cannot install my newer version.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果这是一个适当的小更新/次要升级 .msi 文件来修复无法卸载的早期版本,只需使用
msiexec /i Updated.msi REINSTALLMODE=vomus
(也可能>重新安装=全部
)。 vomus 的 v 会让 Windows Installer 将旧包替换为新包,然后就可以正常卸载了。但当然,现在所有这些都是不必要的,因为能够在虚拟机上进行测试,您可以恢复......
If this is a proper small update / minor upgrade .msi file to fix an earlier version which couldn't uninstall, just install it with
msiexec /i updated.msi REINSTALLMODE=vomus
(and maybe alsoREINSTALL=ALL
). The v of vomus will have Windows Installer replace the old package with the new, and then you can uninstall normally.But of course all this is unnecessary these days with the ability to test on a virtual machine you can just revert...
在此处删除注册表中的安装条目。您可能需要从安装项目中找出 GUID。
另请检查 DisplayName,当您的产品定义了友好名称时,它会很有帮助。
Remove your install entry in registry here. You might need to find out the GUID from your setup project.
Check also DisplayName, it can be helpful when your product has defined friendly name.
使用
msiexec /x {guid 产品代码}
。如果您的 MSI 数据库出现问题并且此方法不起作用,请尝试msizap
< /a>.Use
msiexec /x {guid product code}
. If your MSI database got screwed up and this doesn't work, trymsizap
.