@echo off

cls

ECHO.
ECHO.
ECHO       ÉÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍÍ¸
ECHO       º This operation will combine the four CIA Hypertext    ³
ECHO       º files into a single hypertext database.               ³
ECHO       º When the operation is complete, test the program.     ³
ECHO       º                                                       ³
ECHO       º To do this, simply type the command:                  ³
ECHO       º              CIA      [Enter]                         ³
ECHO       º                                                       ³
ECHO       º Û WARNING: You require about 4MB of free disk space Û ³
ECHO       º Û          during installation, and 1.9MB free for  Û ³
ECHO       º Û          the actual program. If you do not have   Û ³
ECHO       º Û          this space, hit Ctrl-C to stop now.      Û ³
ECHO       ÓÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
ECHO.
ECHO     Hit a key to continue, Ctrl-C to stop...
ECHO.
PAUSE > NUL

IF NOT EXIST CIA.001 GOTO ERRS
IF NOT EXIST CIA.002 GOTO ERRS
IF NOT EXIST CIA.003 GOTO ERRS
IF NOT EXIST CIA.004 GOTO ERRS

ECHO.

ECHO   Making the hypertext database ...
COPY /B CIA.001+CIA.002+CIA.003+CIA.004 CIA.HTX /B
IF EXIST CIA.HTX DEL CIA.00? > NUL
FOR %%A IN (*.DIZ *.SDI) DO IF EXIST %%A DEL %%A > NUL
ECHO.
ECHO.
ECHO.
ECHO   OK, the heavy work is done.
ECHO   The CIA Hypertext 93 EVALUATION program is installed.
ECHO   Here are some suggestions on using the program.
ECHO.
ECHO   ÚÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ¿
ECHO   ³  CIA      [Enter]  Standard program usage. Use it for trial. ³
ECHO   ³                                                              ³
ECHO   ³  CIA -lim [Enter]  Tries to use high memory to go TSR        ³
ECHO   ³                    Hot key is:  Ctrl-. (Ctrl - Period)       ³
ECHO   ³                                                              ³
ECHO   ³  LH CIA   [Enter]  DOS 5 only. Tries to use high memory.     ³
ECHO   ³                                                              ³
ECHO   ³  CIA /h   [Enter]  More suggestions on use (h-for-help).     ³
ECHO   ³                                                              ³
ECHO   ³  NOTE: Use of high memory could result in use of actual      ³
ECHO   ³        RAM of 1K or 0K (cq) of RAM. This provides full       ³
ECHO   ³        access to a database equivalent to 2.3MB of text.     ³
ECHO   ÀÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÙ
ECHO.
ECHO    NOTE: The only files you need are: CIA.EXE and CIA.HTX
ECHO.
ECHO.
GOTO END

:ERRS
ECHO.
ECHO.
ECHO              !!! ERROR !!!
ECHO.
ECHO   You must have all four parts of the CIA Hypertext 93 series,
ECHO   in the current directory, in order to use the hypertext.
ECHO.
ECHO   You are missing
IF NOT EXIST CIA.001 ECHO      CIA.001 (Usually in CIA93A.ZIP or ARJ)
IF NOT EXIST CIA.002 ECHO      CIA.002 (Usually in CIA93B.ZIP or ARJ)
IF NOT EXIST CIA.003 ECHO      CIA.003 (Usually in CIA93C.ZIP or ARJ)
IF NOT EXIST CIA.004 ECHO      CIA.004 (Usually in CIA93D.ZIP or ARJ)

:END
IF EXIST CIA.HTX DEL %0.BAT > NUL
