从MSI文件中查找GUID [英] Find GUID From MSI File

查看:88
本文介绍了从MSI文件中查找GUID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何列出Windows中已安装程序的GUID?另外,如果我拥有MSI文件,是否更容易找到GUID?

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?

我正在使用Orca浏览MSI文件,但不确定在哪里可以找到GUID.

I'm looking through the MSI file with Orca but not sure where to look to find the GUID.

谢谢!

推荐答案

Windows Installer数据库的三个主要GUID是产品代码 ,以及 UpgradeCode .第一个存储在摘要信息流中(Orca中的查看"菜单),其他存储在属性"表中. (其他形式的数据库,例如合并模块和修补程序,在相似的位置具有相似的GUID,例如合并模块的GUID或修补程序代码GUID,它们的存储方式与软件包代码相同.)

The three main GUIDs of a Windows Installer database are the Package Code, ProductCode, and UpgradeCode. The first is stored in the summary information stream (View menu in Orca), and the others are stored in the Property table. (Other forms of databases such as merge modules and patches have similar GUIDs in similar places, such as the merge module's GUID or the patch code GUID - each stored identically to the package code.)

要在计算机上找到它们,您可以查看经常使用ProductCode的Uninstall键.或者,更好的是,如果您希望枚举计算机上当前安装的软件,则可以调用 MsiEnumProducts .

To find them on a machine, you can look in the Uninstall key, where the ProductCode is often used. Or better yet, if you are looking to enumerate what is currently installed on the machine, you can call MsiEnumProducts.

这篇关于从MSI文件中查找GUID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆