From 663e65fe74e2429fb61d93f56855b8656a1d6463 Mon Sep 17 00:00:00 2001
From: Vadim Dashevskiy <watcherhd@gmail.com>
Date: Fri, 6 Sep 2013 19:19:46 +0000
Subject: Installer: even better error handling

git-svn-id: http://svn.miranda-ng.org/main/trunk@5982 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
---
 tools/installer_ng/compile.bat | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

(limited to 'tools')

diff --git a/tools/installer_ng/compile.bat b/tools/installer_ng/compile.bat
index b22ede34ff..d5cba179a7 100644
--- a/tools/installer_ng/compile.bat
+++ b/tools/installer_ng/compile.bat
@@ -20,9 +20,9 @@ set Compile32=Inno Setup 5\ISCC.exe" /Dptx86 /DAppVer=%MirVer% /O"Output" "InnoN
 set Compile64=Inno Setup 5\ISCC.exe" /DAppVer=%MirVer% /O"Output" "InnoNG_64\MirandaNG.iss"
 rem end
 
-:chk32
-if not exist InnoNG_32 (goto compileerror) else (goto chk64)
-:chk64
+:check32
+if not exist InnoNG_32 (goto compileerror) else (goto check64)
+:check64
 if not exist InnoNG_64 (goto compileerror) else (goto compile)
 
 rem Make
@@ -37,6 +37,7 @@ if defined ProgramFiles(x86) (
 rem end
 
 rem Error handling
+if errorlevel 1 goto :compileerror
 goto end
 :compileerror
 rem Get archives if needed
@@ -50,7 +51,7 @@ goto again3
 :download
 echo Creating folders and downloading components!
 call createstructure.bat
-goto chk32
+goto check32
 pause
 :end
 rem end
\ No newline at end of file
-- 
cgit v1.2.3