how to manually remove MSI installation?

前端 未结 3 2058
清歌不尽
清歌不尽 2020-12-24 15:13

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 t

相关标签:
3条回答
  • 2020-12-24 15:58

    Remove your install entry in registry here. You might need to find out the GUID from your setup project.

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall OR
    HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall
    

    Check also DisplayName, it can be helpful when your product has defined friendly name.

    0 讨论(0)
  • 2020-12-24 16:03

    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 also REINSTALL=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...

    0 讨论(0)
  • 2020-12-24 16:08

    Use msiexec /x {guid product code}. If your MSI database got screwed up and this doesn't work, try msizap.

    0 讨论(0)
提交回复
热议问题