mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-10 00:46:48 -06:00
parent
6a4b1b9727
commit
ed9a8687ad
4
dist/windows/config.nsh
vendored
4
dist/windows/config.nsh
vendored
@ -157,16 +157,20 @@ ${Case} 0
|
|||||||
${IfThen} $3 <> 0 ${|} ${Break} ${|} ;we are admin, let the show go on
|
${IfThen} $3 <> 0 ${|} ${Break} ${|} ;we are admin, let the show go on
|
||||||
${If} $1 = 3 ;RunAs completed successfully, but with a non-admin user
|
${If} $1 = 3 ;RunAs completed successfully, but with a non-admin user
|
||||||
MessageBox mb_YesNo|mb_IconExclamation|mb_TopMost|mb_SetForeground "This ${thing} requires admin privileges, try again" /SD IDNO IDYES uac_tryagain IDNO 0
|
MessageBox mb_YesNo|mb_IconExclamation|mb_TopMost|mb_SetForeground "This ${thing} requires admin privileges, try again" /SD IDNO IDYES uac_tryagain IDNO 0
|
||||||
|
SetErrorLevel 1314 # WinError.h: `ERROR_PRIVILEGE_NOT_HELD`
|
||||||
${EndIf}
|
${EndIf}
|
||||||
;fall-through and die
|
;fall-through and die
|
||||||
${Case} 1223
|
${Case} 1223
|
||||||
MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "This ${thing} requires admin privileges, aborting!"
|
MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "This ${thing} requires admin privileges, aborting!"
|
||||||
|
SetErrorLevel 1223 # WinError.h: `ERROR_CANCELLED`
|
||||||
Quit
|
Quit
|
||||||
${Case} 1062
|
${Case} 1062
|
||||||
MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "Logon service not running, aborting!"
|
MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "Logon service not running, aborting!"
|
||||||
|
SetErrorLevel 1062 # WinError.h: `ERROR_SERVICE_NOT_ACTIVE`
|
||||||
Quit
|
Quit
|
||||||
${Default}
|
${Default}
|
||||||
MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "Unable to elevate , error $0"
|
MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "Unable to elevate , error $0"
|
||||||
|
SetErrorLevel 1603 # WinError.h: `ERROR_INSTALL_FAILURE`
|
||||||
Quit
|
Quit
|
||||||
${EndSwitch}
|
${EndSwitch}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user