diff options
Diffstat (limited to 'MSI/make-msi.bat')
-rw-r--r-- | MSI/make-msi.bat | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/MSI/make-msi.bat b/MSI/make-msi.bat new file mode 100644 index 0000000..56a3024 --- /dev/null +++ b/MSI/make-msi.bat @@ -0,0 +1,30 @@ +@echo off
+SET RELEASE=
+for /f %%i in (..\RELEASE.txt) do set RELEASE=%%i
+if "%RELEASE%"=="" goto _err_no_release
+
+del *.msi
+del *.wixobj
+
+candle -out ts_block.wixobj ts_block.wxs
+if errorlevel 1 goto _err_candle
+
+light -out ..\ts_block_%RELEASE%.msi ts_block.wixobj
+if errorlevel 1 goto _err_light
+
+del ts_block.wixobj
+goto :EOF
+
+:_err_candle
+echo Fatal Error - CANDLE returned error.
+echo.
+goto :EOF
+
+:_err_light
+echo Fatal Error - LIGHT returned error.
+echo.
+goto :EOF
+
+:_err_no_release
+echo Fatal Error - No ..\RELEASE.txt found.
+echo.
|