forked from VinceVal/SickRageInstaller
-
Notifications
You must be signed in to change notification settings - Fork 4
/
run_installer.cmd
38 lines (31 loc) · 795 Bytes
/
run_installer.cmd
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
:: Run the installer with the local seed and external files
@ECHO OFF
SETLOCAL EnableDelayedExpansion
CALL :NORMALIZEPATH "."
SET ROOT=%RETVAL%
SET INSTALLER="%ROOT%\Output\MedusaInstaller.exe"
IF NOT EXIST %INSTALLER% (
ECHO Installer not found, have you compiled the .iss file?
EXIT /B 1
)
IF "%~1" NEQ "" (
SET REPO=%~dpfn1
IF NOT EXIST !REPO!\ (
ECHO Provided local repo location does not exist.
EXIT /B 1
)
SET LOCALREPO=/LOCALREPO="!REPO!"
) ELSE (
SET LOCALREPO=
)
:: Runs the installer with the local seed and local install files
%INSTALLER% ^
/SEED="%ROOT%\seed.ini" ^
/LOCALFILES="%ROOT%\files" ^
/LOG="%ROOT%\Output\installer.log" ^
%LOCALREPO%
:: ========== FUNCTIONS ==========
EXIT /B %ERRORLEVEL%
:NORMALIZEPATH
SET RETVAL=%~dpfn1
EXIT /B