Welcome to mirror list, hosted at ThFree Co, Russian Federation.

make-msi.bat « MSI - github.com/EvanAnderson/ts_block.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 56a30242cca18a2b270cdbb49c45102171184378 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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.