home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Simtel MSDOS 1992 June
/
SIMTEL_0692.cdr
/
msdos
/
menu
/
ezmenu2.arc
/
SETUP.BAT
< prev
next >
Wrap
DOS Batch File
|
1988-02-02
|
5KB
|
113 lines
echo off
cls
rem SETUP.BAT
rem EasyMenu Installation Procedure
rem (C) 1986-88 by EasyMenu Publishing
rem %1 = A to H
if "%1"=="" install
if not exist AUTOEXEC.NEW goto newdir
:start
echo Checking for old files . . . IGNORE "file not found" MESSAGE(S)
del %1:\control.com > NUL
del %1:\password.com > NUL
cls
echo ┌ Drive %1: INSTALL in progress ───────────────────────────────────────────┐
echo │ │
echo │ WORKING . . . │
echo │ │
echo └─────────────────────────────────────────────────────────────────────────┘
echo copying UTILITIES to %1:\
rem *** *.COM ****
copy capsoff.com %1:\ > NUL
copy capson.com %1:\ > NUL
copy control.exe %1:\ > NUL
copy noboot.com %1:\ > NUL
copy numoff.com %1:\ > NUL
copy numon.com %1:\ > NUL
copy password.exe %1:\ > NUL
copy prtscoff.com %1:\ > NUL
copy prtscon.com %1:\ > NUL
copy yesboot.com %1:\ > NUL
rem *** REBOOT FILES ***
copy autoexec.new %1:\ > NUL
copy config.new %1:\ > NUL
rem *** BIOGEN ***
if exist BIOGEN.EXE copy BIOGEN.EXE %1:\ > NUL
rem
:usertype
cls
echo ┌ Install on DRIVE %1: ────────────────────────────────────────────────────┐
echo │ │
echo │ Do you already use EasyMenu (tm)? │
echo │ │
echo └─────────────────────────────────────────────────────────────────────────┘
echo
echo ╔════╗ ╔══════════════════════════════════════════╗
echo ║ N ║ ║ No. Install Sample Menus. ║
echo ╚════╝ ╚══════════════════════════════════════════╝
echo ┌────┐ ┌──────────────────────────────────────────┐
echo │ Y │ │ Yes. Update Program Only. │
echo └────┘ └──────────────────────────────────────────┘
echo ┌────┐ ┌──────────────────────────────────────────┐
echo │ Q │ │ Quit to INSTALL menu │
echo └────┘ └──────────────────────────────────────────┘
echo
ask NYQ
cls
if errorlevel 3 goto aborted
if errorlevel 2 goto update
if errorlevel 1 goto auto
:auto
echo ┌ Auto Start ─────────────────────────────────────────────────────────────┐
echo │ │
echo │ Start EasyMenu when you turn on the power? │
echo │ │
echo └─────────────────────────────────────────────────────────────────────────┘
echo
echo ┌────┐ ┌──────────────────────────────────────────┐
echo │ N │ │ No │
echo └────┘ └──────────────────────────────────────────┘
echo ╔════╗ ╔══════════════════════════════════════════╗
echo ║ Y ║ ║ Yes, modify %1:\AUTOEXEC.BAT ║
echo ╚════╝ ╚══════════════════════════════════════════╝
echo
ask YNQ
cls
if errorlevel 3 goto aborted
if errorlevel 2 goto newuser
rem *** ADD TO AUTOEXEC.BAT ***
echo %1:\AUTOEXEC.BAT saved as %1:\AUTOEXEC.SAV
copy %1:\autoexec.bat %1:\autoexec.sav > NUL
echo modifying %1:\AUTOEXEC.BAT, to start EasyMenu at POWER-ON
copy %1:\autoexec.bat + autoexec.add = %1:\autoexec.bat > NUL
rem
:newuser
rem
rem NEWDIR is skipped by calling COPYFILE.BAT
COPYFILE %1 \EASYMENU
rem
:update
rem
rem NEWDIR is skipped by calling COPYFILE.BAT, with UPDATE option
COPYFILE %1 \EASYMENU UPDATE
rem
:newdir
rem
cls
echo ┌ Directory to INSTALL for DRIVE %1: ──────────────────────────────────────┐
echo │ │
echo │ Enter directory name, 1 to 8 letters │
echo │ Enter Q to quit. │
echo │ │
echo └─────────────────────────────────────────────────────────────────────────┘
echo
rem *** WRITES setup procedure in TEMP.BAT, errorlevel 1 ***
swapdir %1
cls
if errorlevel 2 goto aborted
rem *** temp.bat = COPYFILE %1 InstallDirectory
temp
:aborted
install
:done