Set proper exit code.

This commit is contained in:
LoRd_MuldeR 2013-01-14 00:36:22 +01:00
parent b1aab79fdf
commit 67e37ed1cf

View File

@ -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