mirror of
https://github.com/bitwarden/browser
synced 2025-12-06 00:13:28 +00:00
Add NSIS custom installer script for UAC fix on Windows (#2856)
This commit is contained in:
9
apps/desktop/installer.nsh
Normal file
9
apps/desktop/installer.nsh
Normal file
@@ -0,0 +1,9 @@
|
||||
!macro customInit
|
||||
${if} $installMode == "all"
|
||||
${IfNot} ${UAC_IsAdmin}
|
||||
ShowWindow $HWNDPARENT ${SW_HIDE}
|
||||
!insertmacro UAC_RunElevated
|
||||
Quit
|
||||
${endif}
|
||||
${endif}
|
||||
!macroend
|
||||
Reference in New Issue
Block a user