home *** CD-ROM | disk | FTP | other *** search
/ NeedleCraft Plus / needlecraftplusvolume1.iso / dos / pwsdem / install.bat < prev    next >
DOS Batch File  |  1997-01-06  |  8KB  |  167 lines

  1. echo off
  2. cls
  3. if "%3"=="X" goto contins
  4. if "%2"=="c" goto start
  5. if "%2"=="C" goto start
  6. if "%2"=="d" goto start
  7. if "%2"=="D" goto start
  8. if "%2"=="e" goto start
  9. if "%2"=="E" goto start
  10. cls
  11. echo   ╔══════════════════════════════════════════════════════════════════════════╗
  12. echo   ║        WELCOME TO PATTERNLAND PREVIEW EDITION INSTALLATION PROGRAM       ║
  13. echo   ║                                                                          ║
  14. echo   ║   Step 1:  Meet Hardware Requirements                                    ║
  15. echo   ║                                                                          ║
  16. echo   ║   The Patternland Weave Simulator Preview Edition requires an IBM        ║
  17. echo   ║   compatible computer with at least 512K memory; a color VGA monitor;    ║
  18. echo   ║   and a hard drive with at least 2 MB of available disk space.           ║
  19. echo   ║   If this system meets those requrements, proceed to Step 2.  (Note:     ║
  20. echo   ║   The full edition of Patternland does NOT require VGA or a hard disk.)  ║
  21. echo   ║                                                                          ║
  22. echo   ║   Step 2:  Tell Install what drive letters to use.                       ║
  23. echo   ║                                                                          ║
  24. echo   ║   Install will create a directory called \PWSDEMO on your hard disk,     ║
  25. echo   ║   copy and expand the archived files from the diskette to hard disk, and ║
  26. echo   ║   play the demo.  Please restart Install, specifying the drive letters   ║
  27. echo   ║   you want it to use.  Press a key for the next screen with directions.  ║
  28. echo   ║                                                                          ║
  29. echo   ║   NOTE:  If the files are already in the current directory of your       ║
  30. echo   ║          hard drive, Install will proceed in the current directory.      ║
  31. echo   ╚══════════════════════════════════════════════════════════════════════════╝
  32. pause
  33. if exist c:pwsmake.exe goto makepws
  34. if exist d:pwsmake.exe goto makepws
  35. cls
  36. echo     
  37. echo     Install needs to know the SOURCE and DESTINATION drives for the PWS 
  38. echo     files so it knows how to proceed. 
  39. echo     
  40. echo     Please retype Install with drive letters as follows:
  41. echo     
  42. echo        ┌────────────────────────────────────────────────────┐
  43. echo        │        SRC/DEST                                    │
  44. echo        │  Install A C   --  from diskette A to hard disk C  │
  45. echo        │  Install A D   --  from diskette A to hard disk D  │
  46. echo        │  Install B C   --  from diskette B to hard disk C  │
  47. echo        │  Install B D   --  from diskette B to hard disk D  │
  48. echo        └────────────────────────────────────────────────────┘
  49. echo 
  50. echo 
  51. echo 
  52. goto ENDBAT
  53. :start
  54. cls
  55. if not exist %1:install.bat goto failed
  56. echo 
  57. echo             Creating %2:\PWSDEMO subdirectory....                     
  58. echo 
  59. MKDIR %2:\pwsdemo
  60. copy %1:install.bat %2:\pwsdemo
  61. %2:
  62. CD\PWSDEMO
  63. if not exist %2:\pwsdemo\install.bat goto failed
  64. install %1 %2 X
  65. :contins
  66. echo                                                                       
  67. echo             Copying main program archive to hard disk...
  68. echo                                                                       
  69. copy %1:pwsmake.exe
  70. copy %1:pwsread.doc
  71. if not exist %1:pwshelp.exe echo            Please put PATTERNLAND PREVIEW HELP DISK in Drive %1.
  72. echo                                                                       
  73. if not exist %1:pwshelp.exe pause
  74. if not exist %1:pwshelp.exe goto nohelp
  75. echo                                                                       
  76. echo             Copying help archive to hard disk...
  77. echo                                                                       
  78. copy %1:pwshelp.exe
  79. :nohelp
  80. :makepws
  81. cls
  82. echo 
  83. echo             Now expanding the main program archive...
  84. echo 
  85. pwsmake
  86. cls
  87. echo 
  88. if exist pwshelp.exe echo             Now expanding the help files archive... 
  89. echo 
  90. if exist pwshelp.exe pwshelp
  91. if not exist pwsdemo.exe goto failed
  92. if not exist pwsdemo.ovr goto failed
  93. CLS
  94. echo      
  95. echo           ╔═══════════════════════════════════════════════════════╗
  96. echo           ║                                                       ║
  97. echo           ║         PATTERNLAND PREVIEW EDITION INSTALLED!        ║
  98. echo           ║                                                       ║
  99. echo           ║  The PREVIEW DEMO1 will run when you press any key.   ║
  100. echo           ║                                                       ║
  101. echo           ╚═══════════════════════════════════════════════════════╝
  102. echo      
  103. echo      
  104. pause
  105. PWSDEMO demo1/m
  106. cls
  107. echo           ╔═══════════════════════════════════════════════════════╗
  108. echo           ║                                                       ║
  109. echo           ║      WE HOPE YOU ENJOYED PREVIEWING PATTERNLAND.      ║
  110. echo           ║                                                       ║
  111. echo           ║  From now on, type DEMO from the \PWSDEMO directory   ║
  112. echo           ║  to run the demo in standard mode.                    ║
  113. echo           ║                                                       ║
  114. echo           ║  Type DEMOTUT from the \PWSDEMO directory to run the  ║
  115. echo           ║  demo in tutorial mode.                               ║
  116. echo           ║                                                       ║
  117. echo           ║  Type PWSDEMO from the \PWSDEMO directory to run the  ║
  118. echo           ║  Patternland Preview Edition without the demo.        ║
  119. echo           ║                                                       ║
  120. echo           ║      Type ORDER at the DOS prompt to print an         ║
  121. echo           ║      order form to buy the program.                   ║
  122. echo           ║                                                       ║
  123. echo           ║      THANK YOU FOR YOUR INTEREST IN PATTERNLAND!      ║
  124. echo           ║                                                       ║
  125. echo           ╚═══════════════════════════════════════════════════════╝
  126. pause
  127. cls
  128. echo           ╔═══════════════════════════════════════════════════════╗
  129. echo           ║                                                       ║
  130. echo           ║  Install will now DELETE the original PREVIEW archive ║
  131. echo           ║  files from your hard disk to conserve space.  These  ║
  132. echo           ║  files are no longer needed now that the demo has     ║
  133. echo           ║  been installed.  However, if you got the demo from   ║
  134. echo           ║  a friend or a bulletin board and do NOT have these   ║
  135. echo           ║  files on diskette or another directory of your hard  ║
  136. echo           ║  disk, press CTRL C to CANCEL DELETE.                 ║
  137. echo           ║                                                       ║
  138. echo           ╚═══════════════════════════════════════════════════════╝
  139. echo 
  140. pause
  141. del %2:pwsmake.exe
  142. del %2:pwshelp.exe
  143. echo             You can also delete "Install.bat" from the hard drive
  144. echo             to conserve an additional 9K.
  145. GOTO ENDBAT
  146. :failed
  147. CLS
  148. echo      
  149. echo           ╔═══════════════════════════════════════════════════════╗
  150. echo           ║                                                       ║
  151. echo           ║    RATS!  PATTERNLAND PREVIEW INSTALLATION FAILED.    ║
  152. echo           ║                                                       ║
  153. echo           ║  Please check that you have 2,000,000 bytes available ║
  154. echo           ║  on your hard drive.                                  ║
  155. echo           ║                                                       ║
  156. echo           ║  Also make sure you typed the correct drive letters.  ║
  157. echo           ║                                                       ║
  158. echo           ║  Please try again.                                    ║
  159. echo           ║                                                       ║
  160. echo           ║  If you still have problems, contact Maple Hill       ║
  161. echo           ║  Software for assistance:  (802) 454-8311.            ║
  162. echo           ║                                                       ║
  163. echo           ╚═══════════════════════════════════════════════════════╝
  164. echo      
  165. :ENDBAT
  166.  
  167.