Can't Uninstall a MSI
I ran a native MSI file on my machine. It does not put anything under the Add/Remove programs in Control Panel so I can't uninsall it. Also, I looked here: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData and I found the product code for this MSI yet when I run msiexec.exe /x {prodcode} it tells me this will only work for an applicaiton that is installed.
What gives?
I thougth all apps will put an entry under HLKM\Software\Microsoft\Windows\CurrentVersion\Uninstall yet I have seen MSI's "not" do this. Why?
Thanks for any help.
What gives?
I thougth all apps will put an entry under HLKM\Software\Microsoft\Windows\CurrentVersion\Uninstall yet I have seen MSI's "not" do this. Why?
Thanks for any help.
0 Comments
[ + ] Show comments
Answers (6)
Please log in to answer
Posted by:
gizmolala
18 years ago
Posted by:
AngelD
18 years ago
Have to tried just to double-click the msi again, you should be able to either modify, repair or uninstall.
Or you could use:
Add the code bellow to a vbscript file (ex. GetProductCode.vbs).
Drop the MSI on the script or put the MSI as the argument to it (ex. cscript GenProductCode.vbs Install.msi) and this will output the ProductCode that you then could use "msiexec /x {ProductCode}" for.
Or you could use:
Add the code bellow to a vbscript file (ex. GetProductCode.vbs).
Drop the MSI on the script or put the MSI as the argument to it (ex. cscript GenProductCode.vbs Install.msi) and this will output the ProductCode that you then could use "msiexec /x {ProductCode}" for.
Const msiOpenDatabaseModeReadOnly = 0
Dim MsiPath : MsiPath = WScript.Arguments(0)
Dim Installer : Set Installer = CreateObject("WindowsInstaller.Installer")
Dim Database : Set Database = Installer.OpenDatabase(MsiPath, msiOpenDatabaseModeReadOnly)
Dim View : Set View = Database.OpenView("Select * From `Property` WHERE Property = 'ProductCode'")
View.Execute
Dim Record : Set Record = View.Fetch
WScript.Echo "ProductCode: " & Record.StringData(2)
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.