本文介紹了如何枚舉/列出 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 中所有已安裝的應用程序?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!