Find GUID From MSI File

前端 未结 5 709
日久生厌
日久生厌 2020-12-16 01:01

How can I list the GUID of an installed program in Windows? Alternatively, is it easier to find the GUID if I have the MSI file?

I\'m looking through the MSI file w

5条回答
  •  庸人自扰
    2020-12-16 01:30

    My solution is that I wrote a small console app which returns ProductCode of any MSI file (name is passed as program argument). I'm doing it by reading the guid from .msi file itself. Basically I'm opening that msi file as a string and looking for a text started with "ProductCode", getting its index and taking 38-chars before that index position. Here is the screenshot:

提交回复
热议问题