0
私のコンピュータにインストールされているソフトウェアとインストール先のパスを取得しようとしています。IronPythonのWindowsレジストリがインストールパスを取得する
インストールされたソフトウェアを入手するためのコードを提供するリンクが見つかりましたが、インストールパスを取得する方法や、特定のソフトウェアパッケージに特定のパスを関連付ける方法がわかりません。
# prints out the names of installed software
# just need to find the installtion paths
from Microsoft.Win32 import Registry
products = Registry.ClassesRoot.OpenSubKey("Installer\\Products")
for product_name in products.GetSubKeyNames():
product_key = products.OpenSubKey(product_name)
print product_key.GetValue("ProductName")
参考として、Windowsレジストリ(上で使用したキーなど)の使用方法を詳しく説明するチュートリアル/ガイドがありますか?