Skip to content

Commit

Permalink
Set proper exit code.
Browse files Browse the repository at this point in the history
  • Loading branch information
lordmulder committed Jan 13, 2013
1 parent b1aab79 commit 67e37ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions etc/NSIS/setup.nsi
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -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}


Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 67e37ed

Please sign in to comment.