home *** CD-ROM | disk | FTP | other *** search
- @echo off
- cls
- if .%1 == . goto 3MESSAGE
-
- rem a:CHECK %1
-
- rem IF ERRORLEVEL 3 goto 3MESSAGE
-
- echo CLEAR+ for C Installation Procedure
- echo .......................................................................
- echo CLEAR will be installed on %1
- echo ( press Ctrl-C to interrupt )
- echo *
- echo Please make sure that the path you have
- echo specified does NOT contain more than one
- echo subdirectory which has to be created.
- echo *
- echo If you specified only drive without path,
- echo ignore DOS error "Unable to create directory."
- echo .......................................................................
- pause
-
- if .%1 == .b: goto 4MESSAGE
- if .%1 == .B: goto 4MESSAGE
-
- :FLOOPY-OK
-
- if not exist a:device.bat goto 1ERROR
-
- cls
- md %1 > nul
- cls
- md %1\temp > nul
- cls
- echo Copying Device Files
- copy a:device.bat %1 > nul
- copy a:firstrun.bat %1 > nul
- copy a:tutor.bat %1 > nul
- copy a:clr0060.ovc %1 > nul
- copy a:dcpp.exe %1 > nul
- cls
- echo Copying Dictionary Files
- copy a:*.wrd %1 > nul
- cls
- if .%2 == ./n goto NOHELP
- if .%2 == ./N goto NOHELP
-
- echo Copying Help Files
- copy a:clr0010.ovc %1 > nul
- copy a:clr0020.ovc %1 > nul
- copy a:clr0030.ovc %1 > nul
- cls
- echo Copying Utilities Files
- copy a:dcpp.doc %1 > nul
- copy a:makelist.* %1 > nul
- copy a:problems.doc %1 > nul
- copy a:printer.doc %1 > nul
- copy a:preproc.doc %1 > nul
- copy a:fnptrs.doc %1 > nul
- copy a:nested.doc %1 > nul
- cls
- echo Copying Sample Session Files
- copy a:life.* %1 > nul
- copy a:lifeio.* %1 > nul
- copy a:*.txt %1 > nul
-
- :NOHELP
-
- %1\device %1
-
- goto ERR_EXIT
-
- :1ERROR
- cls
- echo ERROR: Missing File. CLEAR Utilities Disk must be damaged.
- goto ERR_EXIT
-
- :4MESSAGE
- cls
- echo ........................................................................
- echo This installation procedure requires one blank formated flopy diskette.
- echo If you haven't prepared the blank diskette, press Ctrl-C to interrupt.
- echo ........................................................................
- echo If you are installing CLEAR on a 360 K floppy diskette, you will not be
- echo able to install the help files. If you haven't begun this installation
- echo procedure by using the "/N" parameter ("INSTALL B: /N", for example) to
- echo prevent copying the help files, press Ctrl-C now.
- echo ........................................................................
- echo Insert the blank formatted diskette in drive B:
- echo ........................................................................
- pause
- goto FLOOPY-OK
-
- :3MESSAGE
- cls
- echo Format is "INSTALL D:\PATH\PATH"
- echo where D: is the drive and \PATH is the subdirectory
- echo where CLEAR is to be installed.
- echo ...............................................................
- echo Format is "INSTALL B: /N"
- echo to install CLEAR without context-sensitive help.
- echo This should be done if you are installing CLEAR on
- echo 360 K floppy disk where there is not enough
- echo space for the help files.
- goto ERR_EXIT
-
-
- :5MESSAGE
- cls
- echo This installation procedure requires DOS 3.0 or higher.
- echo Refer to MINSTALL.DOC file on the CLEAR Utilities Disk (#2)
- echo for instructions on how to manually install CLEAR and configure
- echo it to your PC's environment.
-
- :ERR_EXIT