diff --git a/installer/compile.bat b/installer/compile.bat index 33b004a9..96709a9a 100644 --- a/installer/compile.bat +++ b/installer/compile.bat @@ -1,10 +1,20 @@ @echo off +cd /D "%~dp0" + if not exist "build" mkdir "build" + "tools\makensis.exe" "iw7_Installer.nsi" +if %ERRORLEVEL% neq 0 ( + echo.s + echo Compilation failed! + echo. + pause + exit /b %ERRORLEVEL% +) + echo. echo Compiled successfully! echo. - -pause \ No newline at end of file +pause