Assuming you just want to read the registry, I'd suggest using _winreg.KEY_READ instead of _winreg.KEY_ALL_ACCESS; this should work as a non-administrative user.
Michael On Wed, Dec 14, 2011 at 03:47, Mauro Faccin <[email protected]> wrote: > HI, > I found a problem reading register key on windows 7. > My python application works fine in windows XP and in some win7 machines. > > I use a simple procedure, as the following one: >>>> import _winreg >>>> h1 = _winreg.ConnectRegistry(None, _winreg.HKEY_LOCAL_MACHINE) >>>> key = r'SOFTWARE\Python\PythonCore\2.6\InstallPath' >>>> h2 = _winreg.OpenKey(h1, key, 0, _winreg.KEY_ALL_ACCESS) > > It returns "Access Denied" and I suppose the problem is the user > configuration. > Does someone know which settings of UAC (User Access Control) I have to > change? > > Thanks! > > Mauro > > _______________________________________________ > pygtk mailing list [email protected] > http://www.daa.com.au/mailman/listinfo/pygtk > Read the PyGTK FAQ: http://faq.pygtk.org/ _______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://faq.pygtk.org/
