Uninstalling an MSI package

There are a few ways to uninstall an MSI package.

  • If you have access to the original MSI used for the installation, you can simply right click it in Windows Explorer and select Uninstall.
  • As stated above you can do the same by command line:
    msiexec /x filename.msi /q


  • Just got to mention the normal approach though it is obvious
  • Go start -> run -> appwiz.cpl -> ENTER in order to open the add/remove programs applet (or click add/ remove programs in the control panel)
  • Click "Remove" for the product you want to uninstall.


  • You can locate the required code to pass to msiexec.exe /x by opending regedit.exe at HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall and search for the application name (or just browse through each sub folder till u find it).
  • When you have found it you can pass it to msiexec as explained above: msiexec.exe /x {0077A7C7-3333-2222-1111-111111111000}


  • MSI strips out all cabs and caches each MSI installed in a super hidden system folder at %SystemRoot%\Installer (you need to show hidden files to see it).
  • All the MSI files here will have a random name assigned, but you can get information about each MSI by showing the Windows Explorer status bar (View -> Status Bar) and then selecting an MSI. The summary stream from the MSI will be visible at the bottom of the Windows Explorer window.
  • Once you find the right MSI, just right click it and go Uninstall.


  • Also remember that an uninstall can be initiated using the WMIC command:

    wmic product get name --> This will list the names of all installed apps

    wmic product where name='myappsname' call uninstall --> this will uninstall the app.

    • Finally you can uninstall an MSI via the Windows Installer Automation api

      Const msiUILevelNone = 2

      Set objInstaller = CreateObject("WindowsInstaller.Installer")
      objInstaller.UILevel = msiUILevelNone
      objInstaller.InstallProduct( "product.msi", "REMOVE=ALL")
      Set objInstaller = Nothing