Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Set proper exit code.

  • Loading branch information...
commit 67e37ed1cf95c7b82ff1c57598d8374477844dbc 1 parent b1aab79
@lordmulder authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  etc/NSIS/setup.nsi
View
2  etc/NSIS/setup.nsi
@@ -328,6 +328,7 @@ Function .onInit
Pop $0
${If} $0 != "Admin"
MessageBox MB_ICONSTOP|MB_TOPMOST "Your system requires administrative permissions in order to install this software."
+ SetErrorLevel 740 ;ERROR_ELEVATION_REQUIRED
Quit
${EndIf}
@@ -358,6 +359,7 @@ Function un.onInit
Pop $0
${If} $0 != "Admin"
MessageBox MB_ICONSTOP|MB_TOPMOST "Your system requires administrative permissions in order to install this software."
+ SetErrorLevel 740 ;ERROR_ELEVATION_REQUIRED
Quit
${EndIf}
FunctionEnd
Please sign in to comment.
Something went wrong with that request. Please try again.