home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Share Gallery 1
/
share_gal_1.zip
/
share_gal_1
/
UT
/
UT035.ZIP
/
INSTALL.MDF
< prev
next >
Wrap
Text File
|
1990-10-23
|
15KB
|
603 lines
. Filename - INSTALL.MDF
..............................................................
. The Automenu(R) Automatic Installation Facility
. 07/09/90 - Version 4.7 of INSTALL.MDF
. Written by Marshall W. Magee
. Revised by Randal A. DePriest
..............................................................
.
%Automenu(R) Version 4.7 Installation Menu
*Install Automenu Version 4.7 on a Hard Disk
.
?>>>>> Press 1 to Begin the Install Process <<<<<
.
. We will comment the actions taken in this MDF with lines beginning with
. a period {.}. AUTOMENU ignores these lines and allows the placement of
. "documentation" within the file.
.
>Automenu will now begin asking the series of questions that will enable it
>to install Automenu the way you want it on your system.
>
>To make a selection, move the [Right Arrow] or [Left Arrow] keys to highlight
>your choice, then press ENTER. Once a selection is made, Automenu continues
>to the next question.
>
>At times during the installation procedure, the answer you provided for a
>previous question becomes a part of the current question.
>
>AT ANY TIME DURING THE SELECTION PROCESS, YOU MAY PRESS THE [ESC] KEY TO
>QUIT AND RETURN TO THE AUTOMENU INSTALLATION MENU, where you may start again
>or quit.
>
>At the end of the selection process, Automenu will redisplay your choices.
>This allows you a final opportunity to accept the choices you made and begin
>the actual installation process. At this time, you may reject the choices you
>made. If you reject your choices, no installation occurs and you are returned
>to the Automenu Installation Menu.
>
>
>Now select the drive to which you wish Automenu copied.
>
<C:,D:,E:,F:,G:,H:,I:,J:,K:,L:,M:,N:
.
. This value will be assigned to %1
.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>Please select the sub-directory name on Drive %1 to which you want Automenu
>copied.
>
<\AUTOMENU,\PUBLIC,\,\BIN,\DOS
.
. This value will be assigned to %2
.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>In order for Automenu to gain access to the external DOS commands, it needs
>to know the drive and subdirectory that contains such external DOS commands as
>CHKDSK, FORMAT, BACKUP, EDLIN, etc.
>
>From the choices below, please choose the DRIVE where the DOS
>commands are located.
>
>Select from the available drives below with the cursor keys,
>Then Press ENTER:
>
>
>
<C:,D:,E:,F:,G:,H:,I:,J:,K:,L:,M:,N:
.
. This value will be assigned to %3
.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>In which Subdirectory are the DOS commands located?
>
>Please input the entire path to the DOS commands on the dotted line below.
>Don't forget to include the "backslash" (i.e., \DOS or \USER\DOS, etc.).
>
>
>
<
.
. This value will be assigned to %4
.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>Does your present AUTOEXEC.BAT file set your PATH
>to %3%4
>(If you are not sure, respond NO and Automenu will reset the PATH for you.)
>
>
>
<YES,NO
.
. This value will be assigned to %5
.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>Automenu can automatically display a menu when your system is turned on. This
>would require placing the command "AUTO" at the end of AUTOEXEC.BAT. If you
>answer YES, any existing AUTOEXEC.BAT will be copied to AUTOEXEC.BAK and
>Automenu will append the command "AUTO" to AUTOEXEC.BAT.
>
>Do you wish Automenu to come up each time your system is turned on?
>
>
>
<YES,NO
.
. This value will be assigned to %6
.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>We'll also need to know the DRIVE from which you are installing AUTOMENU.
>The default is A:, but if it is different, move the highlight bar to that
>Drive letter and press RETURN.
>
>
>
<A:,B:,C:,D:,E:,F:
.
. This value will be assigned to %7
.
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
. The following screen will ask for verification of all the parameters
. you have selected for installation. If they are incorrect, pressing
. the ESCape key will return to the Menu.
.
>
>╔══════════════════════════════════════════════════════════════════════════╗
>║ Please check the answers you have provided. If they are correct, then ║
>║ select YES to continue the installation; otherwise, select NO and you ║
>║ will be returned to the Automenu Installation Menu where you may begin ║
>║ again or quit. NO INSTALLATION takes place if you select NO. ║
>╚══════════════════════════════════════════════════════════════════════════╝
>
>
> Automenu system files are to be copied to: %1%2
>
> DOS files are contained in: %3%4
>
> Is the PATH to the DOS directory defined?: %5
>
> Is Automenu to come up automatically?: %6
>
> Automenu is being installed from DRIVE: %7\
>
>────────────────────────────────────────────────────────────────────────────
>
> DO YOU WANT TO PROCEED WITH THE INSTALLATION?
> (Press ESCape to Abort this Installation)
>
<YES,NO
.
. This last parameter will be assigned to %8
.
. Now begin the actual installation process. Use the NON-RESIDENT {+}
. command - this terminates AUTOMENU while executing the Autotemp.BAT file.
. We will restart it with a " +AUTO " command just before the second menu
. selection is defined.
.
+ECHO OFF
+CLS
+IF %8==NO GOTO END
.
. Turn Echo OFF, Clear the Screen, then check to see if the user selected
. "YES" as the last response.
.
. If so, then continue, otherwise go to the "END" label in the batch file
.
+ECHO Installing AUTOMENU System files to: %1%2
+IF %2==\ GOTO L001
.
. If installing to the root directory, skip the next instruction
.
+MKDIR %1%2
.
. Create a directory on Drive "%1" by the name of "%2"
.
+:L001
+%1
+CD %2
.
. Log to Drive %1, then change directories to %2 (the AUTOMENU place!)
.
+ECHO .
+ECHO Building AUTO.BAT ...
+ECHO ECHO OFF>AUTO.BAT
.
. Create a new AUTO.BAT file by ECHOing to it.
.
+ECHO %1>>AUTO.BAT
.
. Place the name of the drive to log to when running AUTOMENU.
.
+ECHO CD %2>>AUTO.BAT
.
. Change directories to the AUTOMENU subdirectory.
.
+COPY AUTO.BAT+%7\INSTALL.DAT AUTO.BAT >NUL
.
. Copy the INSTALL.DAT data file, along with the above, to AUTO.BAT.
.
+COPY AUTO.BAT %3%4 >NUL
.
. Copy AUTO.BAT to the DOS directory.
.
+COPY AUTO.BAT %1\ >NUL
.
. Copy AUTO.BAT to the root directory.
.
+ECHO .
+ECHO Copying Automenu Program Files ...
+ECHO .
.
. Now copy all the important files from the distribution disk
.
+COPY %7\AUTOMENU.COM >NUL
+COPY %7\AUTOCUST.COM >NUL
+COPY %7\AUTOMAKE.EXE >NUL
+COPY %7\AUTOMAKE.CSH >NUL
+COPY %7\DOS.MDF >NUL
+COPY %7\*.DOC >NUL
+COPY %7\BATCH.MDF >NUL
+COPY %7\NETEXAMP.MDF >NUL
+COPY %7\INSTALL.MDF >NUL
+COPY %7\ENTER.MDF >NUL
+COPY %7\PRINTDOC.BAT >NUL
+COPY %7\CRLF.INP >NUL
+COPY %7\READ.ME >NUL
+ECHO .
+ECHO Program Files Copied ...
+ECHO .
+ECHO Building AUTOMENU.MDF ...
+ECHO .
.
. Create a new AUTOMENU.MDF from scratch by ECHOing it to a file
. one instruction at a time.
.
. This can be done from the DOS prompt by typing
.
. ECHO Any Message > DEVICE
.
.
. where "Any Message" is text to be used, the > (greater than) symbol
. means TO and DEVICE is the screen, printer, or a filename.
.
. We are ECHOing our text to FILES called AUTO.BAT, AUTOMENU.MDF,
. and AUTOEXEC.BAT.
.
. For more details on ECHOing text to a file, see your DOS Reference Manual.
.
. First, we'll insert some comment lines to document the MDF.
.
+ECHO .>AUTOMENU.MDF
.
. Notice how we are ECHOing a period {.} TO a filename called AUTOMENU.MDF.
.
+ECHO .AUTOMENU Menu Definition File>>AUTOMENU.MDF
.
. The first time we used a single ">", but to ADD to that existing
. file we will use the APPEND function by specifying a double ">" (>>)
.
+ECHO .>>AUTOMENU.MDF
+ECHO .By Marshall W. Magee>>AUTOMENU.MDF
+ECHO .................................................>>AUTOMENU.MDF
.
. Now create the title line of the MDF.
.
+ECHO %%Automenu(R) Application Menu>>AUTOMENU.MDF
+ECHO .................................................>>AUTOMENU.MDF
.
. Now create the first menu selection to appear on the screen.
.
. First, the selection symbol {*} is used.
.
+ECHO *Automenu Menu-Building Facility>>AUTOMENU.MDF
.
. Now create a prompt that will appear when this selection is highlighted.
.
+ECHO ?Select to Use the AUTOMAKE Menu Editor>>AUTOMENU.MDF
.
. Now add the actual DOS commands that will perform the desired functions.
. In this case, run the menu editor AUTOMAKE.
.
+ECHO +AUTOMAKE>>AUTOMENU.MDF
.
. After AUTOMAKE completes, restart AUTOMENU by typing "AUTO".
.
+ECHO +AUTO>>AUTOMENU.MDF
+ECHO .................................................>>AUTOMENU.MDF
.
. For the second menu selection...
.
+ECHO *Automenu Customization Utility>>AUTOMENU.MDF
+ECHO ?Select to Use the AUTOCUST Utility>>AUTOMENU.MDF
.
. Run the customization program to configure AUTOMENU the way you like it!
.
+ECHO +AUTOCUST>>AUTOMENU.MDF
.
. And then restart AUTOMENU.
.
+ECHO +AUTO>>AUTOMENU.MDF
+ECHO .................................................>>AUTOMENU.MDF
.
+ECHO *Treeview>>AUTOMENU.MDF
+ECHO ?Run MAGEE's File Management Utility>>AUTOMENU.MDF
+ECHO +ECHO Place the command TV here to execute Treeview>>AUTOMENU.MDF
+ECHO +ECHO If you don't have Treeview, order it today!>>AUTOMENU.MDF
+ECHO +ECHO Call Magee Enterprises, Inc. at 1-800-662-4330>>AUTOMENU.MDF
+ECHO +PAUSE>>AUTOMENU.MDF
+ECHO +AUTO>>AUTOMENU.MDF
+ECHO .>>AUTOMENU.MDF
+ECHO *Basic>>AUTOMENU.MDF
+ECHO ?Run BASIC directly>>AUTOMENU.MDF
.
. The following command will execute a SINGLE command, then return
. to AUTOMENU without a pause.
.
+ECHO -basica>>AUTOMENU.MDF
+ECHO .................................................>>AUTOMENU.MDF
+ECHO *DOS Command Menu>>AUTOMENU.MDF
+ECHO ?This menu contains commonly used DOS commands>>AUTOMENU.MDF
.
. The following command will load another MDF.
.
+ECHO @DOS.MDF>>AUTOMENU.MDF
+ECHO .................................................>>AUTOMENU.MDF
+ECHO *Batch Command Menu>>AUTOMENU.MDF
+ECHO ?This menu contains some special commands>>AUTOMENU.MDF
+ECHO @BATCH.MDF>>AUTOMENU.MDF
+ECHO .................................................>>AUTOMENU.MDF
+ECHO *Exit to DOS>>AUTOMENU.MDF
+ECHO ?Return to Disk Operating System>>AUTOMENU.MDF
+ECHO +ECHO ┌─────────────────────────────────┐>>AUTOMENU.MDF
+ECHO +ECHO │▓▓▒▒░░ Exiting to DOS ░░▒▒▓▓│>>AUTOMENU.MDF
+ECHO +ECHO ├─────────────────────────────────┤>>AUTOMENU.MDF
+ECHO +ECHO ├─────────────────────────────────┤>>AUTOMENU.MDF
+ECHO +ECHO │ Please Enter »»» AUTO ««« │>>AUTOMENU.MDF
+ECHO +ECHO │ To Return to Automenu │>>AUTOMENU.MDF
+ECHO +ECHO ├─────────────────────────────────┤>>AUTOMENU.MDF
+ECHO +ECHO └─────────────────────────────────┘>>AUTOMENU.MDF
.
. The above commands print a small box on-screen reminding you
. that you are in DOS.
.
+ECHO ...................................................>>AUTOMENU.MDF
+ECHO .------------------------------>>AUTOMENU.MDF
+ECHO .Define another sub-menu>>AUTOMENU.MDF
+ECHO .------------------------------>>AUTOMENU.MDF
+ECHO ................................................>>AUTOMENU.MDF
.
. ******** Now for PAGE TWO ********
.
+ECHO .The following line is the start of Page 2>>AUTOMENU.MDF
+ECHO %%Automenu(R) ***** Example Second Menu *****>>AUTOMENU.MDF
+ECHO .These are examples ONLY - Programs NOT Included>>AUTOMENU.MDF
+ECHO *Chess>>AUTOMENU.MDF
+ECHO ?Play the game of Chess>>AUTOMENU.MDF
.
. The next line will use the {=} command to execute a single DOS instruction
. and then PAUSING before returning to AUTOMENU.
.
+ECHO =ECHO No GAMES are included. Example only.>>AUTOMENU.MDF
+ECHO .................................................>>AUTOMENU.MDF
+ECHO *Backgammon>>AUTOMENU.MDF
+ECHO =ECHO No GAMES are included. Example only.>>AUTOMENU.MDF
+ECHO #End of AUTOMENU.MDF Menu Definition File>>AUTOMENU.MDF
+COPY AUTOMENU.MDF+NUL:/A >NUL
+ECHO Checking AUTOEXEC.BAT ...
.
. Change directories to the ROOT of the drive on which AUTOMENU is being
. copied.
.
+CD \
+IF %6==NO GOTO DONE
.
. If you don't want AUTOMENU to come up at boot time, go to the DONE label.
.
+ECHO Adjusting AUTOEXEC.BAT so that AUTOMENU will startup automatically.
+IF NOT EXIST AUTOEXEC.BAT GOTO MAKE
+COPY AUTOEXEC.BAT AUTOEXEC.BAK >NUL
+ERASE AUTOEXEC.BAT >NUL
+COPY AUTOEXEC.BAK/A AUTOEXEC.BAT/B >NUL
+IF %5==NO ECHO PATH %3%4>>AUTOEXEC.BAT
+ECHO AUTO>>%1\AUTOEXEC.BAT
+GOTO DONE
+:MAKE
+ECHO Building AUTOEXEC.BAT from start ...
+ECHO ECHO OFF>%1\AUTOEXEC.BAT
+ECHO CLS>>%1\AUTOEXEC.BAT
+ECHO ECHO .>>%1\AUTOEXEC.BAT
+ECHO DATE>>%1\AUTOEXEC.BAT
+ECHO TIME>>%1\AUTOEXEC.BAT
+ECHO PATH %3%4>>%1\AUTOEXEC.BAT
+ECHO PROMPT $P$G>>%1\AUTOEXEC.BAT
+ECHO AUTO>>%1\AUTOEXEC.BAT
+:DONE
+ECHO Automenu is finished installing the Automenu system files to your disk.
+IF %6==NO GOTO DONE1
+ECHO Your System will now display the menu automatically if you restart your
+ECHO system. Remove the Automenu Diskette and Press [CTRL]-[ALT]-[DEL].
+ECHO .
+GOTO END
+:DONE1
+ECHO Your Automenu system is now ready for you by entering the command "AUTO"
+ECHO at the %1 prompt.
+ECHO .
+ECHO Be sure to take a look at the READ.ME file on the Automenu distribution
+ECHO disk for information on any last minute changes that didn't make it into
+ECHO the manual.
+ECHO .
+:END
+ECHO Now, to exit from the installation procedure, just
+PAUSE
.
.
. Because we used the NON-RESIDENT {+} commands, we must issue an instruction
. to re-start AUTOMENU. We do this with the " +AUTO " command. We can also
. specify the name of a Menu Definition File to use by following the "AUTO"
. command with the name of the menu file - in this case we want to return to
. to the INSTALL.MDF menu. Note that the name of the file must be
. completely spelled out, including the ".MDF" extension.
.
+auto install.mdf
.
. Finally, we MUST always include an option to return to DOS.
. This will terminate AUTOMENU and display a message on the screen.
.
*Return to Disk Operating System
?Select to Exit INSTALL and Return to DOS
+ECHO Be sure to take a look at the READ.ME file on the Automenu distribution
+ECHO disk for information on any last minute changes that didn't make it into
+ECHO the manual.
+ECHO .
+ECHO If you Installed Automenu, remove the program disk from the disk drive
+ECHO and store it in a safe place.
+ECHO Press [Ctrl]-[Alt]-[Del] to restart your system with Automenu.
+ECHO .
+ECHO .
+ECHO Type "AUTO" to Return to Automenu
+ECHO .
+ECHO .
+ECHO .
+ECHO .
+ECHO .
.
. Installation File for Automenu
.
#End of INSTALL.MDF Menu Definition File