home *** CD-ROM | disk | FTP | other *** search
- @echo off
- cls
- echo.
- echo ─────────── INSTALL for ALF v2.0wb ───────────
- echo.
- if (%1)==() goto novar
- if not (%2)==() goto run
- echo Text Editor and Batch File are both required
- echo.
- :novar
- echo Usage: INSTALL EDITOR FILE [PARAMETERS]
- echo.
- echo EDITOR: Your favorite text editor
- echo FILE: Your daily maintenance batch file
- echo PARAMETERS: Parameters for SILT (Optional)
- echo.
- echo eg. INSTALL C:\Q.EXE C:\FRONT.BAT -y
- echo.
- goto out
- :run
- echo Maximus Directory: \MAX
- ECHO Text Editor: %1
- ECHO Daily Batch File: %2
- if (%3)==() echo Parameters for SILT: none
- if not (%3)==() echo Parameters for SILT: %3 %4 %5 %6 %7 %8
- ECHO.
- IF EXIST %1 GOTO FOUNDED
- echo `%1' not found! Please use full PATH\FILENAME.
- GOTO OUT
- :FOUNDED
- IF EXIST %2 GOTO FOUNDBAT
- echo `%2' not found! Please use full PATH\FILENAME.
- GOTO OUT
- :foundBAT
- ver |find "DOS Version 6">nul
- if errorlevel 1 echo.
- if errorlevel 1 echo. Requires DOS v6.x
- if errorlevel 1 goto out
- echo Confirmed DOS 6.x
- onpath find.exe
- if errorlevel 5 GOTO NOFIND
- if errorlevel 2 GOTO FOUNDFIND
- :NOFIND
- echo Can't locate `FIND.EXE' on your PATH.
- goto out
- :FOUNDFIND
- echo Located FIND.EXE
- onpath MOVE.exe
- if errorlevel 5 GOTO NOMOVE
- if errorlevel 2 GOTO FOUNDMOVE
- :NOMOVE
- echo Can't locate `MOVE.EXE' on your PATH.
- goto out
- :FOUNDMOVE
- Echo Located MOVE.EXE
- onpath pkunzip.exe
- if errorlevel 5 GOTO NOpk
- if errorlevel 2 GOTO FOUNDpk
- :NOPK
- echo Can't locate `PKUNZIP.EXE' on your PATH.
- goto out
- :FOUNDPK
- echo Located PKUNZIP.EXE
- echo.
- if exist alf.zip goto havezip
- echo Can't locate `ALF.ZIP' in current directory.
- goto out
- :havezip
- onpath choice.exe
- if errorlevel 3 goto nochoice
- Choice Continue?C
- if errorlevel 2 goto out
- if errorlevel 1 goto go
- :nochoice
- echo If INCORRECT, hit CTRL-BREAK now!
- echo.
- pause
- :GO
- CLS
- echo.
- echo ───────────────────────── INSTALL for ALF v2.0wb ─────────────────────────
- echo.
- echo.
- echo A) INSTALL will now create a directory called \MAX\ALF\ and extract ALF.ZIP
- echo into it. `Support' programs will be moved to the \MAX directory, and ALF
- echo will be configured to use %1 for text editing.
- echo.
- echo B) You will then be required to add some lines of text to three different
- echo files. You'll be shown the line that must be added, then the editor will
- echo load the file. A pen and paper could be handy, and remember to SAVE the
- echo files. MECCA and SILT will both run automatically during the installation.
- echo.
- echo C) Four more files will be loaded into the editor so that you can read them
- echo and edit them if desired. You'll also be asked to edit your AUTOEXEC.BAT
- echo file if it doesn't already include a COMSPEC statement.
- echo.
- echo D) And finally, you'll have the option of installing some remote features.
- echo.
- onpath choice.exe
- if errorlevel 3 goto noch
- Choice Continue?C
- if errorlevel 2 goto out
- if errorlevel 1 goto 2go
- :noch
- echo To Quit, hit CTRL-BREAK now!
- echo.
- pause
- :2GO
- md \MAX\ALF
- if exist \max\alf\nul goto havealf
- echo ERROR creating \MAX\ALF\ directory!
- goto out
- :havealf
- echo
- pkunzip alf.ZIP \MAX\ALF
- copy onpath.exe \max\alf>nul
- cd \MAX\alf
- ECHO C%1 %%J>ALF.EDR
- pkunzip *.zip \MAX
- move touch.com \max
- del *.zip
- :nomec
- cls
- echo.
- echo Editing WELCOME.MEC (optional) 1/7
- echo.
- echo If files are waiting to be hurled, you can be alerted at logon.
- echo Add the following line for logon alerts:
- echo.
- echo [link]alf\alfcheck.bbs
- echo.
- pause
- %1 \MAX\MISC\WELCOME.MEC
- find /I "[link]alf\alfcheck.bbs" \max\misc\welcome.mec>nul
- if errorlevel 1 onpath.exe choice.exe
- if errorlevel 3 cls
- if errorlevel 3 Echo Logon alert not installed.
- if errorlevel 3 goto ctl
- if errorlevel 1 CHOICE You'll skip the logon alert, correct?C
- if errorlevel 2 goto nomec
- if errorlevel 1 cls
- if errorlevel 1 goto ctl
- echo
- cls
- \max\MECCA \max\MISC\WELCOME.MEC
- echo.
- :ctl
- echo.
- echo Editing MENUS.CTL (required) 2/7
- echo.
- echo To the FILES MENU, add the following line:
- echo.
- echo Display_File misc\alf SysOp "\ALF"
- echo.
- pause
- %1 \max\menus.ctl
- find /I "alf\alf" \max\menus.ctl>nul
- if errorlevel 1 goto ctl
- cd \max
- cls
- echo SILT MAX %3 %4 %5 %6 %7 %8
- Silt Max %3 %4 %5 %6 %7 %8
- :nobat
- echo.
- echo Editing %2 (required)
- echo A 3/7
- echo.
- echo Add the following line so that it runs ONE time per day:
- ECHO.
- ECHO call \max\alf\alfday.bat
- ECHO.
- PAUSE
- %1 %2
- find /I "call \max\alf\alfday.bat" %2 >nul
- if errorlevel 1 goto nobat
- cls
- echo.
- echo Editing ALFSORT.BAT (optional) 4/7
- echo.
- echo Edit this file to choose FILES.BBS sorting methods.
- echo.
- pause
- %1 \max\alf\alfsort.bat
- cls
- echo.
- echo Editing ALFCESS.BAT (optional) 5/7
- echo.
- echo This file runs VIRCHECK.BAT and/or other programs when you process files.
- echo Read installation info and make required changes.
- echo.
- pause
- %1 \max\alf\alfcess.bat
- cls
- echo.
- echo Editing ALFPOST.BAT (optional) 6/7
- echo.
- echo This file runs only if a FILES.BBS entry is found after processing a file.
- echo Make changes as desired.
- echo.
- pause
- %1 \max\alf\alfpost.bat
- cls
- echo.
- echo Editing ALFXTRN.MEC (optional) 7/7
- echo.
- echo Runs an external program either during processing or from the main menu.
- echo Read installation info and make required changes.
- ECHO.
- PAUSE
- %1 \MAX\alf\ALFXTRN.MEC
- ECHO
- cls
- \max\MECCA \max\alf\ALFXTRN.MEC
- echo.
- find /I "SET COMSPEC=" \autoexec.bat>nul
- if errorlevel 1 goto auto
- goto noauto
- :auto
- cls
- echo.
- echo COMSPEC not found in Autoexec.bat! (required)
- echo.
- echo Add the following line to AUTOEXEC.BAT:
- echo.
- echo SET COMSPEC=C:\COMMAND.COM (Change drive letter if required)
- echo.
- pause
- %1 \AUTOEXEC.BAT
- find /I "SET COMSPEC=" \autoexec.bat>nul
- if errorlevel 1 goto auto
- echo.
- echo You should reboot for the change to take effect.
- echo ALF uses this variable for the Dos shell menu option.
- echo.
- pause
- :noauto
- echo.
- echo REMOTE use of the text EDITOR and file SELECTOR requires DOORWAY.EXE.
- echo.
- echo To implement the remote editor and file selector, edit ALFDORED.MEC,
- echo ALFDORPK.MEC and ALFDIMPK.MEC. You can do this at any time.
- echo.
- \max\alf\onpath choice.exe
- if errorlevel 3 goto nocho
- Choice Edit these files now?C
- if errorlevel 2 del \max\alf\onpath.exe
- if errorlevel 2 goto notnow
- if errorlevel 1 goto inst
- :nocho
- del \max\alf\onpath.exe
- echo ALF is now installed.
- echo.
- echo To edit the remote files now, press a key.
- echo.
- echo Hit CTRL-BREAK to skip them!
- echo.
- pause
- :goto nobrk
- :inst
- del \max\alf\onpath.exe
- :nobrk
- cls
- echo.
- echo Editing ALFDORED.MEC (optional) 1/3
- echo.
- echo Allows you to run your editor and edit FILES.BBS files from remote.
- echo Read installation info and make required changes.
- ECHO.
- PAUSE
- %1 \MAX\alf\ALFDORED.MEC
- ECHO
- cls
- \max\MECCA \max\alf\ALFDORED.MEC
- echo.
- echo Editing ALFDORPK.MEC (optional) 2/3
- echo.
- echo Allows remote use of file selector.
- echo Read installation info and make required changes.
- ECHO.
- PAUSE
- %1 \MAX\alf\ALFDORPK.MEC
- ECHO
- cls
- \max\MECCA \max\alf\ALFDORPK.MEC
- echo.
- echo Editing ALFDIMPK.MEC (optional) 3/3
- echo.
- echo Allows remote use of file selector when importing files.
- echo Read installation info and make required changes.
- ECHO.
- PAUSE
- %1 \MAX\alf\ALFDIMPK.MEC
- ECHO
- cls
- \max\MECCA \max\alf\ALFDIMPK.MEC
- :notnow
- echo.
- echo ALF is installed!
- echo.
- echo Run Maximus, go to the files menu and select ALF.
- :out
- echo
-