[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" > )

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"

Re: [python-win32] time/datetime module wierdness on some windows7/XP PCs

2012-07-25 Thread Vernon Cole
Dear raf: Yes, time zones in the python time module are known to be somewhat messed up. Mark Hammond and I went several rounds while trying to create a test for the "python time" capabilities in adodbapi. When a test worked for me in North America, it was almost guaranteed to fail for him in an