views:

32

answers:

2

I have run into another problem with my current project. The program needs to values and keys periodically while running. Each time I attempt to edit the value, I get a code 5, Access Denied. How would I go about doing this so the values can be editied, but the user doesn't have to enter admin credentials to run the application?

I am using the _winreg module with Python 2.6 on Windows 7.

+1  A: 

If you want to edit something that is writable only with administrative privileges, you just have to run under admin privileges. Everything else would be a giant security hole.

Philipp
+1  A: 

following Zachary's request:

Which keys are you trying to edit?

What's the user's type (limited user maybe?)

Which version of Win7 (Home/Pro/Ultimate)?

also, see this SO question

Yoni H