Echo Off
REM **********************************************
REM * File   : Install.bat
REM * Author : Stephen Williams
REM * Date   : Feb. 25, 1992
REM * Revised:
REM * Purpose: Installation AIM Version 1.1
REM **********************************************
if "%1" == ""    goto help
if "%1" == "?"   goto help
if "%1" == "A:"  goto help
if "%1" == "a:"  goto help
if "%1" == "B:"  goto help
if "%1" == "b:"  goto help
if "%1" == "A"   goto FLOP
if "%1" == "a"   goto FLOP
if "%1" == "B"   goto FLOP
if "%1" == "b"   goto FLOP

for %%f in (C:,c:,D:,d:,E:,e:,F:,f:,G:,g:,H:,h:,Y:,y:)             do if %1.==%%f. goto Help
for %%f in (I:,i:,J:,j:,K:,k:,L:,l:,M:,m:,N:,n:,O:,o:,P:,p:,Z:,z:) do if %1.==%%f. goto Help
for %%f in (Q:,q:,R:,r:,S:,s:,T:,t:,U:,u:,V:,v:,W:,w:,X:,x:)       do if %1.==%%f. goto Help

REM **************************
REM HARD DISK INSTALLATION
REM **************************
if not exist %1:\nul goto help
CLS
Echo                   AIM Version 1.1 Hard Disk Installation
Echo ÿ
Echo
Echo             Decompressing and Copying PROGRAM and Help files
Echo
AIM11EX %1:\AIM11
Echo
Echo                Decompressing and Copying AIM DATA files
Echo
AIM11DB %1:\AIM11
Echo
%1:
cd %1:\AIM11
CLS
Echo AIM Successfully Installed on %1:\AIM11
Echo
Echo To run program type "AIM"
goto End

REM ************************************
REM FLOPPY DISK INSTALLATION
REM ************************************
:FLOP
CLS
Echo                        AIM Version 1.1 Installation
Echo ÿ
Echo ÿ
Echo NOTE: You should have 2 blank formatted floppy disks ready
Echo       Label the disks "AIM Program" and "AIM Data"
Echo ÿ
Echo ÿ
Echo Insert the disk labeled "AIM Program" in drive %1: (Press Ctrl-C to Cancel)
Echo ÿ
Pause
Echo
Echo Decompressing and Copying AIM Program and Help Files
Echo
AIM11EX %1:\
Echo ÿ
Echo Insert the disk labeled "AIM Data" in drive %1: (Press Ctrl-C to Cancel)
Echo ÿ
Pause
CLS
Echo
Echo Decompressing and Copying Data Files
Echo
AIM11DB %1:\
%1:
CD a:
CLS
Echo AIM Successfully Installed
Echo
Echo To run AIM place "AIM Program" disk in Drive A: and "AIM Data"
Echo disk in drive B:  Type "AIM" to start program.
goto End
REM **************************
REM Help For AIM Installation
REM **************************
:Help
Cls
Echo                  AIM Version 1.1 Installation Help
Echo ÿ
Echo ÿ
Echo ÿ
Echo  Syntax For HARD DISK Install is   Install C    (No Colon Should Be Typed)
Echo                               or   Install D
Echo                               or   Install E
Echo                               etc.
Echo
Echo  Syntax For Floppy Disk Install is   Install B
Echo                                 or   Install A
Echo ÿ
Echo ÿ
goto bad_end
REM ************************
REM End Of AIM Installation
REM ************************
:end
Echo *********************
Echo AIM Installation End
Echo *********************
:bad_end
Echo ÿ
Echo
