home *** CD-ROM | disk | FTP | other *** search
/ Boink! 1995 May/June / Image.bin / spiele / brettspi / halma / install.fil < prev    next >
Text File  |  1994-04-01  |  7KB  |  328 lines

  1. ' CHINESE CHECKERS  DOS / WINDOWS Installation Script
  2. ' Copyright 1994, ImagiSOFT, Inc.
  3. ' Version 2.2
  4. ' April 1, 1994
  5.  
  6. ' Note:  This installation script is written for THE FINISHING TOUCH, a
  7. '        professional installation program which is also an ImagiSOFT
  8. '        product.  It is distributed with CHINESE CHECKERS to make
  9. '        installation easier, and to reduce our support calls.
  10.  
  11. '        This script unpacks 2 compressed files (*.PAK) which is a
  12. '        major feature of the program.  For more information about
  13. '        THE FINISHING TOUCH, call ImagiSOFT at (505) 275-1920, or call
  14. '        our personal BBS number with your modem at (505) 275-9697.
  15. '        It will always have the latest shareware version of
  16. '        THE FINISHING TOUCH so you can "try before you buy".
  17.  
  18. BACKGROUND ~0\INSTALL.BIN
  19. TELESCOPE OFF
  20.  
  21. LANGUAGE ENGLISH      ' supports GERMAN, FRENCH, SPANISH, DANISH, and DUTCH
  22.  
  23. BORDER 1
  24. TELESCOPE ON
  25. SHADOW OFF
  26.  
  27. PAUSE 300              ' display screen for 3 seconds
  28.  
  29. CALL NO_VGA           ' test for vga+ monitor
  30.  
  31. MOUSE 0.0              ' mouse is required
  32. JUMP.NO NO_MOUSE
  33.  
  34. FREE 400              ' if they don't have 400K free, forget it
  35. JUMP.NO NO_SPACE
  36.  
  37. ' display opening menu
  38. :OPENING
  39.  
  40. WINOPEN 0 4 31
  41. "        INSTALLATION OPTIONS MENU"
  42. ""
  43. "1.  Install as Microsoft Windows 3.1 Application"
  44. "2.  Install as DOS Application"
  45. "3.  QUIT"
  46. ""
  47. "SELECT ONE OF THE ABOVE:    "
  48.  
  49. WINUPDATE +10 +1 30
  50. "INSTALLATION OPTIONS MENU"
  51. INPUT A 1 +28 +7 15
  52. WINCLOSE
  53.  
  54. CALL TEMP_FILE
  55.  
  56. EXIST ~3\1.TMP
  57. JUMP.YES WINDOWS_APP
  58.  
  59. EXIST ~3\2.TMP
  60. JUMP.YES DOS_APP
  61.  
  62. EXIST ~3\3.TMP
  63. JUMP.YES EXIT
  64.  
  65. BEEP
  66. CALL TMP_DEL
  67. JUMP OPENING
  68.  
  69. ' ------------------------
  70. '   install as a dos app
  71. ' ------------------------
  72. :DOS_APP
  73. CALL TMP_DEL
  74.  
  75. ' have user set the drive
  76. CALL ESC
  77. DRIVE C 0 12 31 15 32 14 79
  78. WINCLOSE
  79.  
  80. ' have user set the path
  81. CALL ESC
  82. PATH \CHINESE 0 12 31 15 32 14 79
  83. WINCLOSE
  84.  
  85. CALL EMPTY_DIR
  86. CALL UNPACK
  87.  
  88. ' create color wizard batch file
  89. PROMPT OFF
  90. DELETE ~1\CHINESE.BAT 0 0 0
  91. PROMPT ON
  92. FILE ~1\CHINESE.BAT
  93. "~1"
  94. "cd ~2"
  95. "CHINESE"
  96. "cd \"
  97.  
  98. WINOPEN 0 4 31
  99. "CHINESE CHECKERS has been successfully installed."
  100. ""
  101. "     To run it, enter the command"
  102. "     from the root directory of drive ~1."
  103. ""
  104. ""
  105. ""
  106. ""
  107. "Press the [Enter] key to continue."
  108. WINUPDATE +36 +3 30
  109. "CHINESE"
  110. WINUPDATE +7 +6 27
  111. "THANK YOU FOR CHOOSING OUR SOFTWARE!"
  112. WAIT +36 +9
  113. WINCLOSE
  114.  
  115. :RUN
  116. WINOPEN 0 10 31
  117. "Would you like to run CHINESE CHECKERS right now   Y or N?"
  118. ASK +60 +1
  119. JUMP.NO EXIT
  120. RUN ~1\CHINESE.BAT
  121.  
  122. ' --------------------------
  123. '   install as windows app
  124. ' --------------------------
  125. :WINDOWS_APP
  126.  
  127. ' these commands set drive and path variables
  128. DRIVE C
  129. PATH \WINDOWS
  130.  
  131. :TEST_WIN
  132. EXIST ~1~2\WIN.COM
  133. JUMP.YES WIN_INSTALL
  134.  
  135. EXIST ~3\1.TMP
  136. JUMP.YES SKIP_BEEP
  137. BEEP
  138. RD ~1~2
  139. WINOPEN 0 4 79
  140. "Microsoft Windows is NOT found in the"
  141. "~1~2 directory.  Please try again."
  142. ""
  143. "Press ENTER to continue."
  144. WAIT +26 +4
  145. WINCLOSE
  146.  
  147. ' windows is in a directory other than C:\WINDOWS
  148. :SKIP_BEEP
  149. CALL TMP_DEL
  150. WINOPEN 0 4 31
  151. "To install CHINESE CHECKERS to Microsoft Windows,"
  152. "we need to know which hard drive Windows is installed on."
  153. ""
  154. "             Most people have Windows on this hard drive."
  155. "             Press ENTER if this is correct, or change to"
  156. "             the correct drive letter."
  157. "             (Press ESC to quit.)"
  158. PROMPT OFF
  159. DRIVE C +2 +3 17 14 32 14 79
  160. WINCLOSE
  161.  
  162. PROMPT ON
  163. WINOPEN 0 4 31
  164. "We also need to know the name of the directory where Microsoft"
  165. "Windows is installed.  Most people have Windows installed in"
  166. "                              this directory.  Press ENTER"
  167. "                              if this is OK, or input the name"
  168. "                              of the directory where Windows"
  169. "                              is installed."
  170. "                              (Press ESC to quit.)"
  171. PROMPT OFF
  172. PATH \WINDOWS +1 +3 17 14 32 14 79
  173. WINCLOSE
  174. PROMPT ON
  175. PROMPT OFF
  176. JUMP TEST_WIN
  177.  
  178. ' you know the windows directory, now install it
  179. :WIN_INSTALL
  180. CALL TMP_DEL
  181.  
  182. FILE ~1~2\PROGMAN.INI
  183. "Group501=~1\CHINESE\CHINESE.GRP"
  184.  
  185. PATH \CHINESE
  186. MD ~1~2
  187.  
  188. CALL EMPTY_DIR
  189.  
  190. CALL UNPACK
  191.  
  192. UNPACK WINDOWS.PAK 0 12 31 32 15 79 ' windows pif, ico, and grp files
  193. JUMP.FAIL INSTALL_FAILURE
  194.  
  195.  
  196. ' --------------------------------
  197. '  successful install to windows
  198. ' --------------------------------
  199. WINOPEN 0 4 31
  200. "CHINESE CHECKERS has been installed in your Windows environment"
  201. "in the ~1~2 directory.  However, these changes won't"
  202. "take effect until you exit Windows, then run Windows again."
  203. ""
  204. ""
  205. ""
  206. "Press ENTER to return to Windows."
  207. WINUPDATE +12 +5 27
  208. "THANK YOU FOR CHOOSING OUR SOFTWARE!"
  209. WAIT +35 +7
  210. WINCLOSE
  211. END
  212.  
  213. ' ------------------
  214. '   error messages
  215. ' ------------------
  216. :INSTALL_FAILURE
  217. BEEP
  218. WINOPEN 0 4 79
  219. "CHINESE CHECKERS INSTALLATION FAILED BEFORE IT FINISHED!!"
  220. ""
  221. "Possible reasons:"
  222. "   -- The floppy disk was damaged during shipping."
  223. "   -- Your disk drive is out of alignment."
  224. ""
  225. "You may want to delete the files in the ~1~2 directory."
  226. ""
  227. "      Press [Enter] to Quit."
  228. WAIT +30 +9
  229. WINCLOSE
  230. JUMP EXIT
  231.  
  232. ' -----------
  233. ' subroutines
  234. ' -----------
  235. :EMPTY_DIR
  236. EXIST ~1~2\*.*                 ' brand new directory
  237. JUMP.NO SKIP_DEL
  238.  
  239. EXIST ~1~2\CHINESE.EXE          ' existing chinese checkers software
  240. JUMP.YES SKIP_DEL
  241.  
  242. WINOPEN 0 4 79
  243. "The directory ~1~2 already exists and contains files!"
  244. ""
  245. "   You will have to DELETE ALL THE FILES in this"
  246. "   directory prior to installing in here."
  247. ""
  248. "Press ENTER to Continue."
  249. WAIT +25 +6
  250. WINCLOSE
  251. JUMP OPENING
  252.  
  253. :SKIP_DEL
  254. RETURN
  255.  
  256. ' unpack data files
  257. :UNPACK
  258.  
  259. SET.FILES 16
  260.  
  261. COPY ~0\READ.ME ~1\~2\READ.ME 0 12 31
  262.  
  263. WINOPEN 0 20 47
  264. " Look for fun, "hidden" features by clicking your mouse in odd places. "
  265.  
  266. UNPACK CHINESE.PAK 0 12 31 32 15 79          ' main program
  267. JUMP.FAIL INSTALL_FAILURE
  268.  
  269. WINCLOSE
  270.  
  271. RETURN
  272.  
  273. ' create a temporary file in the default directory with a unique name based on the number input by the user
  274. :TEMP_FILE
  275. FILE ~3\~A.TMP
  276. "Delete this temporary file."
  277. RETURN
  278.  
  279. ' delete temporary file created by opening menu
  280. :TMP_DEL
  281. PROMPT OFF
  282. DELETE ~3\~A.TMP 0 0 0
  283. PROMPT ON
  284. RETURN
  285.  
  286. :ESC
  287. WINOPEN 0 20 31
  288. "(Press ESC to Quit) "
  289. RETURN
  290.  
  291. :NO_VGA
  292. VIDEO VGA              ' vga monitor is required
  293. JUMP.YES SKIP_VGA
  294. WINOPEN 0 4 79
  295. "This software requires a VGA monitor to run."
  296. "It probably won't run on your computer.  Do"
  297. "you want to install it anyway        Y or N?"
  298. ASK +39 +3
  299. JUMP.YES SKIP_VGA
  300. JUMP EXIT
  301. :SKIP_VGA
  302. RETURN
  303.  
  304. :NO_MOUSE
  305. WINOPEN 0 4 79
  306. "Sorry, but this software requires a mouse to run, and"
  307. "therefore, it won't currently run on your computer. If"
  308. "you have a mouse, make sure that your mouse driver is"
  309. "loaded in AUTOEXEC.BAT or CONFIG.SYS as explained in"
  310. "the documentation which came with your mouse."
  311. ""
  312. "Press ENTER to continue."
  313. WAIT +26 +7
  314. JUMP EXIT
  315.  
  316. :NO_SPACE
  317. WINOPEN 0 4 79
  318. "This software requires at least 400 K of free"
  319. "disk space before you can can install it."
  320. ""
  321. "Press ENTER to continue."
  322. WAIT +26 +4
  323. JUMP EXIT
  324.  
  325. :EXIT
  326. CALL TMP_DEL
  327. END
  328.