-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathInstallWad.bat
43 lines (32 loc) · 1.07 KB
/
InstallWad.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
:: Build a self-extracting wad that installs a new convention or upgrades an
:: existing convention.
@echo off
setlocal
set dir=%CD%
:: Get us to the top of the convention directory.
%~d0
cd %~p0
call Program\ReleaseInfo\Release.bat
set myname=Reg3-%token%
set outz=%dir%\%myname%.7z
if exist %outz% (
erase %outz%
)
set outexe=%dir%\%myname%.exe
if exist %outexe% (
erase %outexe%
)
set z=Program\imported\7za -bsp2
call Program\lib\mkwad %outz% program node
echo set installmode=any> installmode.bat
%z% a %outz% installmode.bat > nul
erase installmode.bat
echo ;!@Install@!UTF-8! > tmp.cfg
echo Title="Reg3" >> tmp.cfg
echo BeginPrompt="Install/upgrade Reg3?" >> tmp.cfg
echo RunProgram="Program\lib\Setup.bat" >> tmp.cfg
echo ;!@InstallEnd@! >> tmp.cfg
copy /b Program\imported\7zSD-noadmin.sfx + tmp.cfg + %outz% %outexe% > nul
erase tmp.cfg
erase %outz%
echo %outexe% is ready.