#SETUP.DTA, Updated 1/29/96
BANNER " College Aid Calculator '96-7 (TM) ... Copyright 1996"
SET %DiskSpaceNeeded "9000000"
IF EQUAL %Source "C:\COL_AID"
MSG "Best to Install from a TEMPorary directory--see INSTALL.TXT"
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 9000000
	IF NO %SPACE
	   BEEP
	   ERROR "College Aid Calculator '96-6 can not be installed." "You need 9MB of free disk space to install College Aid Calculator '96-7," "which is recuced to 6MB  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 Alpha Four 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
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\ *.*
  DEL %DestExe\COL_AID.ZIP
  DEL %DestExe\PKUNZIP.EXE
  DEL %DestExe\SETUP.EXE
  DEL %DestExe\SETUP.DTA
  DEL %DestExe\GETODO.BAT
BAT %DestExe\A4.VMC "minmem = 1024" "maxmem = 4096" "virtualsize = 4096" "swapname = %DestExe\A4.SWP"
  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\STRATS21.RTF  		%DestExe\STRATS21.RTF
  COPY %Source\STRATS21.TXT  		%DestExe\STRATS21.TXT
  PROGRESS 15
  COPY %Source\COL_AID.2              	%DestExe\COL_AID.2
  PROGRESS 30
  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\ *.*
  DEL %DestExe\COL_AID.2
  DEL %DestExe\PKUNZIP.EXE
  DEL %DestExe\SETUP.EXE
  DEL %DestExe\SETUP.DTA
  DEL %DestExe\COL_AID.ZIP
BAT %DestExe\A4.VMC "minmem = 1024" "maxmem = 4096" "virtualsize = 4096" "swapname = %DestExe\A4.SWP"
:COPYDONE
  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 /F:5024 /L:200 and can install it for you." "A backup of 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" "SHARE /F:5024 /L:200"
	ENDIF
  ENDIF
CLS
BEEP
RUN GETODO.BAT
END