[Tutor] RE: REG in XP vs Win2000
P.T. Waugh MA
ptwaugh at earthlink.net
Sat Nov 8 19:15:42 EST 2003
I use this code:
def get_regkey_value(key, subkey):
h = win32api.RegOpenKeyEx(key, subkey , 0 , win32con.KEY_READ )
return win32api.RegQueryValueEx( h, "" )[0].split('.exe')[0]
FS9_PATH = get_regkey_value(win32con.HKEY_CLASSES_ROOT, FS9_PATH_KEY)[:-3]
to find Microsoft FS9 in Windows. However, it does not seem to work in
XP. Is there a better and more effective way to find the FS9's install
directory?
Thanks for the ideas.
Patrick
More information about the Tutor
mailing list