BANNER "*** LOWER's BUSINESS SOLUTIONs - TRIAL VERSION INSTALLATION ***"
SET %DiskSpaceNeeded "4000000"
SET %DestExe "C:\LBS"
SET %BOOT "C:"
:MAINMENU
MENU %InstallMenuSel "Full Installation;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 "Full Installation"
GETPATH %DestExe CREATE "Please accept the path shown for ease of installation."
    DISKSPACE %SPACE %DestExe 4000000
IF NO %SPACE
    BEEP
    ERROR "LOWER's Business Solutions program can not be installed." "You need 4MB of free disk space to install this program."
    END
ENDIF
DISK "Installation Disk"
PROGRESS 5
COPY %Source\PKUNZIP.EXE			%DestExe\PKUNZIP.EXE
PROGRESS 8
COPY %Source\A4HELP.ZIP               		%DestExe\A4HELP.ZIP
UNZIP %DestExe\A4HELP.ZIP             		%DestExe\ A4HELP.HLP
DEL %DestExe\A4HELP.ZIP
PROGRESS 20
     IF EQUAL %Color MONO
         COPY  %Source\MONON.DFL           	%DestExe\A4.DFL
     ELSE
         IF EQUAL %Color COLOR
             COPY  %Source\EGAN.DFL        	%DestExe\A4.DFL
         ELSE
             IF EQUAL %Color VGACOLOR
                 COPY  %Source\VGAN.DFL    	%DestExe\A4.DFL
             ENDIF
         ENDIF
     ENDIF
CLS
PROGRESS 25
COPY %Source\A4RTRIAL.1                     	%DestExe\A4RTRIAL.ZIP
DEL %DestExe\A4RTRIAL.1
PROGRESS 35
DISK "Disk 2"
PROGRESS 40
COPY %Source\A4RTRIAL.2                    	%DestExe\A4RTRIAL.2
PROGRESS 50
APPEND %DestExe\A4RTRIAL.2                 	%DestExe\A4RTRIAL.ZIP
DEL %DestExe\A4RTRIAL.2
IF EXISTS %DestExe\A4RTRIAL.EXE
	ATTRIB %DestExe\A4RTRIAL.EXE "N"
ENDIF
PROGRESS 55
UNZIP %DestExe\A4RTRIAL.ZIP                 	%DestExe\ *.*
DEL %DestExe\A4RTRIAL.ZIP
PROGRESS 70
COPY %Source\DATA.ZIP             		%DestExe\DATA.ZIP
PROGRESS 75
MD %DestExe\DATA
UNZIP %DestExe\DATA.ZIP           		%DestExe\DATA\ *.*
DEL %DestExe\DATA.ZIP
PROGRESS 80
COPY %Source\SCRIPT.ZIP             		%DestExe\SCRIPT.ZIP
PROGRESS 85
MD %DestExe\SCRIPT
UNZIP %DestExe\SCRIPT.ZIP           		%DestExe\SCRIPT\ *.*
DEL %DestExe\SCRIPT.ZIP
PROGRESS 90
COPY %Source\SHARED.ZIP             		%DestExe\SHARED.ZIP
MD %DestExe\SHARED
UNZIP %DestExe\SHARED.ZIP           		%DestExe\SHARED\ *.*
DEL %DestExe\SHARED.ZIP
PROGRESS 95
COPY %Source\USER.ZIP             		%DestExe\USER.ZIP
MD %DestExe\USER
UNZIP %DestExe\USER.ZIP           		%DestExe\USER\ *.*
DEL %DestExe\USER.ZIP
PROGRESS 97
COPY %Source\UTIL.ZIP             		%DestExe\UTIL.ZIP
UNZIP %DestExe\UTIL.ZIP           		%DestExe\ *.*
DEL %DestExe\UTIL.ZIP
DEL %DestExe\PKUNZIP.EXE
CLS
     CONFIGCHECK "%BOOT\CONFIG.SYS" 50 %ConfigStatus
     IF EQUAL %ConfigStatus "FAILED"
         BEEP
         MSG "We recommend the following in your CONFIG.SYS file:" "FILES=50" "Files equal 50 is good, 100 would be better.  Buffers should be 20."
         IF EXISTS %BOOT\CONFIG.SYS
             CONFIG "%BOOT\CONFIG.SYS" "%DestExe\CONFIG.SYS" 50 20
         ENDIF
     ENDIF
ENDIF
BEEP
CLS
:STARTHELP
MSG "If you have a printer on LPT1:" "you can print out" "the HELP files." "Make sure the printer is on."  "It will take about 30 pages to print out help."
MENU %HELP "Print help;Continue" "Help Options"
IF EQUAL %HELP "Continue"
	ASK %Continue "Are you sure want to skip printing help?"
	IF YES %Continue
		GOTO SKIPHELP
	ENDIF
	IF NO %Continue
		GOTO STARTHELP
	ENDIF
ENDIF

IF EQUAL %HELP "Print help"
	RUN C:\LBS\PRTHLP.BAT
ENDIF

:SKIPHELP
MSG "C:\LBS\USER\LBSGO.BAT will run LBS." " " "See your DOS or Windows manuals."
MSG "It is our goal to provide you with a program" "that will let you run your business YOUR way." " " "THANK YOU for choosing LOWER's BUSINESS SOLUTIONs" "for your business program."