From 67e37ed1cf95c7b82ff1c57598d8374477844dbc Mon Sep 17 00:00:00 2001 From: LoRd_MuldeR Date: Mon, 14 Jan 2013 00:36:22 +0100 Subject: [PATCH] Set proper exit code. --- etc/NSIS/setup.nsi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/etc/NSIS/setup.nsi b/etc/NSIS/setup.nsi index 288be2a6..c9de28c8 100644 --- a/etc/NSIS/setup.nsi +++ b/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