Subh
Subh

Reputation: 414

How to bypass/disable UAC in setup Installation

Folk,

I need to bypass UAC, through my Installer. Please note I am using InnoSetup/NSIS/Advanced Installer. I have tried all settings like SILENT / VERYSILENT but nothing has worked.

Help me out :)

Regards

Subh

Upvotes: 3

Views: 9868

Answers (3)

Rupert M-M
Rupert M-M

Reputation: 21

Go to Settings, Recovery, Advanced Restart. Press Trobleshoot, More Options, and Command Prompt. Then type in ren Utilman.exe Utilman1.exe ren cmd.exe Utilman.exe. Then go to the login screen, click the dotted power button and you have an admin command prompt!

Upvotes: 0

Subh
Subh

Reputation: 414

Thanks guys :)

I guess I fave found one solution of it, like If I do the following before Installing my EXE for temporary then on post Installation I revert it. then, I hope my purpose get solved.

[Registry] Root: "HKLM"; Subkey: "SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System"; ValueType: dword; ValueName: "ConsentPromptBehaviorAdmin"; ValueData: "0x00000000"

If anybody like to discuss on this ,

Here I am at skype : subh.anand

Upvotes: 0

Anders
Anders

Reputation: 101606

You cannot bypass UAC, the user is in control, that is the whole point of UAC! If you want to do machine wide changes that require Administrator privileges there is no way around it.

The only way to avoid it is to do per-user installs into [local]appdata & HKCU (Like Chrome etc). To avoid legacy setup detection you should use PrivilegesRequired/RequestExecutionLevel and only ask for lower/user privileges...

Upvotes: 3

Related Questions