home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s270 / 1.ddi / INST0.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-01-15  |  6.3 KB  |  172 lines

  1. ECHO OFF
  2. rem SET b=0xFF
  3. SET b= 
  4. IF ERRORLEVEL 1 GOTO NENV_SP
  5. rem File:  INSTALL.BAT for Host Software Demo Diskette #1 of 2:
  6. CLS
  7. ECHO %b%
  8. ECHO %b%
  9. ECHO           MetaLink iceMASTER 8051 Family Emulator Demo
  10. ECHO %b%
  11. ECHO          (c) Copyright MetaLink Corporation, 1990, 1991
  12. ECHO %b%
  13. ECHO %b%
  14. ECHO %b%
  15. ECHO         Installation of Host Software Demo Diskette Files
  16. ECHO                        (Diskette #1 of 2)
  17. ECHO %b%
  18. ECHO %b%
  19. ECHO The files on the demo diskettes are self-unpacking.  This installation
  20. ECHO procedure will unpack the files from the demo diskettes, creating the
  21. ECHO actual Host Software Demo system and utility files on your hard disk.
  22. ECHO %b%
  23. ECHO %b%
  24. ECHO %b%
  25. ECHO You will need approximately 1.2M bytes available on your hard disk before
  26. ECHO beginning installation of the files.  After installation, the Demo System
  27. ECHO will occupy approximately 1M bytes of hard disk space.
  28. ECHO %b%
  29. ECHO %b%
  30. PAUSE
  31. CLS
  32.  
  33. SET f=%1
  34. IF ERRORLEVEL 1 GOTO NENV_SP
  35. SET t=%2
  36. IF ERRORLEVEL 1 GOTO NENV_SP
  37. SET d=%3
  38. IF ERRORLEVEL 1 GOTO NENV_SP
  39.  
  40. IF x%1 == x SET f=A:
  41. IF ERRORLEVEL 1 GOTO NENV_SP
  42. IF x%2 == x SET t=C:
  43. IF ERRORLEVEL 1 GOTO NENV_SP
  44. IF x%3 == x SET d=\METALINK
  45. IF ERRORLEVEL 1 GOTO NENV_SP
  46.  
  47. IF x%b% == x GOTO NENV_SP
  48. IF x%f% == x GOTO NENV_SP
  49. IF x%t% == x GOTO NENV_SP
  50. IF x%d% == x GOTO NENV_SP
  51. GOTO ENV_OK
  52. :NENV_SP
  53.   rem (No %b%'s here, because 'b' may not have been defined successfully.)
  54.   CLS
  55.   ECHO ERROR:  Environment Space Insufficient to Continue Installation         #
  56.   ECHO                                                                         #
  57.   ECHO You can increase the available space in the environment by adding the   #
  58.   ECHO following line to your CONFIG.SYS file and then rebooting your PC:      #
  59.   ECHO                                                                         #
  60.   ECHO      SHELL=C:\COMMAND.COM /P /E:2048                                    #
  61.   ECHO                                                                         #
  62.   ECHO where 2048 is the new environment size (2048 bytes) and the DOS         #
  63.   ECHO command processor (COMMAND.COM) is located at C:\COMMAND.COM            #
  64.   ECHO                                                                         #
  65.   ECHO Alternatively, you can release some environment space "manually".       #
  66.   ECHO To do this, first type                                                  #
  67.   ECHO                                                                         #
  68.   ECHO      SET                                                                #
  69.   ECHO                                                                         #
  70.   ECHO to see a list of all currently defined environment variables.  Then,    #
  71.   ECHO for each unnecessary variable (only you can determine which variables   #
  72.   ECHO are unnecessary), type                                                  #
  73.   ECHO                                                                         #
  74.   ECHO      SET ABC=                                                           #
  75.   ECHO                                                                         #
  76.   ECHO where 'ABC' is the environment variable to be deleted.                  #
  77.   ECHO                                                                         #
  78.   GOTO END
  79.  
  80. :ENV_OK
  81. CLS
  82. ECHO The Host Software Demo Distribution Diskette files will be installed:
  83. ECHO %b%
  84. ECHO                FROM drive:  %f%
  85. ECHO                  TO drive:  %t%
  86. ECHO            INTO directory:  %d% (of drive %t%)
  87. ECHO %b%
  88. ECHO If the above settings are not satisfactory, terminate this installation by
  89. ECHO pressing Ctrl-C (Ctrl key and C key, simultaneously).  Then, reinvoke
  90. ECHO this installation procedure with command line arguments of the form:
  91. ECHO %b%
  92. ECHO    source_drive:INSTALL [source_drive:  [target_drive:  [target_directory]]]
  93. ECHO %b%
  94. ECHO Example:                _______________________ one or more blanks
  95. ECHO                        /     /     /
  96. ECHO             A:INSTALL    A:    C:    \METALINK
  97. ECHO             ^            ^     ^     \________/
  98. ECHO             ^            ^     ^         ^-- target directory
  99. ECHO             ^            ^     ^                 (if you want subdirectories,
  100. ECHO             ^            ^     ^                  create them first)
  101. ECHO    source   ^            ^     ^------------ target drive (hard disk)
  102. ECHO    drive  --^------------^
  103. ECHO    (location of distribution diskette)
  104. ECHO %b%
  105. PAUSE
  106.  
  107. CLS
  108. ECHO At this point you are ready to load the Host Software Demo Diskette
  109. ECHO files onto your hard disk.  Recheck the following values.
  110. ECHO If they are correct, press any key to continue the installation;
  111. ECHO if they are not correct, press Ctrl-C to terminate the installation:
  112. ECHO %b%
  113. ECHO     If you continue, the Host Software Demo files will be copied:
  114. ECHO %b%
  115. ECHO                FROM drive:  %f%
  116. ECHO                  TO drive:  %t%
  117. ECHO            INTO directory:  %d% (of drive %t%)
  118. ECHO %b%
  119. ECHO ***************************************************************************
  120. ECHO *                                                                         *
  121. ECHO *  Press Ctrl-C to TERMINATE the installation;                            *
  122. ECHO *  Press any other key to CONTINUE with the installation.                 *
  123. ECHO *                                                                         *
  124. ECHO ***************************************************************************
  125. ECHO %b%
  126. PAUSE
  127.  
  128. ECHO %b%
  129. ECHO (Do not worry if you see a "Directory already exists"   message
  130. ECHO                      or an "Unable to create directory" message.)
  131. ECHO %b%
  132.  
  133. %t%
  134. MD %t%%d%
  135. CD %t%%d%
  136.  
  137. ECHO %b%
  138. ECHO ***** Installing Host Software Demo files from %f%, please wait ...  *****
  139. ECHO %b%
  140.  
  141. COPY %f%\PCKDD51A.EXE
  142. IF ERRORLEVEL 1 GOTO INS_TERM
  143. %t%%d%\PCKDD51A
  144. IF ERRORLEVEL 2 GOTO INS_TERM
  145. DEL %t%%d%\PCKDD51A.EXE
  146.  
  147. CLS
  148. ECHO ***** Installation Complete (Diskette #1 of 2) *****
  149. ECHO %b%
  150. ECHO The files from Demo Diskette #1 of 2 have been installed.
  151. ECHO %b%
  152. ECHO %b%
  153. ECHO %b%
  154. ECHO %b%
  155. ECHO %b%
  156. ECHO %b%
  157. ECHO %b%
  158. ECHO Now insert Demo Diskette #2 of 2 and type:
  159. ECHO %b%
  160. ECHO     %f%INSTALL    %f%    %t%    %d%
  161. ECHO %b%
  162. ECHO %b%
  163. ECHO %b%
  164. ECHO %b%
  165. GOTO END
  166.  
  167. :INS_TERM
  168.   ECHO ERROR:  Unable to continue installation (see message above).
  169.   GOTO END
  170.  
  171. :END
  172.