Archive: Best way to disable UAC in W7


Best way to disable UAC in W7
Hi!,I'm looking for a best way to disable annoying UAC in W7 from NSIS script.

I thought to use something like this :

ExecWait'"regedit"/suacdisable.reg'

reg content :

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System]
"EnableLUA"=dword:00000000


There is another good choice?
Thanks !

I seem to recall reading that there is a way to disable UAC without the user's permission, but I would VERY STRONGLY recommend NEVER doing that in your installer. If I would see an installer disable my UAC, I'd immediately report it to all security companies I know as a piece of malware. Do NOT change people's UAC setting. It's incredibly rude, and also stupid.


Hi !You're right but we are lots of problems updating our software,our updating package is built with NSIS called silelty,so with UAC enabled running silent install doesn't work,we get errors,disabling UAC it works fine,that's the problem.So I intend to disable this when main application is installed.
Also is it our decision and risk to do this,not rude or stupid.

Thanks.


We can probably help you find a much better solution. What specific problems do you encounter when using your installer on Vista/7 with UAC?


Hi !
Last time I think I saw "This program might not have installed correctly" message,I'll do some test these days and I'll post exact error,this only in silent install,with normal installation: no error.

Thanks!


Have you used RequestExecutionLevel admin/user?

Stu


Hi !
No,there is no RequestExecutionLevel used.
Thanks !


You should use it.

"requestexecutionlevel user" if you want a user-level installation (only write to non-protected directories and the HKCU reghive) or "requestexecutionlevel admin" if you need an admin-level installation (any directory, HKLM reghive, all-user install).


Hi !
Indeed,using ExectionLevel seems to solve errors,thanks a lot to all of you for the tips !