How to bypass/disable UAC in setup Installation

Subh picture Subh · Jun 21, 2013 · Viewed 8.5k times · Source

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

Answer

Anders picture Anders · Jun 21, 2013

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...