install.bat revision f5bfbb0b97a5f1602e9379f3d431f59902d188c2
@echo build files.wxs
python files.py
@echo create version information
for /f "tokens=*" %%a in ('python version.py') do (set INKSCAPE_VER=%%a)
@echo call wix compiler ...
candle inkscape.wxs -ext WiXUtilExtension
@if NOT %ERRORLEVEL% == 0 goto theend
candle files.wxs
@if NOT %ERRORLEVEL% == 0 goto theend
@echo call wix linker ...
light -ext WixUIExtension -ext WiXUtilExtension inkscape.wixobj files.wixobj -o inkscape-%INKSCAPE_VER%.msi
@if NOT %ERRORLEVEL% == 0 goto theend
@echo the installer is now created
@rem uncomment following line if you want to test the installer
goto theend
@echo install ...
msiexec /i inkscape-%INKSCAPE_VER%.msi /l*v inkscape.log
pause the program is now installed. press any key to run uninstaller ...
@echo deinstall ...
msiexec /x inkscape-%INKSCAPE_VER%.msi
@echo ... finished
:theend