-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBuild-Installer.bat
More file actions
79 lines (69 loc) · 2.03 KB
/
Copy pathBuild-Installer.bat
File metadata and controls
79 lines (69 loc) · 2.03 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
@echo off
REM SimulAudio Installer Builder
REM This batch file compiles the Inno Setup installer
echo ========================================
echo SimulAudio Installer Builder
echo ========================================
echo.
REM Check if Inno Setup is installed
set "INNO_PATH=C:\Program Files (x86)\Inno Setup 6\ISCC.exe"
if not exist "%INNO_PATH%" (
set "INNO_PATH=C:\Program Files\Inno Setup 6\ISCC.exe"
)
if not exist "%INNO_PATH%" (
echo ERROR: Inno Setup compiler not found.
echo.
echo Please install Inno Setup from: https://jrsoftware.org/isdl.php
echo.
echo After installation, this script will automatically detect it.
echo.
pause
exit /b 1
)
REM Check if the installer script exists
if not exist "%~dp0SimulAudioInstaller.iss" (
echo ERROR: SimulAudioInstaller.iss not found.
echo Please ensure you are running this from the correct directory.
pause
exit /b 1
)
REM Check if the publish directory exists
if not exist "%~dp0publish" (
echo ERROR: publish directory not found.
echo Please ensure the application has been published.
pause
exit /b 1
)
REM Create installer output directory if it doesn't exist
if not exist "%~dp0installer" (
echo Creating installer output directory...
mkdir "%~dp0installer"
)
REM Compile the installer
echo.
echo Compiling installer using Inno Setup...
echo Compiler: %INNO_PATH%
echo Script: %~dp0SimulAudioInstaller.iss
echo Output: %~dp0installer\
echo.
"%INNO_PATH%" "%~dp0SimulAudioInstaller.iss"
REM Check the exit code
if %ERRORLEVEL% NEQ 0 (
echo.
echo ERROR: Installer compilation failed with error code: %ERRORLEVEL%
echo.
echo Please check the error messages above for details.
pause
exit /b %ERRORLEVEL%
)
echo.
echo ========================================
echo Installer Build Complete!
echo ========================================
echo.
echo The installer has been created in the installer directory:
echo %~dp0installer\
echo.
echo You can now distribute SimulAudio-Setup.exe to users.
echo.
pause