summaryrefslogtreecommitdiffstats
path: root/packaging/wix/install.bat
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/wix/install.bat')
-rw-r--r--packaging/wix/install.bat34
1 files changed, 34 insertions, 0 deletions
diff --git a/packaging/wix/install.bat b/packaging/wix/install.bat
new file mode 100644
index 0000000..f0dd0bd
--- /dev/null
+++ b/packaging/wix/install.bat
@@ -0,0 +1,34 @@
+
+@echo build files.wxs
+python files.py
+@if NOT %ERRORLEVEL% == 0 goto theend
+
+@echo create version information
+for /f "tokens=*" %%a in ('python version.py') do (set INKSCAPE_VER=%%a)
+@if NOT %ERRORLEVEL% == 0 goto theend
+
+@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
+
+
+:theend
+@echo ... finished \ No newline at end of file