如何枚举/列出 Windows XP 中所有已安装的应用程序? [英] How can I enumerate/list all installed applications in Windows XP?

查看:27
本文介绍了如何枚举/列出 Windows XP 中所有已安装的应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我说已安装的应用程序"时,我基本上是指在[控制面板]->[添加/删除程序]中可见的任何应用程序.

When I say "installed application", I basically mean any application visible in [Control Panel]->[Add/Remove Programs].

我更喜欢用 Python 来做,但 C 或 C++ 也可以.

I would prefer to do it in Python, but C or C++ is also fine.

推荐答案

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

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.

这篇关于如何枚举/列出 Windows XP 中所有已安装的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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