echo off
cls
echo              LOTTO CHALLENGER Installation program 
echo   ---------------------------------------------------------------
echo   LOTTO CHALLENGER must first be installed prior to running the
echo   program. Installation SOURCE disk should now be in the A:
echo   floppy drive. Hard drive installation is the preferred method. 
echo   If installing to a 360K floppy, the documentation files will
echo   not be copied.
echo   ---------------------------------------------------------------
echo   Press  A  if installing to HIGH DENSITY FLOPPY (720K, 1.44M, 1.2M)
echo   Press  B  if installing to HARD DRIVE (preferred option)
echo   Press  C  if installing to LOW DENSITY 360k floppy 
echo   Press  Q  to quit/abort process
echo   ---------------------------------------------------------------
inkey 81,Q81,q81,C67,c67,B66,b66,A65,a65/E
IF ERRORLEVEL 81 GOTO abort
IF ERRORLEVEL 67 GOTO LABELC
IF ERRORLEVEL 66 GOTO LABELB
IF ERRORLEVEL 65 GOTO LABELA
:labelc
cls
echo ------------------------------------------------------------
echo Installation will produce one low density diskette on TARGET
echo drive B: Next step assumes SOURCE drive A: contains files 
echo to be unpacked and TARGET drive B: contains a blank formatted 
echo diskette of standard 360K size. The documentation files will 
echo not be copied.
echo ------------------------------------------------------------
pause
cls
lcfiles b:\
a:
cls
echo ---------------------------------------------------------------
echo Remove diskette from B: drive, label it:
echo "LOTTO CHALLENGER, start with:   LC   at DOS prompt"
echo When you have finished labelling the diskette,
echo press a key to end installation process and return to DOS.
echo --------------------------------------------------------------
pause
goto quit
:LABELB
cls
echo ---------------------------------------------------------------
echo Hard drive installation will prepare a directory \LOTTO on your 
echo your hard drive and install files to that area. Installation 
echo program assumes drive A: contains the install diskette and is  
echo the SOURCE DRIVE. Hard drive will be the TARGET drive to which  
echo files will be unpacked. If you have an old copy of LOTTO 
echo CHALLENGER on your hard drive which is important to you, you 
echo may wish to quit/abort and backup that older copy for archival 
echo purposes first.
echo ---------------------------------------------------------------
echo What hard drive letter will you install TO as your target?
echo ---------------------------------------------------------------
echo press  C  for  Hard drive C:
echo press  D  for  Hard drive D:
echo press  E  for  Hard drive E:
echo press  F  for  Hard drive F:
echo press  G  for  Hard drive G:
echo press  Q  to quit/abort
inkey 81,Q81,q81,G71,g71,F70,f70,E69,e69,D68,d68,C67,c67/E
IF ERRORLEVEL 81 GOTO abort
IF ERRORLEVEL 71 goto hdg
IF ERRORLEVEL 70 GOTO hdf
IF ERRORLEVEL 69 GOTO hde
IF ERRORLEVEL 68 GOTO hdd
IF ERRORLEVEL 67 GOTO hdc
:hdc
cls
c:
cd\
md lotto
echo If a previous version of the LOTTO CHALLENGER package is
echo already installed, answer yes to all prompts to overwrite 
echo old files with the newer data files.
a:
copy *.* c:\lotto
c:
cd \lotto
lcfiles
del lcfiles.exe
a:
cls
echo Installation is now complete. 
echo ------------------------------------------------------------
echo Press  Q  to quit. To run LOTTO CHALLENGER change to your 
echo hard drive subdirectory C:\LOTTO then   LC    to start!
echo To do this, issue the following commands when you see
echo the DOS prompt:   
echo      C:          Then press return/enter key
echo      CD \LOTTO   Then press return/enter key                         
echo      LC          Then press return/enter key                        
echo  Jot down these instructions for future use!
echo ----------------------------------------------------------
inkey 81,Q81,q81/E
IF ERRORLEVEL 81 GOTO quit
goto QUIT
:hdd
cls
d:
cd\
md lotto
echo If a previous version of the LOTTO CHALLENGER package is
echo already installed, answer yes to all prompts to overwrite 
echo old files with the newer data files.
a:
copy *.* d:\lotto
d:
cd \lotto
lcfiles
del lcfiles.exe
a:
cls
echo Installation is now complete. 
echo ------------------------------------------------------------
echo Press  Q  to quit. To run LOTTO CHALLENGER change to your 
echo hard drive subdirectory D:\LOTTO then   LC    to start!
echo To do this, issue the following commands when you see
echo the DOS prompt:   
echo      D:           Then press return/enter key   
echo      CD \LOTTO    Then press return/enter key   
echo      LC           Then press return/enter key   
echo  Jot down these instructions for future use!
echo ----------------------------------------------------------
inkey 81,Q81,q81/E
IF ERRORLEVEL 81 GOTO quit
goto QUIT
:hde
cls
e:
cd\
md lotto
echo If a previous version of the LOTTO CHALLENGER package is
echo already installed, answer yes to all prompts to overwrite 
echo old files with the newer data files.
a:
copy *.* e:\lotto
e:
cd \lotto
lcfiles
del lcfiles.exe
a:
cls
echo Installation is now complete. 
echo ------------------------------------------------------------
echo Press  Q  to quit. To run LOTTO CHALLENGER change to your 
echo hard drive subdirectory E:\LOTTO then   LC    to start!
echo To do this, issue the following commands when you see
echo the DOS prompt:   
echo      E:           Then press return/enter key   
echo      CD \LOTTO    Then press return/enter key   
echo      LC           Then press return/enter key   
echo  Jot down these instructions for future use!
echo ----------------------------------------------------------
inkey 81,Q81,q81/E
if ERRORLEVEL 81 GOTO quit
goto QUIT
:hdf
cls
f:
cd\
md lotto
echo If a previous version of the LOTTO CHALLENGER package is 
echo already installed, answer yes to all prompts to overwrite  
echo old files with the newer data files.
a:
copy *.* f:\lotto
f:
cd \lotto
lcfiles
del lcfiles.exe
a:
cls
echo Installation is now complete. 
echo ------------------------------------------------------------
echo Press  Q  to quit. To run LOTTO CHALLENGER change to your  
echo hard drive subdirectory F:\LOTTO then   LC    to start!
echo To do this, issue the following commands when you see
echo the DOS prompt:   
echo      F:           Then press return/enter key   
echo      CD \LOTTO    Then press return/enter key   
echo      LC           Then press return/enter key   
echo  Jot down these instructions for future use!
echo ----------------------------------------------------------
inkey 81,Q81,q81/E
if ERRORLEVEL 81 GOTO quit
goto QUIT
:hdg
cls
g:
cd\
md lotto
echo If a previous version of the LOTTO CHALLENGER package is 
echo already installed, answer yes to all prompts to overwrite  
echo old files with the newer data files.
a:
copy *.* g:\lotto
g:
cd \lotto
lcfiles
del lcfiles.exe
a:
cls
echo Installation is now complete. 
echo ------------------------------------------------------------
echo Press  Q  to quit. To run LOTTO CHALLENGER change to your  
echo hard drive subdirectory G:\LOTTO then   LC    to start!
echo To do this, issue the following commands when you see
echo the DOS prompt:   
echo      G:           Then press return/enter key   
echo      CD \LOTTO    Then press return/enter key   
echo      LC       Then press return/enter key   
echo  Jot down these instructions for future use!
echo ----------------------------------------------------------
inkey 81,Q81,q81/E
if ERRORLEVEL 81 GOTO quit
goto QUIT
:LABELA
cls
echo ------------------------------------------------------------
echo Installation will produce ONE high density floppy diskette on 
echo TARGET drive B: or drive D: which MUST be one of following the 
echo size(s): 720K, 1.44M, 1.2M. Next step assumes SOURCE drive A: 
echo contains files to be unpacked and TARGET drive B: or D: 
echo contains a blank formatted diskette LARGER than 360K.
echo ------------------------------------------------------------
echo press  B  for Target Floppy drive B:
echo press  D  for Target Floppy drive D:
echo press  Q  to quit/abort
echo ------------------------------------------------------------
inkey 81,Q81,q81,D68,d68,B66,b66/E
if ERRORLEVEL 81 GOTO abort
if ERRORLEVEL 68 GOTO fd
if ERRORLEVEL 66 GOTO fb
:fb
cls
copy *.* b:
b:
lcfiles
del lcfiles.exe
a:
cls
echo --------------------------------------------------------------
echo Remove diskette from B: drive, label it:
echo "LOTTO CHALLENGER, start with:   LC     at DOS prompt"
echo --------------------------------------------------------------
pause
goto quit
:fd
cls
copy *.* d:
d:
lcfiles
del lcfiles.exe
a:
cls
echo --------------------------------------------------------------
echo Remove diskette from D: drive, label it:
echo "LOTTO CHALLENGER, start with:   LC     at DOS prompt"
echo --------------------------------------------------------------
pause
goto quit
:QUIT
cls
echo ----------------------------------------------------------
echo            Installation of program now complete.
echo      Be sure to register - support the shareware concept.
echo      The file REGISTER.DOC describes registration benefits
echo      and contains a registration form.  Type HELPME to
echo      view or print any of the documentation files.
echo ----------------------------------------------------------
echo                          IMPORTANT!
echo      Whether you have a hard disk or floppy disk system,
echo      you MUST use a CONFIG.SYS file that contains the
echo      following line:
echo                           FILES=20
echo      If this line is not in the file, use any text editor
echo      to insert the line.  Reboot your computer prior to
echo      starting Lotto Challenger.
echo ----------------------------------------------------------
goto END
:ABORT
cls
ECHO  Installation process aborted
:END

