forked from jrsoftware/issrc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompile.bat
55 lines (44 loc) · 1.43 KB
/
compile.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
@echo off
rem Inno Setup
rem Copyright (C) 1997-2010 Jordan Russell
rem Portions by Martijn Laan
rem For conditions of distribution and use, see LICENSE.TXT.
rem
rem Batch file to compile the help file
rem
rem $jrsoftware: ishelp/compile.bat,v 1.5 2010/06/07 22:15:42 jr Exp $
setlocal
if exist compilesettings.bat goto compilesettingsfound
:compilesettingserror
echo ishelp\compilesettings.bat is missing or incomplete. It needs to be created
echo with the following lines, adjusted for your system:
echo.
echo set HHCEXE=%%ProgramFiles%%\HTML Help Workshop\hhc.exe [Path to help compiler]
goto failed2
:compilesettingsfound
set HHCEXE=
call .\compilesettings.bat
if "%HHCEXE%"=="" goto compilesettingserror
rem -------------------------------------------------------------------------
echo Generating help files:
echo.
ISHelpGen\ISHelpGen.exe .
if errorlevel 1 goto failed
echo.
echo Running help compiler:
echo.
if exist Staging\isetup.chm del Staging\isetup.chm
if exist Staging\isetup.chm goto failed
"%HHCEXE%" Staging\hh_project.hhp
if %errorlevel% neq 1 goto failed
if not exist Staging\isetup.chm goto failed
rem HHC leaves behind a temporary file each time it runs...
if exist "%TEMP%\~hh*.tmp" del /q "%TEMP%\~hh*.tmp"
copy Staging\isetup.chm ..\Files\ISetup.chm
if not exist ..\Files\ISetup.chm goto failed
echo Success!
exit /b 0
:failed
echo *** FAILED ***
:failed2
exit /b 1