Set proper exit code.
This commit is contained in:
parent
b1aab79fdf
commit
67e37ed1cf
@ -328,6 +328,7 @@ Function .onInit
|
|||||||
Pop $0
|
Pop $0
|
||||||
${If} $0 != "Admin"
|
${If} $0 != "Admin"
|
||||||
MessageBox MB_ICONSTOP|MB_TOPMOST "Your system requires administrative permissions in order to install this software."
|
MessageBox MB_ICONSTOP|MB_TOPMOST "Your system requires administrative permissions in order to install this software."
|
||||||
|
SetErrorLevel 740 ;ERROR_ELEVATION_REQUIRED
|
||||||
Quit
|
Quit
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
@ -358,6 +359,7 @@ Function un.onInit
|
|||||||
Pop $0
|
Pop $0
|
||||||
${If} $0 != "Admin"
|
${If} $0 != "Admin"
|
||||||
MessageBox MB_ICONSTOP|MB_TOPMOST "Your system requires administrative permissions in order to install this software."
|
MessageBox MB_ICONSTOP|MB_TOPMOST "Your system requires administrative permissions in order to install this software."
|
||||||
|
SetErrorLevel 740 ;ERROR_ELEVATION_REQUIRED
|
||||||
Quit
|
Quit
|
||||||
${EndIf}
|
${EndIf}
|
||||||
FunctionEnd
|
FunctionEnd
|
||||||
|
Loading…
Reference in New Issue
Block a user