- NSIS Discussion
- Best way to disable UAC in W7
Archive: Best way to disable UAC in W7
mrjohn
1st November 2011 08:15 UTC
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 !
MSG
1st November 2011 10:11 UTC
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.
mrjohn
1st November 2011 10:23 UTC
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.
MSG
1st November 2011 10:45 UTC
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?
mrjohn
1st November 2011 11:17 UTC
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!
Afrow UK
1st November 2011 11:36 UTC
Have you used RequestExecutionLevel admin/user?
Stu
mrjohn
1st November 2011 11:50 UTC
Hi !
No,there is no RequestExecutionLevel used.
Thanks !
MSG
1st November 2011 13:39 UTC
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).
mrjohn
2nd November 2011 09:36 UTC
Hi !
Indeed,using ExectionLevel seems to solve errors,thanks a lot to all of you for the tips !