home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / utils / automen.zip / INSTALL.MDF < prev    next >
Text File  |  1990-10-23  |  15KB  |  603 lines

  1. .                 Filename - INSTALL.MDF
  2. ..............................................................
  3. .    The  Automenu(R)  Automatic  Installation  Facility
  4. .          07/09/90 - Version 4.7 of INSTALL.MDF
  5. .              Written by Marshall W. Magee
  6. .              Revised by Randal A. DePriest
  7. ..............................................................
  8. .
  9. %Automenu(R) Version 4.7 Installation Menu
  10. *Install Automenu Version 4.7 on a Hard Disk
  11. .
  12. ?>>>>>  Press 1 to Begin the Install Process  <<<<<
  13. .
  14. .  We will comment the actions taken in this MDF with lines beginning with
  15. .  a period {.}.  AUTOMENU ignores these lines and allows the placement of
  16. .  "documentation" within the file.
  17. .
  18. >Automenu will now begin asking the series of questions that will enable it
  19. >to install Automenu the way you want it on your system.
  20. >
  21. >To make a selection, move the [Right Arrow] or [Left Arrow] keys to highlight
  22. >your choice, then press ENTER.  Once a selection is made, Automenu continues
  23. >to the next question.
  24. >
  25. >At times during the installation procedure, the answer you provided for a
  26. >previous question becomes a part of the current question.
  27. >
  28. >AT ANY TIME DURING THE SELECTION PROCESS, YOU MAY PRESS THE [ESC] KEY TO
  29. >QUIT AND RETURN TO THE AUTOMENU INSTALLATION MENU, where you may start again
  30. >or quit.
  31. >
  32. >At the end of the selection process, Automenu will redisplay your choices.
  33. >This allows you a final opportunity to accept the choices you made and begin
  34. >the actual installation process.  At this time, you may reject the choices you
  35. >made.  If you reject your choices, no installation occurs and you are returned
  36. >to the Automenu Installation Menu.
  37. >
  38. >
  39. >Now select the drive to which you wish Automenu copied.
  40. >
  41. <C:,D:,E:,F:,G:,H:,I:,J:,K:,L:,M:,N:
  42. .
  43. .  This value will be assigned to %1
  44. .
  45. >
  46. >
  47. >
  48. >
  49. >
  50. >
  51. >
  52. >
  53. >
  54. >
  55. >
  56. >
  57. >
  58. >
  59. >
  60. >
  61. >
  62. >
  63. >
  64. >
  65. >
  66. >
  67. >
  68. >Please select the sub-directory name on Drive %1 to which you want Automenu
  69. >copied.
  70. >
  71. <\AUTOMENU,\PUBLIC,\,\BIN,\DOS
  72. .
  73. .  This value will be assigned to %2
  74. .
  75. >
  76. >
  77. >
  78. >
  79. >
  80. >
  81. >
  82. >
  83. >
  84. >
  85. >
  86. >
  87. >
  88. >
  89. >
  90. >
  91. >
  92. >
  93. >
  94. >
  95. >
  96. >
  97. >
  98. >In order for Automenu to gain access to the external DOS commands, it needs
  99. >to know the drive and subdirectory that contains such external DOS commands as
  100. >CHKDSK, FORMAT, BACKUP, EDLIN, etc.
  101. >
  102. >From the choices below, please choose the DRIVE where the DOS
  103. >commands are located.
  104. >
  105. >Select from the available drives below with the cursor keys,
  106. >Then Press ENTER:
  107. >
  108. >
  109. >
  110. <C:,D:,E:,F:,G:,H:,I:,J:,K:,L:,M:,N:
  111. .
  112. .  This value will be assigned to %3
  113. .
  114. >
  115. >
  116. >
  117. >
  118. >
  119. >
  120. >
  121. >
  122. >
  123. >
  124. >
  125. >
  126. >
  127. >
  128. >
  129. >
  130. >
  131. >
  132. >
  133. >
  134. >
  135. >
  136. >In which Subdirectory are the DOS commands located?
  137. >
  138. >Please input the entire path to the DOS commands on the dotted line below.
  139. >Don't forget to include the "backslash" (i.e., \DOS or \USER\DOS, etc.).
  140. >
  141. >
  142. >
  143. <
  144. .
  145. .  This value will be assigned to %4
  146. .
  147. >
  148. >
  149. >
  150. >
  151. >
  152. >
  153. >
  154. >
  155. >
  156. >
  157. >
  158. >
  159. >
  160. >
  161. >
  162. >
  163. >
  164. >
  165. >
  166. >
  167. >
  168. >Does your present AUTOEXEC.BAT file set your PATH
  169. >to %3%4
  170. >(If you are not sure, respond NO and Automenu will reset the PATH for you.)
  171. >
  172. >
  173. >
  174. <YES,NO
  175. .
  176. .  This value will be assigned to %5
  177. .
  178. >
  179. >
  180. >
  181. >
  182. >
  183. >
  184. >
  185. >
  186. >
  187. >
  188. >
  189. >
  190. >
  191. >
  192. >
  193. >
  194. >
  195. >
  196. >
  197. >
  198. >
  199. >
  200. >
  201. >Automenu can automatically display a menu when your system is turned on.  This
  202. >would require placing the command "AUTO" at the end of AUTOEXEC.BAT.  If you
  203. >answer YES, any existing AUTOEXEC.BAT will be copied to AUTOEXEC.BAK and
  204. >Automenu will append the command "AUTO" to AUTOEXEC.BAT.
  205. >
  206. >Do you wish Automenu to come up each time your system is turned on?
  207. >
  208. >
  209. >
  210. <YES,NO
  211. .
  212. .  This value will be assigned to %6
  213. .
  214. >
  215. >
  216. >
  217. >
  218. >
  219. >
  220. >
  221. >
  222. >
  223. >
  224. >
  225. >
  226. >
  227. >
  228. >
  229. >
  230. >
  231. >
  232. >
  233. >
  234. >
  235. >
  236. >We'll also need to know the DRIVE from which you are installing AUTOMENU.
  237. >The default is A:, but if it is different, move the highlight bar to that
  238. >Drive letter and press RETURN.
  239. >
  240. >
  241. >
  242. <A:,B:,C:,D:,E:,F:
  243. .
  244. .  This value will be assigned to %7
  245. .
  246. >
  247. >
  248. >
  249. >
  250. >
  251. >
  252. >
  253. >
  254. >
  255. >
  256. >
  257. >
  258. >
  259. >
  260. >
  261. >
  262. >
  263. >
  264. >
  265. >
  266. >
  267. >
  268. >
  269. >
  270. >
  271. >
  272. >
  273. >
  274. >
  275. .  The following screen will ask for verification of all the parameters
  276. .  you have selected for installation.  If they are incorrect, pressing
  277. .  the ESCape key will return to the Menu.
  278. .
  279. >
  280. >╔══════════════════════════════════════════════════════════════════════════╗
  281. >║  Please check the answers you have provided.  If they are correct, then  ║
  282. >║  select YES to continue the installation; otherwise, select NO and you   ║
  283. >║  will be returned to the Automenu Installation Menu where you may begin  ║
  284. >║  again or quit.  NO INSTALLATION takes place if you select NO.           ║
  285. >╚══════════════════════════════════════════════════════════════════════════╝
  286. >
  287. >
  288. >         Automenu system files are to be copied to:     %1%2
  289. >
  290. >         DOS files are contained in:                    %3%4
  291. >
  292. >         Is the PATH to the DOS directory defined?:     %5
  293. >
  294. >         Is Automenu to come up automatically?:         %6
  295. >
  296. >         Automenu is being installed from DRIVE:        %7\
  297. >
  298. >────────────────────────────────────────────────────────────────────────────
  299. >
  300. >            DO YOU WANT TO PROCEED WITH THE INSTALLATION?
  301. >              (Press ESCape to Abort this Installation)
  302. >
  303. <YES,NO
  304. .
  305. .                This last parameter will be assigned to %8
  306. .
  307. .  Now begin the actual installation process.  Use the NON-RESIDENT {+}
  308. .  command - this terminates AUTOMENU while executing the Autotemp.BAT file.
  309. .  We will restart it with a " +AUTO " command just before the second menu
  310. .  selection is defined.
  311. .
  312. +ECHO OFF
  313. +CLS
  314. +IF %8==NO GOTO END
  315. .
  316. .  Turn Echo OFF, Clear the Screen, then check to see if the user selected
  317. .  "YES" as the last response.
  318. .
  319. .  If so, then continue, otherwise go to the "END" label in the batch file
  320. .
  321. +ECHO Installing AUTOMENU System files to: %1%2
  322. +IF %2==\ GOTO L001
  323. .
  324. .  If installing to the root directory, skip the next instruction
  325. .
  326. +MKDIR %1%2
  327. .
  328. .  Create a directory on Drive "%1" by the name of "%2"
  329. .
  330. +:L001
  331. +%1
  332. +CD %2
  333. .
  334. .  Log to Drive %1, then change directories to %2 (the AUTOMENU place!)
  335. .
  336. +ECHO .
  337. +ECHO Building AUTO.BAT ...
  338. +ECHO ECHO OFF>AUTO.BAT
  339. .
  340. .  Create a new AUTO.BAT file by ECHOing to it.
  341. .
  342. +ECHO %1>>AUTO.BAT
  343. .
  344. .  Place the name of the drive to log to when running AUTOMENU.
  345. .
  346. +ECHO CD %2>>AUTO.BAT
  347. .
  348. .  Change directories to the AUTOMENU subdirectory.
  349. .
  350. +COPY AUTO.BAT+%7\INSTALL.DAT AUTO.BAT >NUL
  351. .
  352. .  Copy the INSTALL.DAT data file, along with the above, to AUTO.BAT.
  353. .
  354. +COPY AUTO.BAT %3%4 >NUL
  355. .
  356. .  Copy AUTO.BAT to the DOS directory.
  357. .
  358. +COPY AUTO.BAT %1\ >NUL
  359. .
  360. .  Copy AUTO.BAT to the root directory.
  361. .
  362. +ECHO .
  363. +ECHO Copying Automenu Program Files ...
  364. +ECHO .
  365. .
  366. .  Now copy all the important files from the distribution disk
  367. .
  368. +COPY %7\AUTOMENU.COM >NUL
  369. +COPY %7\AUTOCUST.COM >NUL
  370. +COPY %7\AUTOMAKE.EXE >NUL
  371. +COPY %7\AUTOMAKE.CSH >NUL
  372. +COPY %7\DOS.MDF >NUL
  373. +COPY %7\*.DOC >NUL
  374. +COPY %7\BATCH.MDF >NUL
  375. +COPY %7\NETEXAMP.MDF >NUL
  376. +COPY %7\INSTALL.MDF >NUL
  377. +COPY %7\ENTER.MDF >NUL
  378. +COPY %7\PRINTDOC.BAT >NUL
  379. +COPY %7\CRLF.INP >NUL
  380. +COPY %7\READ.ME >NUL
  381. +ECHO .
  382. +ECHO Program Files Copied ...
  383. +ECHO .
  384. +ECHO Building AUTOMENU.MDF ...
  385. +ECHO .
  386. .
  387. .  Create a new AUTOMENU.MDF from scratch by ECHOing it to a file
  388. .  one instruction at a time.
  389. .
  390. .  This can be done from the DOS prompt by typing
  391. .
  392. .  ECHO Any Message > DEVICE
  393. .
  394. .
  395. .  where "Any Message" is text to be used, the > (greater than) symbol
  396. .  means TO and DEVICE is the screen, printer, or a filename.
  397. .
  398. .  We are ECHOing our text to FILES called AUTO.BAT, AUTOMENU.MDF,
  399. .  and AUTOEXEC.BAT.
  400. .
  401. .  For more details on ECHOing text to a file, see your DOS Reference Manual.
  402. .
  403. .  First, we'll insert some comment lines to document the MDF.
  404. .
  405. +ECHO .>AUTOMENU.MDF
  406. .
  407. .  Notice how we are ECHOing a period {.} TO a filename called AUTOMENU.MDF.
  408. .
  409. +ECHO .AUTOMENU Menu Definition File>>AUTOMENU.MDF
  410. .
  411. .  The first time we used a single ">", but to ADD to that existing
  412. .  file we will use the APPEND function by specifying a double ">" (>>)
  413. .
  414. +ECHO .>>AUTOMENU.MDF
  415. +ECHO .By Marshall W. Magee>>AUTOMENU.MDF
  416. +ECHO .................................................>>AUTOMENU.MDF
  417. .
  418. .  Now create the title line of the MDF.
  419. .
  420. +ECHO %%Automenu(R) Application Menu>>AUTOMENU.MDF
  421. +ECHO .................................................>>AUTOMENU.MDF
  422. .
  423. .  Now create the first menu selection to appear on the screen.
  424. .
  425. .  First, the selection symbol {*} is used.
  426. .
  427. +ECHO *Automenu Menu-Building Facility>>AUTOMENU.MDF
  428. .
  429. .  Now create a prompt that will appear when this selection is highlighted.
  430. .
  431. +ECHO ?Select to Use the AUTOMAKE Menu Editor>>AUTOMENU.MDF
  432. .
  433. .  Now add the actual DOS commands that will perform the desired functions.
  434. .  In this case, run the menu editor AUTOMAKE.
  435. .
  436. +ECHO +AUTOMAKE>>AUTOMENU.MDF
  437. .
  438. .  After AUTOMAKE completes, restart AUTOMENU by typing "AUTO".
  439. .
  440. +ECHO +AUTO>>AUTOMENU.MDF
  441. +ECHO .................................................>>AUTOMENU.MDF
  442. .
  443. .  For the second menu selection...
  444. .
  445. +ECHO *Automenu Customization Utility>>AUTOMENU.MDF
  446. +ECHO ?Select to Use the AUTOCUST Utility>>AUTOMENU.MDF
  447. .
  448. .  Run the customization program to configure AUTOMENU the way you like it!
  449. .
  450. +ECHO +AUTOCUST>>AUTOMENU.MDF
  451. .
  452. .  And then restart AUTOMENU.
  453. .
  454. +ECHO +AUTO>>AUTOMENU.MDF
  455. +ECHO .................................................>>AUTOMENU.MDF
  456. .
  457. +ECHO *Treeview>>AUTOMENU.MDF
  458. +ECHO ?Run MAGEE's File Management Utility>>AUTOMENU.MDF
  459. +ECHO +ECHO Place the command TV here to execute Treeview>>AUTOMENU.MDF
  460. +ECHO +ECHO If you don't have Treeview, order it today!>>AUTOMENU.MDF
  461. +ECHO +ECHO Call Magee Enterprises, Inc. at 1-800-662-4330>>AUTOMENU.MDF
  462. +ECHO +PAUSE>>AUTOMENU.MDF
  463. +ECHO +AUTO>>AUTOMENU.MDF
  464. +ECHO .>>AUTOMENU.MDF
  465. +ECHO *Basic>>AUTOMENU.MDF
  466. +ECHO ?Run BASIC directly>>AUTOMENU.MDF
  467. .
  468. .  The following command will execute a SINGLE command, then return
  469. .  to AUTOMENU without a pause.
  470. .
  471. +ECHO -basica>>AUTOMENU.MDF
  472. +ECHO .................................................>>AUTOMENU.MDF
  473. +ECHO *DOS Command Menu>>AUTOMENU.MDF
  474. +ECHO ?This menu contains commonly used DOS commands>>AUTOMENU.MDF
  475. .
  476. .  The following command will load another MDF.
  477. .
  478. +ECHO @DOS.MDF>>AUTOMENU.MDF
  479. +ECHO .................................................>>AUTOMENU.MDF
  480. +ECHO *Batch Command Menu>>AUTOMENU.MDF
  481. +ECHO ?This menu contains some special commands>>AUTOMENU.MDF
  482. +ECHO @BATCH.MDF>>AUTOMENU.MDF
  483. +ECHO .................................................>>AUTOMENU.MDF
  484. +ECHO *Exit  to  DOS>>AUTOMENU.MDF
  485. +ECHO ?Return to Disk Operating System>>AUTOMENU.MDF
  486. +ECHO +ECHO ┌─────────────────────────────────┐>>AUTOMENU.MDF
  487. +ECHO +ECHO │▓▓▒▒░░  Exiting  to  DOS   ░░▒▒▓▓│>>AUTOMENU.MDF
  488. +ECHO +ECHO ├─────────────────────────────────┤>>AUTOMENU.MDF
  489. +ECHO +ECHO ├─────────────────────────────────┤>>AUTOMENU.MDF
  490. +ECHO +ECHO │  Please  Enter   »»»  AUTO  ««« │>>AUTOMENU.MDF
  491. +ECHO +ECHO │      To Return to Automenu      │>>AUTOMENU.MDF
  492. +ECHO +ECHO ├─────────────────────────────────┤>>AUTOMENU.MDF
  493. +ECHO +ECHO └─────────────────────────────────┘>>AUTOMENU.MDF
  494. .
  495. .  The above commands print a small box on-screen reminding you
  496. .  that you are in DOS.
  497. .
  498. +ECHO ...................................................>>AUTOMENU.MDF
  499. +ECHO .------------------------------>>AUTOMENU.MDF
  500. +ECHO .Define another sub-menu>>AUTOMENU.MDF
  501. +ECHO .------------------------------>>AUTOMENU.MDF
  502. +ECHO ................................................>>AUTOMENU.MDF
  503. .
  504. .  ********   Now for PAGE TWO   ********
  505. .
  506. +ECHO .The following line is the start of Page 2>>AUTOMENU.MDF
  507. +ECHO %%Automenu(R) ***** Example Second Menu *****>>AUTOMENU.MDF
  508. +ECHO .These are examples ONLY - Programs NOT Included>>AUTOMENU.MDF
  509. +ECHO *Chess>>AUTOMENU.MDF
  510. +ECHO ?Play the game of Chess>>AUTOMENU.MDF
  511. .
  512. . The next line will use the {=} command to execute a single DOS instruction
  513. . and then PAUSING before returning to AUTOMENU.
  514. .
  515. +ECHO =ECHO No GAMES are included. Example only.>>AUTOMENU.MDF
  516. +ECHO .................................................>>AUTOMENU.MDF
  517. +ECHO *Backgammon>>AUTOMENU.MDF
  518. +ECHO =ECHO No GAMES are included. Example only.>>AUTOMENU.MDF
  519. +ECHO #End of AUTOMENU.MDF Menu Definition File>>AUTOMENU.MDF
  520. +COPY AUTOMENU.MDF+NUL:/A >NUL
  521. +ECHO Checking AUTOEXEC.BAT ...
  522. .
  523. .  Change directories to the ROOT of the drive on which AUTOMENU is being
  524. .  copied.
  525. .
  526. +CD \
  527. +IF %6==NO GOTO DONE
  528. .
  529. .  If you don't want AUTOMENU to come up at boot time, go to the DONE label.
  530. .
  531. +ECHO Adjusting AUTOEXEC.BAT so that AUTOMENU will startup automatically.
  532. +IF NOT EXIST AUTOEXEC.BAT GOTO MAKE
  533. +COPY AUTOEXEC.BAT AUTOEXEC.BAK >NUL
  534. +ERASE AUTOEXEC.BAT >NUL
  535. +COPY AUTOEXEC.BAK/A AUTOEXEC.BAT/B >NUL
  536. +IF %5==NO ECHO PATH %3%4>>AUTOEXEC.BAT
  537. +ECHO AUTO>>%1\AUTOEXEC.BAT
  538. +GOTO DONE
  539. +:MAKE
  540. +ECHO Building AUTOEXEC.BAT from start ...
  541. +ECHO ECHO OFF>%1\AUTOEXEC.BAT
  542. +ECHO CLS>>%1\AUTOEXEC.BAT
  543. +ECHO ECHO .>>%1\AUTOEXEC.BAT
  544. +ECHO DATE>>%1\AUTOEXEC.BAT
  545. +ECHO TIME>>%1\AUTOEXEC.BAT
  546. +ECHO PATH %3%4>>%1\AUTOEXEC.BAT
  547. +ECHO PROMPT $P$G>>%1\AUTOEXEC.BAT
  548. +ECHO AUTO>>%1\AUTOEXEC.BAT
  549. +:DONE
  550. +ECHO Automenu is finished installing the Automenu system files to your disk.
  551. +IF %6==NO GOTO DONE1
  552. +ECHO Your System will now display the menu automatically if you restart your
  553. +ECHO system.  Remove the Automenu Diskette and Press [CTRL]-[ALT]-[DEL].
  554. +ECHO .
  555. +GOTO END
  556. +:DONE1
  557. +ECHO Your Automenu system is now ready for you by entering the command "AUTO"
  558. +ECHO at the %1 prompt.
  559. +ECHO .
  560. +ECHO Be sure to take a look at the READ.ME file on the Automenu distribution
  561. +ECHO disk for information on any last minute changes that didn't make it into
  562. +ECHO the manual.
  563. +ECHO .
  564. +:END
  565. +ECHO Now, to exit from the installation procedure, just
  566. +PAUSE
  567. .
  568. .
  569. .  Because we used the NON-RESIDENT {+} commands, we must issue an instruction
  570. .  to re-start AUTOMENU.  We do this with the " +AUTO " command.  We can also
  571. .  specify the name of a Menu Definition File to use by following the "AUTO"
  572. .  command with the name of the menu file - in this case we want to return to
  573. .  to the INSTALL.MDF menu.  Note that the name of the file must be
  574. .  completely spelled out, including the ".MDF" extension.
  575. .
  576. +auto install.mdf
  577. .
  578. .  Finally, we MUST always include an option to return to DOS.
  579. .  This will terminate AUTOMENU and display a message on the screen.
  580. .
  581. *Return to Disk Operating System
  582. ?Select to Exit INSTALL and Return to DOS
  583. +ECHO Be sure to take a look at the READ.ME file on the Automenu distribution
  584. +ECHO disk for information on any last minute changes that didn't make it into
  585. +ECHO the manual.
  586. +ECHO .
  587. +ECHO If you Installed Automenu, remove the program disk from the disk drive
  588. +ECHO and store it in a safe place.
  589. +ECHO Press [Ctrl]-[Alt]-[Del] to restart your system with Automenu.
  590. +ECHO .
  591. +ECHO .
  592. +ECHO           Type "AUTO" to Return to Automenu
  593. +ECHO .
  594. +ECHO .
  595. +ECHO .
  596. +ECHO .
  597. +ECHO .
  598. .
  599. .  Installation File for Automenu
  600. .
  601. #End of INSTALL.MDF Menu Definition File
  602. 
  603.