summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2013-09-06 19:19:46 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2013-09-06 19:19:46 +0000
commit663e65fe74e2429fb61d93f56855b8656a1d6463 (patch)
tree3c175075c7f58bb66cd3981d6ffd9245d10081f0 /tools
parent32b6a182a6cc261b78603c05e2d8ceba6fed2fa1 (diff)
Installer: even better error handling
git-svn-id: http://svn.miranda-ng.org/main/trunk@5982 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'tools')
-rw-r--r--tools/installer_ng/compile.bat9
1 files changed, 5 insertions, 4 deletions
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