home *** CD-ROM | disk | FTP | other *** search
/ Season's Greetings & Games Unlimited / UGOLD_cd2.iso / chinese / install.fil < prev    next >
Text File  |  1992-10-01  |  5KB  |  255 lines

  1. ' Chinese Checkers Shareware Installation Script
  2. ' Copyright 1992, ImagiSOFT, Inc.
  3. ' October 1, 1992
  4.  
  5. ' Note:  This installation script is written for THE FINISHING TOUCH, a
  6. '        professional installation program which is also an ImagiSOFT
  7. '        product.  It is distributed with Chinese Checkers to make installation
  8. '        easier -- especially for disk vendors.  Disk vendors may want to
  9. '        change the first window to their name instead of ImagiSOFT's name.
  10.  
  11. '        This script does not unpack compressed files which is a
  12. '        major feature of the program.  For more information about
  13. '        THE FINISHING TOUCH, call ImagiSOFT at (505) 275-1920.
  14. '        Our FAX number is (505) 275-9697.
  15.  
  16. '        You can download the shareware version from Software Creations BBS:
  17. '              (508) 368-7036  2400 - 9600 Baud, N, 8, 1  (33 lines)
  18. '        Download the file FINISH2?.ZIP.
  19.  
  20.  
  21. BACKGROUND 63
  22. TELESCOPE OFF
  23.  
  24. WINOPEN 0 2 95
  25.  
  26. ' ATTENTION VENDORS:
  27. ' Feel free to change the top two lines of this window to your message:
  28.  
  29. "             ImagiSOFT, Inc."
  30. "Where Imagination Brings Software to Life"
  31. ""
  32. ""
  33. "          Installation Program"
  34. WINUPDATE +3 +4 94
  35. "CHINESE CHECKERS SHAREWARE VERSION 2.0"
  36.  
  37. TELESCOPE ON
  38. SHADOW ON
  39. SPACE 360
  40.  
  41. :EGA_TEST
  42. VIDEO EGA
  43. JUMP.NO NO_EGA
  44.  
  45. :PROMPT
  46. DRIVE C 0 11 31 15 32 14 79
  47. PATH \CHINESE 0 11 31 15 32 14 79
  48.  
  49. EXIST ~1~2\*.*
  50. JUMP.NO UNPACK
  51.  
  52. EXIST ~1~2\CHINESE.EXE
  53. JUMP.YES UNPACK
  54.  
  55. WINOPEN 0 11 79
  56. "The directory ~1~2 already exists and contains files!"
  57. ""
  58. "   Installing Chinese Checkers in this directory will"
  59. ""
  60. "       in this directory prior to installing."
  61. ""
  62. "Are you SURE you want to install it here   Y or N?"
  63. WINUPDATE +45 +7 78
  64. "Y or N?"
  65. WINUPDATE +17 +4 78
  66. "DELETE ALL THE FILES"
  67. BEEP
  68. ASK +52 +7
  69. WINCLOSE
  70. JUMP.NO PROMPT
  71.  
  72. :UNPACK
  73. PROMPT OFF
  74. DELETE ~1~2\*.* 1 24 51
  75. PROMPT ON
  76. COPY ~0\CHINESE.* ~1~2\ 0 12 31
  77. JUMP.FAIL INSTALL_FAILURE
  78. COPY ~0\CC*.* ~1~2\ 0 12 31
  79. COPY ~0\VENDOR.DOC ~1~2\ 0 12 31
  80. COPY ~0\*.ME ~1~2\ 0 12 31
  81.  
  82. ' ---------------------------------
  83. ' should we write batch file y / n?
  84. ' ---------------------------------
  85.  
  86. WINOPEN 0 11 31
  87. "Most people prefer having a batch file created which makes"
  88. "running Chinese Checkers easier.  If you answer YES to the"
  89. "next question, we will write the file ~1\CHINESE.BAT"
  90. "so that you can run Chinese Checkers from the root directory"
  91. "by entering the simple command: CHINESE."
  92. ""
  93. "Do you want us to write this batch file for you   Y or N?"
  94. WINUPDATE +40 +3 27
  95. "~1\CHINESE.BAT"
  96. WINUPDATE +34 +5 27
  97. "CHINESE"
  98. WINUPDATE +52 +7 30
  99. "Y or N?"
  100. ASK +59 +7
  101. WINCLOSE
  102. JUMP.NO DONE2
  103.  
  104. ' ----------------
  105. ' write batch file
  106. ' ----------------
  107.  
  108. EXIST ~1\CHINESE.BAT
  109. JUMP.NO DOS_PROMPT
  110. PROMPT OFF
  111. DELETE ~1\CHINESE.BAT 1 24 51
  112. PROMPT ON
  113.  
  114. :DOS_PROMPT
  115. DOS 3.3
  116. JUMP.NO OLD_DOS
  117.  
  118. FILE ~1\CHINESE.BAT
  119. "@~1"
  120. "@cd ~2"
  121. "@chinese"
  122. "@cd \"
  123. JUMP DONE
  124.  
  125. :OLD_DOS
  126. FILE ~1\CHINESE.BAT
  127. "echo off"
  128. "~1"
  129. "cd ~2"
  130. "cls"
  131. "chinese"
  132. "cd \"
  133.  
  134.  
  135. ' -----------------------
  136. ' successfully installed!
  137. ' -----------------------
  138.  
  139. :DONE
  140.  
  141. SHADOW ON
  142. WINOPEN 0 11 31
  143. "CHINESE CHECKERS HAS BEEN SUCCESSFULLY INSTALLED."
  144. "   To run it, enter the command  CHINESE"
  145. "   from the root directory of drive ~1."
  146. ""
  147. ""
  148. ""
  149. ""
  150. "Press the [Enter] key to continue."
  151. WINUPDATE +35 +2 30
  152. "CHINESE"
  153. WINUPDATE +5 +5 27
  154. "THANK YOU FOR CHOOSING OUR SOFTWARE!"
  155. WAIT +36 +8
  156. WINCLOSE
  157. JUMP RUN_IT
  158.  
  159. ' -------------------------------------------------
  160. ' successfully installed (version 2, no batch file)
  161. ' -------------------------------------------------
  162.  
  163. :DONE2
  164.  
  165. SHADOW ON
  166. WINOPEN 0 11 31
  167. "CHINESE CHECKERS HAS BEEN SUCCESSFULLY INSTALLED."
  168. "   To run it, enter the command  CHINESE"
  169. "   from the ~1~2 directory."
  170. ""
  171. ""
  172. ""
  173. ""
  174. "Press the [Enter] key to continue."
  175. WINUPDATE +35 +2 30
  176. "CHINESE"
  177. WINUPDATE +5 +5 27
  178. "THANK YOU FOR CHOOSING OUR SOFTWARE!"
  179. WAIT +36 +8
  180. WINCLOSE
  181.  
  182. :RUN_IT
  183. WINOPEN 0 11 31
  184. "Would you like to run CHINESE CHECKERS Right Now   Y or N?"
  185. WINUPDATE +53 +1 30
  186. "Y or N?"
  187. ASK +60 +1
  188. JUMP.NO EXIT
  189.  
  190. EXIST ~1\CHINESE.BAT
  191. JUMP.NO EXE_RUN
  192. RUN ~1\CHINESE.BAT
  193. :EXE_RUN
  194. RUN ~1~2\CHINESE.EXE
  195.  
  196. :EXIT
  197.  
  198. END
  199.  
  200. :INSTALL_FAILURE
  201.  
  202. WINOPEN 0 11 79
  203.  
  204. "THE INSTALLATION PROGRAM FAILED PRIOR TO COMPLETION!"
  205. ""
  206. "Possible reasons:"
  207. "   -- The floppy disk was damaged during shipping."
  208. "   -- Your disk drive is out of alignment."
  209. "   -- The floppy disk was removed prior to completion."
  210. ""
  211. "Press [Enter] to remove incomplete program files."
  212.  
  213. WAIT +50 +8
  214.  
  215. PROMPT OFF
  216. DELETE ~1~2\*.* 0 0 31
  217. RD ~1~2
  218. DELETE ~1\CHINESE.BAT 0 0 31
  219. PROMPT ON
  220.  
  221. WINCLOSE
  222. WINCLOSE
  223.  
  224. WINOPEN 0 0 31
  225.  
  226. "PARTIALLY INSTALLED FILES ARE NOW DELETED."
  227. ""
  228. "Please try to install the software again."
  229. ""
  230. "If you get this error message again, please contact us"
  231. "and we will send you a new disk."
  232. "
  233. "     ImagiSOFT, Inc."
  234. "     Computer Games Division"
  235. "     P.O. Box 13208"
  236. "     Albuquerque, NM   87192"
  237. "     (800) 767-1978"
  238. ""
  239. "Press [Enter] to Quit."
  240.  
  241. WAIT +14 +24
  242. EXIT
  243.  
  244.  
  245. :NO_EGA
  246.  
  247. WINOPEN 0 11 79
  248.  
  249. "CHINESE CHECKERS REQUIRES AN EGA (OR BETTER) MONITOR TO RUN."
  250. "Sorry, but it won't run on your computer."
  251. ""
  252. "      Press [Enter] to Quit."
  253.  
  254. WAIT +29 +4
  255.