In my program I can set to run after system startup (it writes path to
Software\Microsoft\Windows\CurrentVersion\Run) but when normal user is
logged in my application crashes. I must right click on app an choose
"Run As Admin" and then everything works.
How can I do it to write to registry without "Run As Admin" ?
This might give you some pointers:
http://stackoverflow.com/questions/130763/request-uac-elevation-from-within-a-python-script
--
Duncan Booth http://kupuguy.blogspot.com
Is there any way to ask for elevation from a subprocess.Popen() call?
Launching an application that normally asks for elevation automatically
fails with error 740 - 'The requested operation requires elevation'. The
runas utility needs an explicit username.
Is there any way to ask for elevation from a subprocess.Popen() call?
Launching an application that normally automatically asks for elevation
Under HKLM oder HKCU? The path itself is of course irrelevant.
> but when normal user is logged in my application crashes.
Without an exception?
> I must right click on app an choose "Run As Admin" and then everything
> works.
>
> How can I do it to write to registry without "Run As Admin" ?
Disable UAC.
Thorsten
That is because UAC for non-admin accounts /is/ runas.
Thorsten