home *** CD-ROM | disk | FTP | other *** search
- ECHO OFF
- rem SET b=0xFF
- SET b=
- IF ERRORLEVEL 1 GOTO NENV_SP
- rem File: INSTALL.BAT for Host Software Demo Diskette #1 of 2:
- CLS
- ECHO %b%
- ECHO %b%
- ECHO MetaLink iceMASTER 8051 Family Emulator Demo
- ECHO %b%
- ECHO (c) Copyright MetaLink Corporation, 1990, 1991
- ECHO %b%
- ECHO %b%
- ECHO %b%
- ECHO Installation of Host Software Demo Diskette Files
- ECHO (Diskette #1 of 2)
- ECHO %b%
- ECHO %b%
- ECHO The files on the demo diskettes are self-unpacking. This installation
- ECHO procedure will unpack the files from the demo diskettes, creating the
- ECHO actual Host Software Demo system and utility files on your hard disk.
- ECHO %b%
- ECHO %b%
- ECHO %b%
- ECHO You will need approximately 1.2M bytes available on your hard disk before
- ECHO beginning installation of the files. After installation, the Demo System
- ECHO will occupy approximately 1M bytes of hard disk space.
- ECHO %b%
- ECHO %b%
- PAUSE
- CLS
-
- SET f=%1
- IF ERRORLEVEL 1 GOTO NENV_SP
- SET t=%2
- IF ERRORLEVEL 1 GOTO NENV_SP
- SET d=%3
- IF ERRORLEVEL 1 GOTO NENV_SP
-
- IF x%1 == x SET f=A:
- IF ERRORLEVEL 1 GOTO NENV_SP
- IF x%2 == x SET t=C:
- IF ERRORLEVEL 1 GOTO NENV_SP
- IF x%3 == x SET d=\METALINK
- IF ERRORLEVEL 1 GOTO NENV_SP
-
- IF x%b% == x GOTO NENV_SP
- IF x%f% == x GOTO NENV_SP
- IF x%t% == x GOTO NENV_SP
- IF x%d% == x GOTO NENV_SP
- GOTO ENV_OK
- :NENV_SP
- rem (No %b%'s here, because 'b' may not have been defined successfully.)
- CLS
- ECHO ERROR: Environment Space Insufficient to Continue Installation #
- ECHO #
- ECHO You can increase the available space in the environment by adding the #
- ECHO following line to your CONFIG.SYS file and then rebooting your PC: #
- ECHO #
- ECHO SHELL=C:\COMMAND.COM /P /E:2048 #
- ECHO #
- ECHO where 2048 is the new environment size (2048 bytes) and the DOS #
- ECHO command processor (COMMAND.COM) is located at C:\COMMAND.COM #
- ECHO #
- ECHO Alternatively, you can release some environment space "manually". #
- ECHO To do this, first type #
- ECHO #
- ECHO SET #
- ECHO #
- ECHO to see a list of all currently defined environment variables. Then, #
- ECHO for each unnecessary variable (only you can determine which variables #
- ECHO are unnecessary), type #
- ECHO #
- ECHO SET ABC= #
- ECHO #
- ECHO where 'ABC' is the environment variable to be deleted. #
- ECHO #
- GOTO END
-
- :ENV_OK
- CLS
- ECHO The Host Software Demo Distribution Diskette files will be installed:
- ECHO %b%
- ECHO FROM drive: %f%
- ECHO TO drive: %t%
- ECHO INTO directory: %d% (of drive %t%)
- ECHO %b%
- ECHO If the above settings are not satisfactory, terminate this installation by
- ECHO pressing Ctrl-C (Ctrl key and C key, simultaneously). Then, reinvoke
- ECHO this installation procedure with command line arguments of the form:
- ECHO %b%
- ECHO source_drive:INSTALL [source_drive: [target_drive: [target_directory]]]
- ECHO %b%
- ECHO Example: _______________________ one or more blanks
- ECHO / / /
- ECHO A:INSTALL A: C: \METALINK
- ECHO ^ ^ ^ \________/
- ECHO ^ ^ ^ ^-- target directory
- ECHO ^ ^ ^ (if you want subdirectories,
- ECHO ^ ^ ^ create them first)
- ECHO source ^ ^ ^------------ target drive (hard disk)
- ECHO drive --^------------^
- ECHO (location of distribution diskette)
- ECHO %b%
- PAUSE
-
- CLS
- ECHO At this point you are ready to load the Host Software Demo Diskette
- ECHO files onto your hard disk. Recheck the following values.
- ECHO If they are correct, press any key to continue the installation;
- ECHO if they are not correct, press Ctrl-C to terminate the installation:
- ECHO %b%
- ECHO If you continue, the Host Software Demo files will be copied:
- ECHO %b%
- ECHO FROM drive: %f%
- ECHO TO drive: %t%
- ECHO INTO directory: %d% (of drive %t%)
- ECHO %b%
- ECHO ***************************************************************************
- ECHO * *
- ECHO * Press Ctrl-C to TERMINATE the installation; *
- ECHO * Press any other key to CONTINUE with the installation. *
- ECHO * *
- ECHO ***************************************************************************
- ECHO %b%
- PAUSE
-
- ECHO %b%
- ECHO (Do not worry if you see a "Directory already exists" message
- ECHO or an "Unable to create directory" message.)
- ECHO %b%
-
- %t%
- MD %t%%d%
- CD %t%%d%
-
- ECHO %b%
- ECHO ***** Installing Host Software Demo files from %f%, please wait ... *****
- ECHO %b%
-
- COPY %f%\PCKDD51A.EXE
- IF ERRORLEVEL 1 GOTO INS_TERM
- %t%%d%\PCKDD51A
- IF ERRORLEVEL 2 GOTO INS_TERM
- DEL %t%%d%\PCKDD51A.EXE
-
- CLS
- ECHO ***** Installation Complete (Diskette #1 of 2) *****
- ECHO %b%
- ECHO The files from Demo Diskette #1 of 2 have been installed.
- ECHO %b%
- ECHO %b%
- ECHO %b%
- ECHO %b%
- ECHO %b%
- ECHO %b%
- ECHO %b%
- ECHO Now insert Demo Diskette #2 of 2 and type:
- ECHO %b%
- ECHO %f%INSTALL %f% %t% %d%
- ECHO %b%
- ECHO %b%
- ECHO %b%
- ECHO %b%
- GOTO END
-
- :INS_TERM
- ECHO ERROR: Unable to continue installation (see message above).
- GOTO END
-
- :END
-