[python-win32] Python WMI SCript to get installed software

2012-07-25 Thread Carlos Hotmail
Hi all on the list. The following question is regarding an error that raises when i try to execute this script: import _winreg import wmi r = wmi.Registry () result, names = r.EnumKey ( hDefKey=_winreg.HKEY_LOCAL_MACHINE, sSubKeyName=Software ) for key in names: print key and this is the

Re: [python-win32] Python WMI SCript to get installed software

2012-07-25 Thread M Saunders TAS
From http://msdn.microsoft.com/en-us/library/windows/desktop/aa394378%28v=vs.85%29.aspx Win32_Product only lists software installed by Windows Installer (applications installed via msi or msp packages) Parsing the registry key HKLM\Software\Microsoft\Windows\CurrentVersion\Uninstall should

Re: [python-win32] Python WMI SCript to get installed software

2012-07-25 Thread Tim Roberts
Carlos Hotmail wrote: Hi all on the list. The following question is regarding an error that raises when i try to execute this script: import _winreg import wmi r = wmi.Registry () result, names = r.EnumKey ( hDefKey=_winreg.HKEY_LOCAL_MACHINE, sSubKeyName=Software ) for key in

Re: [python-win32] Python WMI SCript to get installed software

2012-07-25 Thread Tim Golden
On 25/07/2012 18:23, Carlos Hotmail wrote: Hi all on the list. The following question is regarding an error that raises when i try to execute this script: import _winreg import wmi r = wmi.Registry () result, names = r.EnumKey ( hDefKey=_winreg.HKEY_LOCAL_MACHINE, sSubKeyName=Software )