home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 7 / 07.iso / c / c120 / 2.ddi / INSTALL.BAT < prev    next >
Encoding:
DOS Batch File  |  1990-01-12  |  3.6 KB  |  116 lines

  1. @echo off
  2. cls
  3. if .%1 == . goto 3MESSAGE
  4.  
  5. rem a:CHECK %1
  6.  
  7. rem IF ERRORLEVEL 3 goto 3MESSAGE
  8.  
  9. echo                 CLEAR+ for C Installation Procedure
  10. echo  .......................................................................
  11. echo                 CLEAR will be installed on %1
  12. echo                   ( press Ctrl-C to interrupt )
  13. echo                                *
  14. echo               Please make sure that the path you have
  15. echo               specified does NOT contain more than one
  16. echo                subdirectory which has to be created.
  17. echo                                * 
  18. echo               If you specified only drive without path, 
  19. echo             ignore DOS error "Unable to create directory."
  20. echo  .......................................................................
  21. pause
  22.  
  23. if .%1 == .b: goto 4MESSAGE
  24. if .%1 == .B: goto 4MESSAGE
  25.  
  26. :FLOOPY-OK
  27.  
  28. if not exist a:device.bat goto 1ERROR
  29.  
  30. cls
  31. md %1 > nul
  32. cls
  33. md %1\temp > nul
  34. cls
  35. echo Copying Device Files
  36. copy a:device.bat %1 > nul
  37. copy a:firstrun.bat %1 > nul
  38. copy a:tutor.bat %1 > nul
  39. copy a:clr0060.ovc %1 > nul
  40. copy a:dcpp.exe %1 > nul
  41. cls
  42. echo Copying Dictionary Files
  43. copy a:*.wrd %1 > nul
  44. cls
  45. if .%2 == ./n goto NOHELP 
  46. if .%2 == ./N goto NOHELP 
  47.  
  48. echo Copying Help Files
  49. copy a:clr0010.ovc %1 > nul
  50. copy a:clr0020.ovc %1 > nul
  51. copy a:clr0030.ovc %1 > nul
  52. cls
  53. echo Copying Utilities Files
  54. copy a:dcpp.doc %1 > nul
  55. copy a:makelist.* %1 > nul
  56. copy a:problems.doc %1 > nul
  57. copy a:printer.doc %1 > nul
  58. copy a:preproc.doc %1 > nul
  59. copy a:fnptrs.doc %1 > nul
  60. copy a:nested.doc %1 > nul
  61. cls
  62. echo Copying Sample Session Files
  63. copy a:life.* %1 > nul
  64. copy a:lifeio.* %1 > nul
  65. copy a:*.txt %1 > nul
  66.  
  67. :NOHELP
  68.  
  69. %1\device %1 
  70.  
  71. goto ERR_EXIT
  72.   
  73. :1ERROR
  74. cls
  75. echo  ERROR: Missing File. CLEAR Utilities Disk must be damaged.
  76. goto ERR_EXIT 
  77.  
  78. :4MESSAGE
  79. cls
  80. echo  ........................................................................
  81. echo  This installation procedure requires one blank formated flopy diskette. 
  82. echo  If you haven't prepared the blank diskette, press Ctrl-C to interrupt.
  83. echo  ........................................................................
  84. echo  If you are installing CLEAR on a 360 K floppy diskette, you will not be   
  85. echo  able to install the help files.  If you haven't begun this installation
  86. echo  procedure by using the "/N" parameter ("INSTALL B: /N", for example) to
  87. echo  prevent copying the help files, press Ctrl-C now.  
  88. echo  ........................................................................
  89. echo            Insert the blank formatted diskette in drive B:             
  90. echo  ........................................................................
  91. pause
  92. goto FLOOPY-OK
  93.  
  94. :3MESSAGE 
  95. cls
  96. echo               Format is "INSTALL D:\PATH\PATH"
  97. echo       where D: is the drive and \PATH is the subdirectory 
  98. echo               where CLEAR is to be installed. 
  99. echo  ...............................................................
  100. echo                   Format is "INSTALL B: /N"       
  101. echo        to install CLEAR without context-sensitive help. 
  102. echo       This should be done if you are installing CLEAR on  
  103. echo           360 K floppy disk where there is not enough   
  104. echo                   space for the help files.
  105. goto ERR_EXIT
  106.  
  107.  
  108. :5MESSAGE 
  109. cls
  110. echo       This installation procedure requires DOS 3.0 or higher.   
  111. echo       Refer to MINSTALL.DOC file on the CLEAR Utilities Disk (#2)
  112. echo       for instructions on how to manually install CLEAR and configure
  113. echo       it to your PC's environment.
  114.  
  115. :ERR_EXIT
  116.