How can I enumerate/list all installed applications in Windows XP?(如何枚举/列出 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 中所有已安装的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何枚举/列出 Windows XP 中所有已安装的应用程序
基础教程推荐
- 与 CAS 的原子交换(使用 gcc 同步内置函数) 2022-01-01
- 如何更改 SysDateTimePick32 或 CDateTimeCtrl 的背景颜色? 2022-01-01
- 将不可复制的闭包对象传递给 std::function 参数 2021-01-01
- c++ STL设置差异 2022-01-01
- C++:获取传递给函数的多维数组的行大小 2021-01-01
- 提升 ASIO 流缓冲 2021-01-01
- 随机插入/删除的综合向量与链表基准 2022-01-01
- 如何在 C++ 中正确使用命名空间? 2022-01-01
- 如何部分禁用 cmake C/C++ 自定义编译器检查 2021-01-01
- 为什么我们不能使用“虚拟继承"?在 COM 中? 2022-01-01
