How can I find the GUID of an MSI package? I would like to script the removal of a program on a large number of desktops by using:
msiexec.exe /x ProductCode
Any reason why this would not work for any applications listed in "Add/Remove Programs?"
|
How can I find the GUID of an MSI package? I would like to script the removal of a program on a large number of desktops by using:
Any reason why this would not work for any applications listed in "Add/Remove Programs?"
| ||||
|
feedback
|
|
The Windows SDK tool Orca will allow you to open and view all tables in an MSI file. Once you have the MSI open, you can either navigate to the Property table and look for the "product code" entry, or you can select "View => Summary Information..." and look for the "package code" entry. Either the package or the product guid can be used for uninstall. There are also other ways to find the GUID. As explained above HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\ will normally list the GUID. It still appears you have to download the MSI SDK to obtain Orca. If you don't have access to Orca and can't be bothered downloading the SDK, any viewer capable of reading a MSSQL database file (com stuctured storage file), should be able to open the MSI file and view the contents. Make a copy of the MSI before opening it in a viewer and open the copy. Just to be sure. Once open you navigate to the Property table and look for the product GUID. | |||||||
feedback
|
|
It is a registry key:
or if the platform is x64 and the application is 32-bit:
| |||
|
feedback
|
|
Revision Number Summary Property:
| |||
feedback
|