Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

autorun requires admin privs. #332

Closed
jtnord opened this issue Jul 16, 2015 · 1 comment
Closed

autorun requires admin privs. #332

jtnord opened this issue Jul 16, 2015 · 1 comment

Comments

@jtnord
Copy link

jtnord commented Jul 16, 2015

Installing the AutoRun requires administrator privs as it tries to write to
HKEY_LOCAL_MACHINE.
However a per user autorun key is available in HKEY_CURRENT_USER and this should be used by default (with an option to install for everyone on the system if desired).

C:\Users\jnord>"c:\Program Files (x86)\clink\0.4.4\clink.bat" autorun -i
You must have administator rights to access cmd.exe's autorun

C:\Users\jnord>ver
Microsoft Windows [Version 6.3.9600]

C:\Users\jnord>cmd /?
....
If /D was NOT specified on the command line, then when CMD.EXE starts, it
looks for the following REG_SZ/REG_EXPAND_SZ registry variables, and if
either or both are present, they are executed first.

    HKEY_LOCAL_MACHINE\Software\Microsoft\Command Processor\AutoRun
        and/or
    HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun
...
@mridgers
Copy link
Owner

Yes that's a good point. Wouldn't help in the installers case as "Program Files" needs administrator rights and that's the default. I'll make the autorun command default to HKCU.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants