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

查看:353
本文介绍了如何在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.

推荐答案

如果您是在控制面板的Add \Remove Programs中显示的已安装应用程序列表,您可以在注册表项中找到它:

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

HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Uninstall

有关注册表树结构的更多信息,请点击此处

您需要使用python中的 winreg API 来阅读注册表中的值。

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

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

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