Permalink
Browse files

Set proper exit code.

  • Loading branch information...
1 parent b1aab79 commit 67e37ed1cf95c7b82ff1c57598d8374477844dbc @lordmulder committed Jan 13, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 etc/NSIS/setup.nsi
View
@@ -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

0 comments on commit 67e37ed

Please sign in to comment.