home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 15 / 15.iso / s / s270 / 1.ddi / INST1.BAT < prev    next >
Encoding:
DOS Batch File  |  1991-01-15  |  8.1 KB  |  208 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:
  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 #2 of 2)
  17. ECHO %b%
  18. ECHO %b%
  19. ECHO %b%
  20. ECHO %b%
  21. ECHO %b%
  22. ECHO %b%
  23. ECHO %b%
  24. ECHO %b%
  25. ECHO %b%
  26. ECHO %b%
  27. ECHO %b%
  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 You are ready to continue loading 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%\PCKDD51B.EXE
  142. IF ERRORLEVEL 1 GOTO INS_TERM
  143. %t%%d%\PCKDD51B
  144. IF ERRORLEVEL 2 GOTO INS_TERM
  145. DEL %t%%d%\PCKDD51B.EXE
  146.  
  147. ECHO %b%
  148. ECHO ***** Installation Complete *****
  149. ECHO %b%
  150. PAUSE
  151.  
  152. CLS
  153. ECHO %b%
  154. ECHO The MetaLink iceMASTER demo program contains not only a fully-functional copy
  155. ECHO of the host software for a real iceMASTER emulator, but also a software
  156. ECHO simulator of the emulator itself!  This emulator simulator mimics the behavior
  157. ECHO of a real iceMASTER emulator AND probe card AND target processor.  For this
  158. ECHO reason, the iceMASTER demo program uses much more memory than the actual
  159. ECHO product.  Consequently, we recommend that you remove any
  160. ECHO "Terminate-and-Stay-Resident" programs (TSRs) from memory before proceeding
  161. ECHO with the demo.
  162. ECHO %b%
  163. ECHO %b%
  164. ECHO The first part of the demo is a very rapid tour through an actual iceMASTER
  165. ECHO session.  The sole purpose of this tour is to give you a "feel" for the
  166. ECHO system.  The tour will take about 8 minutes.  During that time you should
  167. ECHO not press any keys.  You will have plenty of time to play and experiment with
  168. ECHO the host software after the 8 minute tour is over.
  169. ECHO %b%
  170. ECHO %b%
  171. ECHO You're not about to endure yet another slick slide show ...
  172. ECHO                                          MetaLink delivers the REAL THING.
  173. ECHO %b%
  174. ECHO %b%
  175. PAUSE
  176.  
  177. CLS
  178. ECHO To begin the tour, simply type:  SHOWME
  179. ECHO %b%
  180. ECHO Note 1:  If SHOWME runs too fast for your taste, you can slow it down by typing
  181. ECHO "SHOWME -d n", where the 'n' is between 0 and 15000 inclusive.  'n' is the
  182. ECHO key-to-key delay, in milliseconds.  The default setting of 'n' is
  183. ECHO "SHOWME -d 850" (0.85 second delay between canned keystrokes in the SHOWME.MAC
  184. ECHO macro file).  The '-d' option must be typed in lower-case.
  185. ECHO %b%
  186. ECHO Note 2:  If you experience video incompatibilities or difficulties
  187. ECHO (for example, a blank screen after the system starts up):
  188. ECHO   a.  First, make sure that the display is in 25-line mode.
  189. ECHO   b.  Start the tour by typing "SHOWME -v".  (Note:  '-v' must be lower-case.)
  190. ECHO %b%
  191. ECHO Note 3:  If you'd rather not bother with the tour at all, you can start using
  192. ECHO the host software demo/simulator immediately simply by typing:
  193. ECHO %b%
  194. ECHO     ICEDEMO
  195. ECHO %b%
  196. ECHO If you do this, we recommend that, upon entry to the host software, you select
  197. ECHO the 'Help' command from the pull-down menu bar at the top of the screen.  At
  198. ECHO the end of that General Help topic are several hyperlinks which you can follow
  199. ECHO to get more information about the demo/simulator and MetaLink's iceMASTER
  200. ECHO product line.
  201. GOTO END
  202.  
  203. :INS_TERM
  204.   ECHO ERROR:  Unable to continue installation (see message above).
  205.   GOTO END
  206.  
  207. :END
  208.