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 中所有已安装的应用程序


- 近似搜索的工作原理 2021-01-01
- 使用/clr 时出现 LNK2022 错误 2022-01-01
- STL 中有 dereference_iterator 吗? 2022-01-01
- Stroustrup 的 Simple_window.h 2022-01-01
- C++ 协变模板 2021-01-01
- 从python回调到c++的选项 2022-11-16
- 与 int by int 相比,为什么执行 float by float 矩阵乘法更快? 2021-01-01
- 静态初始化顺序失败 2022-01-01
- 一起使用 MPI 和 OpenCV 时出现分段错误 2022-01-01
- 如何对自定义类的向量使用std::find()? 2022-11-07