且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何枚举/列出 Windows XP 中所有已安装的应用程序?

更新时间:2023-11-20 21:29:16

如果您指的是在控制面板的添加删除程序"中显示的已安装应用程序列表,您可以在注册表项中找到它:

If you mean the list of installed applications that is shown in AddRemove Programs in the control panel, you can find it in the registry key:

HKEY_LOCAL_MACHINESoftwareMicrosoftWindowsCurrentVersionUninstall

可以在此处找到有关注册表树结构的更多信息.

您需要使用 python 中的 winreg API 从注册表.

You need to use the winreg API in python to read the values from the registry.