-
Notifications
You must be signed in to change notification settings - Fork 2
/
worker_build-installer.bat
65 lines (50 loc) · 1.92 KB
/
worker_build-installer.bat
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
@echo off
REM Worker to build the installer
REM
REM Requires Advanced Installer to be available and
REM the "aiexe" variable below to be set correctly.
REM The location of the Advanced Installer executable MUST be correct
set aiexe=D:\Tools\Advanced Installer 14.3\bin\x86\AdvancedInstaller.com
if not exist "%aiexe%" goto NoAI
if "r%1" == "r" goto NoArgs
echo/
echo Building the Corionis Service Manager MSI installer %1
echo/
REM get positioned to the correct directory
set thisdir=%~dp0
cd /d "%thisdir%"
REM clean-out any prior msi files
if exist "*.msi" del /q "*.msi"
REM set the version and build the installer
"%aiexe%" /edit "Corionis Service Manager.aip" /SetVersion %1
"%aiexe%" /edit "Corionis Service Manager.aip" /SetProductCode -langid 1033
"%aiexe%" /rebuild "Corionis Service Manager.aip"
set r=%ERRORLEVEL%
if not %r% == 0 goto Error
REM generate a new _config.yml with the build number
echo theme: jekyll-theme-tactile >docs/_config.yml
echo title: Corionis Service Manager >>docs/_config.yml
echo description: Monitor ^& manage selected Windows services >>docs/_config.yml
echo show_downloads: true >>docs/_config.yml
echo excerpt_separator: thisnevermatchme >>docs/_config.yml
echo version: %1>>docs/_config.yml
goto JXT
:NoAI
echo/
echo ERROR: Building the installer requires the free version of Advanced Installer.
echo Cannot find the executable as specified in this batch file.
echo Install Advanced Installer and/or edit this batch file to set the location.
echo See http://www.advancedinstaller.com/
goto JXT
:NoArgs
echo/
echo ERROR: Requires an argument for the version number, e.g. 1.2.3.456
echo It is recommended to use the generated build_installer.bat that has
echo the version incremented from the last build with AutoIt.
goto JXT
:Error
echo/
echo An error occurred while building the installer.
:JXT
echo/
set /p r="Press ENTER to continue: "