bundle.bat (763B)
1 rem This script will build an MSI installer for Win32. 2 rem Check README.md in this directory for instructions. 3 4 set WIX_PATH=c:\Program Files\Windows Installer XML v3.5\bin 5 6 cd tests 7 test.exe 8 if %errorlevel% neq 0 exit /b %errorlevel% 9 cd .. 10 11 rem Generate a wxs for files in Spek 12 del spek.msi 13 move Spek\spek.exe .\ 14 "%WIX_PATH%"\heat dir Spek -gg -ke -srd -cg Files -dr INSTALLLOCATION -template fragment -o files.wxs 15 move spek.exe Spek\ 16 17 rem Make the MSI package 18 "%WIX_PATH%"\candle SpekInstallDirDlg.wxs SpekInstallDir.wxs spek.wxs files.wxs 19 "%WIX_PATH%"\light -b Spek SpekInstallDirDlg.wixobj SpekInstallDir.wixobj spek.wixobj files.wixobj -ext WixUIExtension.dll -o spek.msi 20 start /wait fix-msi.js spek.msi 21 22 rem Clean up 23 del files.wxs 24 del *.wixobj 25 del *.wixpdb