当我说已安装的应用程序"时,我基本上是指在[控制面板]->[添加/删除程序]中可见的任何应用程序.
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 中所有已安装的应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
当没有异常时,C++ 异常会以何种方式减慢代码速In what ways do C++ exceptions slow down code when there are no exceptions thown?(当没有异常时,C++ 异常会以何种方式减慢代码速度?)
为什么要捕获异常作为对 const 的引用?Why catch an exception as reference-to-const?(为什么要捕获异常作为对 const 的引用?)
我应该何时以及如何使用异常处理?When and how should I use exception handling?(我应该何时以及如何使用异常处理?)
C++中异常对象的范围Scope of exception object in C++(C++中异常对象的范围)
从构造函数的初始化列表中捕获异常Catching exceptions from a constructor#39;s initializer list(从构造函数的初始化列表中捕获异常)
C++03 throw() 说明符 C++11 noexcept 之间的区别Difference between C++03 throw() specifier C++11 noexcept(C++03 throw() 说明符 C++11 noexcept 之间的区别)