#SETUP.DTA, Updated 3/10/96
BANNER " College Aid Calculator 96-7 (TM) ... Copyright 1996"
SET %DiskSpaceNeeded "10000000"
MSG "WELCOME to College Aid Calculator 96-7." "" "YOU MAY COPY THIS PROGRAM." "" "PERMISSION is hereby granted for you to distribute CAC." "Pass CAC along to friends with college in their future."  "The README.TXT file has instructions on how to do this."
IF EQUAL %Source "C:\COL_AID"
MSG "NOTE: If you are installing CAC from the COL_AID directory," "     copy all of the files to two disks before continuing" "       so you'll have a backup or a copy to give to a friend." "" "(SETUP deletes itself when run from the COL_AID directory.)"
ENDIF
:MAINMENU
MENU %InstallMenuSel "Install College Aid Calculator;Exit to DOS""Installation Options"
IF EQUAL %InstallMenuSel "Exit to DOS"
	ASK %EXIT "Are you sure you want to exit to DOS?"
	IF YES  %EXIT
	END
	ENDIF
	IF NO %EXIT
	GOTO MAINMENU
	ENDIF
ENDIF
IF EQUAL %InstallMenuSel "Install College Aid Calculator"
SET %BOOT "C:"
SET %DestExe "C:\COL_AID"
SET %DATEFMT "American"
SET %NUMFMT "American"
SET %CURNAME "Dollars"
SET %CURSYM "$"
SET %DATESEP "/"
SET %ShareMode "MULTI"
SET %NoSh ""
SET %Set "s"
SET %WinPath "C:\WINDOWS"
SET %chc "X"
    GETPATH %DestExe CREATE "Please enter the drive and path INTO which you wish to" "install College Aid Calculator 96-7."
DISKSPACE %SPACE %DestExe 10000000
	IF NO %SPACE
	   BEEP
	   ERROR "College Aid Calculator 96-6 can not be installed." "You need 10 MB of free disk space to install College Aid Calculator 96-7," "which is recuced to 6.5 MB after installation."
	   END
	ENDIF
ENDIF
IF EQUAL %InstallMenuSel "Install College Aid Calculator"
ENDIF
FPUCHECK %FpuStat
  IF NO %FpuStat
      ASK %RunWin "Are you planning to run the College Aid Calculator 96-7 from Windows?"
      IF YES %RunWin
	  GETPATH %WinPath EXISTS "Please enter the directory" "into which you have installed Windows."
	  FILESCAN %WinPath\SYSTEM.INI "WEMU387.386" %EmuStat
	IF NO %EmuStat
	    MSG "WARNING!!!" "Setup has determined that this machine does not have a math coprocessor."
	    MSG "The SYSTEM.INI file has been edited to load a floating point emulator to" "allow you to run College Aid Calculator from Windows." "A backup (SYSTEM.BAK) has been saved to the COL_AID directory."
	    COPY %WinPath\SYSTEM.INI    %DestExe\SYSTEM.BAK
	    INSERTLINE %WinPath\SYSTEM.INI "[386Enh]" "Device=%DestExe\wemu387.386"
	ENDIF
      ENDIF
  ENDIF
BAT %DestExe\A4.VMC "minmem = 1024" "maxmem = 4096" "virtualsize = 4096" "swapname = %DestExe\A4.SWP"
IF EQUAL %Source %DestExe
  COPY %DestExe\COL_AID.1               %DestExe\COL_AID.ZIP
  PROGRESS 20
  APPEND %DestExe\COL_AID.2             %DestExe\COL_AID.ZIP
  DEL %DestExe\COL_AID.2
  DEL %DestExe\COL_AID.1
  PROGRESS 35
  UNZIP %DestExe\COL_AID.ZIP            %DestExe\ *.*
  PROGRESS 65
  DEL %DestExe\COL_AID.ZIP
  UNZIP %DestExe\BOOKS.ZIP              %DestEXe\ *.*
  DEL %DestExe\BOOKS.ZIP
  DEL %DestExe\PKUNZIP.EXE
  DEL %DestExe\SETUP.EXE
  DEL %DestExe\SETUP.DTA
  DEL %DestExe\GETODO.BAT
  DEL %DestExe\GET_RDME.TXT
  PROGRESS 80
	GOTO COPYDONE
ELSE
  COPY %Source\PKUNZIP.EXE              %DestExe\PKUNZIP.EXE
  COPY %Source\A4V6RT.NET               %DestExe\A4V6RT.NET
  COPY %Source\SETUP.EXE                %DestExe\SETUP.EXE
  COPY %Source\SETUP.DTA                %DestExe\SETUP.DTA
  COPY %Source\README.TXT               %DestExe\README.TXT
  COPY %Source\BOOKS.ZIP                %DestExe\BOOKS.ZIP
  PROGRESS 15
  COPY %Source\COL_AID.2                %DestExe\COL_AID.2
  PROGRESS 30
DISK "Disk 2"
  COPY %Source\COL_AID.1                %DestExe\COL_AID.ZIP
  PROGRESS 50
  APPEND %DestExe\COL_AID.2             %DestExe\COL_AID.ZIP
  PROGRESS 65
  UNZIP %DestExe\COL_AID.ZIP            %DestExe\ *.*
  UNZIP %DestExe\BOOKS.ZIP              %DestEXe\ *.*
  DEL %DestExe\COL_AID.2
  DEL %DestExe\PKUNZIP.EXE
  DEL %DestExe\SETUP.EXE
  DEL %DestExe\SETUP.DTA
  DEL %DestExe\COL_AID.ZIP
  DEL %DestExe\BOOKS.ZIP
:COPYDONE
ENDIF
  MAKEDFL %DESTEXE %STARTUPP %STARTUPD %SET %CURNAME %CURSYM %DATESEP %NUMFMT %DATEFMT %SHAREMODE
  PROGRESS 97
 BEEP
  FILESCAN "%Boot\AUTOEXEC.BAT" "SHARE" %ShareStat
  IF NO %ShareStat
	ASK %NoSh "SHARE is not loaded in your AUTOEXEC.BAT file." "CAC needs SHARE and can install it for you." "A backup of your AUTOEXEC.BAT (AUTOEXEC.BAK) will be placed" "in the COL_AID directory. Would you like CAC to install SHARE?"
	IF YES %NoSh
	   COPY %Boot\AUTOEXEC.BAT           %DestExe\AUTOEXEC.BAK
	   APPENDLINE "%Boot\AUTOEXEC.BAT" "C:\DOS\SHARE.EXE /F:5000 /L:300"
	ENDIF
  ENDIF
CLS
BEEP
RUN readme.bat
END