How can I find the product GUID of an installed MSI setup?

后端 未结 3 1129
长情又很酷
长情又很酷 2020-11-22 01:04

I need to find the product GUID for an installed MSI file in order to perform maintenance such as patching, <

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-22 02:03

    If you have too many installers to find what you are looking for easily, here is some powershell to provide a filter and narrow it down a little by display name.

    $filter = "*core*sdk*"; (Get-ChildItem HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall).Name | % { $path = "Registry::$_"; Get-ItemProperty $path } | Where-Object { $_.DisplayName -like $filter } | Select-Object -Property DisplayName, PsChildName
    

提交回复
热议问题