home *** CD-ROM | disk | FTP | other *** search
/ World of Shareware - Software Farm 2 / wosw_2.zip / wosw_2 / DESKTOP / NAMPRO39.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1989-10-14  |  7KB  |  201 lines

  1. echo off
  2. cls
  3. : Oct 14 1989
  4. : Version:  Use drive letter as argument to install on drive other than "C".
  5. :           Example -    A:install D
  6. :
  7. :        Where "D" is the drive to put the program & data files. 
  8. :
  9. : This Installation only supports drives A thru L (see *remark below)
  10. :
  11. :If your floppy is not drive "A:",  Use the DOS "Assign" command during
  12. :installation.        Example: C:ASSIGN A B 
  13. :This temporarily makes your computer use drive "B" instead of "A" when our
  14. :Install program needs to get files from the floppy disk.
  15. :After installation type: C:ASSIGN     to change everything back to normal.
  16. :
  17. :      *If your drive does not appear in the list below, you may add the 
  18. :    appropriate line, using the following lines as an example.
  19. :
  20. if "%1"=="" goto :start
  21. if "%1"=="D" goto :start1
  22. if "%1"=="d" goto :start1
  23. if "%1"=="E" goto :start1
  24. if "%1"=="e" goto :start1
  25. if "%1"=="F" goto :start1
  26. if "%1"=="f" goto :start1
  27. if "%1"=="G" goto :start1
  28. if "%1"=="g" goto :start1
  29. if "%1"=="H" goto :start1
  30. if "%1"=="h" goto :start1
  31. if "%1"=="I" goto :start1
  32. if "%1"=="i" goto :start1
  33. if "%1"=="J" goto :start1
  34. if "%1"=="j" goto :start1
  35. if "%1"=="K" goto :start1
  36. if "%1"=="k" goto :start1
  37. if "%1"=="L" goto :start1
  38. if "%1"=="l" goto :start1
  39.  
  40. cls
  41. echo  
  42. echo  
  43. echo You don't need to add a colon (:) after the drive letter.
  44. echo    Incorrect  = Install D:
  45. echo    Correct    = Install D
  46. echo  
  47. echo    Please try again.
  48. echo  
  49. echo            Press SPACE-BAR to return to DOS.
  50. pause >nul
  51. goto end
  52.  
  53. :START1
  54. echo  
  55. echo  
  56. echo 1) Your NameProcessor will be installed on drive %1  in the \NP subdirectory.
  57. echo  
  58. echo 2) The NP.bat (the batch file needed to start THE NameProcessor) will be put
  59. echo on drive C:\ no matter where the program files are installed (unless you edit
  60. echo this install batch file). It can then be moved to any drive or subdirectory
  61. echo that you wish. You should insure that such a drive/subdirectory is in your
  62. echo PATH environment variable.
  63. echo  
  64. echo 3) Once installed, To run THE NameProcessor on a drive other than "C",
  65. echo  
  66. echo "      Type  A:>NP D        (where D is the correct drive letter)        "
  67. echo  
  68. echo  
  69. echo        Press the SPACE-BAR to continue.
  70. echo  
  71. pause >nul
  72.  
  73. :START
  74. A:
  75. cls
  76. if "%1" == "" z C:\*.* /w
  77. if NOT "%1" == "" z %1:\*.* /w
  78. echo   ╔═════════════  ^^^,^^^ ════════════════════════════════════╗
  79. echo   ║                       This is the amount of space         ║
  80. echo   ║                       you have left on your hard disk     ║
  81. echo   ╚═══════════════════════════════════════════════════════════╝
  82.  
  83. echo  
  84. echo   ╔════════════════════════════════════════════════╗
  85. echo   ║   If the number ABOVE the arrows               ║
  86. echo   ║   is less than:  425,000 bytes free on disk,   ║    
  87. echo   ║                                                ║
  88. echo   ║                Press Control-Break,            ║
  89. echo   ║                   or Control-C        NOW!     ║
  90. echo   ║                                                ║
  91. echo   ║      So that this program will stop,           ║
  92. echo   ║      and you can make enough space available   ║
  93. echo   ╚════════════════════════════════════════════════╝
  94. echo  
  95. echo   ╔══════════════════════════════════════════════════════════════════╗
  96. echo   ║   IF YOU DO HAVE ENOUGH SPACE,                                   ║
  97. echo   ║   (the number ABOVE the arrows is more than 425,000 bytes free)  ║
  98. echo   ║   You may press the SPACE-BAR,  to resume installation.          ║
  99. echo   ║                                                                  ║
  100. echo   ╚══════════════════════════════════════════════════════════════════╝
  101.  
  102. pause >nul
  103. : echo                   THE NameProcessor(r)   Install batch file
  104. cls
  105. cd \
  106. if "%1" == "" C:
  107. if NOT "%1" == "" %1:
  108. :           We change your prompt for diagnostic assistance of support 
  109. :        of installation problems
  110. :           When you reboot your machine, your normal prompt will return
  111. PROMPT $P$G
  112. PROMPT $P$G
  113. cls
  114. :    The following command creates a new directory 
  115. :    named: "NP" for NameProcessor.
  116. :
  117. cd \
  118. if NOT exist C:NP goto :NPFILEJMP
  119. echo  You have a file named "NP" on your root Directory,
  120. echo  We can't make a subdirectory while a file with that name exists.
  121. echo  Please rename, or erase it, then restart INSTALL.
  122. goto end
  123. :NPFILEJMP
  124.  
  125. if "%1" == "" if NOT exist C:\NP\*.* goto :MDIRJMP
  126. if NOT "%1" == "" if NOT exist %1:\NP\*.* goto :MDIRJMP
  127. CLS
  128. if "%1" == "" dir C:\NP /w
  129. if NOT "%1" == "" dir %1:\NP /w
  130. echo  
  131. echo   ╔═════════════════════════════════════════════════════╗
  132. echo   ║   You already have a subdirectory named:  \NP       ║
  133. echo   ║   It contains the files shown above.                ║
  134. echo   ║                                                     ║
  135. echo   ║   Press Control-C to stop this installation now,    ║
  136. echo   ║   to keep from overwriting any files listed above.  ║ 
  137. echo   ║                                                     ║
  138. echo   ║   Press SPACE-BAR to continue with Installation.    ║
  139. echo   ╚═════════════════════════════════════════════════════╝
  140. pause >nul
  141.  
  142. :MDIRJMP
  143. if "%1" == "" mkdir C:\NP >nul:
  144. if NOT "%1" == "" mkdir %1:\NP >nul:
  145. cd \np
  146.  
  147. :The following command verifies that the original files are OK.
  148. cls
  149. echo  
  150. echo  
  151. echo  
  152. echo   ╔══════════════════════════════════════════════════════════════════╗
  153. echo   ║ Now verifying that your floppy disk arrived in perfect condition ║
  154. echo   ║                                                                  ║
  155. echo   ║                                                                  ║
  156. echo   ║ If this process stops, or shows an error,  DO NOT CONTINUE.      ║
  157. echo   ║                   Your disk is probably damaged.                 ║
  158. echo   ╚══════════════════════════════════════════════════════════════════╝
  159. copy A:*.* nul: >nul:
  160. cls
  161. echo  
  162. echo  
  163. echo  
  164. echo   ╔══════════════════════════════════════════════════════════════════╗
  165. echo   ║     Now copying files from floppy disk to your Hard disk.        ║
  166. echo   ╚══════════════════════════════════════════════════════════════════╝
  167.  
  168. if "%1" == "" SET DFPROG=C:\NP
  169. if "%1" == "" PKUNZIP A:\NP32D.ZIP C:\NP *.*
  170. if "%1" == "" copy A:\Z.COM C:\NP\Z.com >nul:
  171. if "%1" == "" copy C:np.bat nul: >nul:
  172. if "%1" == "" copy C:np.bat C:\ >nul:
  173.  
  174. if NOT "%1" == "" SET DFPROG=%1:\NP
  175. if NOT "%1" == "" PKUNZIP A:\NP32D.ZIP %1:\NP *.*
  176. if NOT "%1" == "" copy A:\Z.COM %1:\NP\Z.com >nul:
  177. if NOT "%1" == "" copy %1:np.bat nul: >nul:
  178. if NOT "%1" == "" copy %1:np.bat C:\ >nul:
  179.  
  180. cd \
  181. IF EXIST C:\CONFIG.SYS goto :ATOCONFIG
  182. IF EXIST %1:\CONFIG.SYS goto :ATOCONFIG
  183. echo You do NOT have a file called config.sys on drive C.  You will need one 
  184. echo to run NP correctly.  A clean CONFIG.sys is about to be copied 
  185. echo to your root directory on drive C.  If you don't want it copied there, 
  186. echo     press Ctrl-brk, or Ctrl-C NOW, to stop this batch file immediately.
  187. pause
  188. if "%1" == "" COPY C:\NP\REST C:\CONFIG.SYS >NUL:
  189. if NOT "%1" == "" COPY %1:\NP\REST %1:\CONFIG.SYS >NUL:
  190.  
  191. :ATOCONFIG
  192. if "%1" == "" COPY C:\NP\REST C:\CONFIG.NP >NUL:
  193. if NOT "%1" == "" COPY %1:\NP\REST C:\CONFIG.NP >NUL:
  194. cd \NP
  195. if NOT "%1" == "" erase %1:NP.BAT
  196. if "%1" == "" erase C:NP.BAT
  197. if NOT "%1" == "" env.bat %1:
  198. if "%1" == "" env.bat
  199. :END
  200.