home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NeedleCraft Plus
/
needlecraftplusvolume1.iso
/
dos
/
pwsdem
/
install.bat
< prev
next >
Wrap
DOS Batch File
|
1997-01-06
|
8KB
|
167 lines
echo off
cls
if "%3"=="X" goto contins
if "%2"=="c" goto start
if "%2"=="C" goto start
if "%2"=="d" goto start
if "%2"=="D" goto start
if "%2"=="e" goto start
if "%2"=="E" goto start
cls
echo ╔══════════════════════════════════════════════════════════════════════════╗
echo ║ WELCOME TO PATTERNLAND PREVIEW EDITION INSTALLATION PROGRAM ║
echo ║ ║
echo ║ Step 1: Meet Hardware Requirements ║
echo ║ ║
echo ║ The Patternland Weave Simulator Preview Edition requires an IBM ║
echo ║ compatible computer with at least 512K memory; a color VGA monitor; ║
echo ║ and a hard drive with at least 2 MB of available disk space. ║
echo ║ If this system meets those requrements, proceed to Step 2. (Note: ║
echo ║ The full edition of Patternland does NOT require VGA or a hard disk.) ║
echo ║ ║
echo ║ Step 2: Tell Install what drive letters to use. ║
echo ║ ║
echo ║ Install will create a directory called \PWSDEMO on your hard disk, ║
echo ║ copy and expand the archived files from the diskette to hard disk, and ║
echo ║ play the demo. Please restart Install, specifying the drive letters ║
echo ║ you want it to use. Press a key for the next screen with directions. ║
echo ║ ║
echo ║ NOTE: If the files are already in the current directory of your ║
echo ║ hard drive, Install will proceed in the current directory. ║
echo ╚══════════════════════════════════════════════════════════════════════════╝
pause
if exist c:pwsmake.exe goto makepws
if exist d:pwsmake.exe goto makepws
cls
echo
echo Install needs to know the SOURCE and DESTINATION drives for the PWS
echo files so it knows how to proceed.
echo
echo Please retype Install with drive letters as follows:
echo
echo ┌────────────────────────────────────────────────────┐
echo │ SRC/DEST │
echo │ Install A C -- from diskette A to hard disk C │
echo │ Install A D -- from diskette A to hard disk D │
echo │ Install B C -- from diskette B to hard disk C │
echo │ Install B D -- from diskette B to hard disk D │
echo └────────────────────────────────────────────────────┘
echo
echo
echo
goto ENDBAT
:start
cls
if not exist %1:install.bat goto failed
echo
echo Creating %2:\PWSDEMO subdirectory....
echo
MKDIR %2:\pwsdemo
copy %1:install.bat %2:\pwsdemo
%2:
CD\PWSDEMO
if not exist %2:\pwsdemo\install.bat goto failed
install %1 %2 X
:contins
echo
echo Copying main program archive to hard disk...
echo
copy %1:pwsmake.exe
copy %1:pwsread.doc
if not exist %1:pwshelp.exe echo Please put PATTERNLAND PREVIEW HELP DISK in Drive %1.
echo
if not exist %1:pwshelp.exe pause
if not exist %1:pwshelp.exe goto nohelp
echo
echo Copying help archive to hard disk...
echo
copy %1:pwshelp.exe
:nohelp
:makepws
cls
echo
echo Now expanding the main program archive...
echo
pwsmake
cls
echo
if exist pwshelp.exe echo Now expanding the help files archive...
echo
if exist pwshelp.exe pwshelp
if not exist pwsdemo.exe goto failed
if not exist pwsdemo.ovr goto failed
CLS
echo
echo ╔═══════════════════════════════════════════════════════╗
echo ║ ║
echo ║ PATTERNLAND PREVIEW EDITION INSTALLED! ║
echo ║ ║
echo ║ The PREVIEW DEMO1 will run when you press any key. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════╝
echo
echo
pause
PWSDEMO demo1/m
cls
echo ╔═══════════════════════════════════════════════════════╗
echo ║ ║
echo ║ WE HOPE YOU ENJOYED PREVIEWING PATTERNLAND. ║
echo ║ ║
echo ║ From now on, type DEMO from the \PWSDEMO directory ║
echo ║ to run the demo in standard mode. ║
echo ║ ║
echo ║ Type DEMOTUT from the \PWSDEMO directory to run the ║
echo ║ demo in tutorial mode. ║
echo ║ ║
echo ║ Type PWSDEMO from the \PWSDEMO directory to run the ║
echo ║ Patternland Preview Edition without the demo. ║
echo ║ ║
echo ║ Type ORDER at the DOS prompt to print an ║
echo ║ order form to buy the program. ║
echo ║ ║
echo ║ THANK YOU FOR YOUR INTEREST IN PATTERNLAND! ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════╝
pause
cls
echo ╔═══════════════════════════════════════════════════════╗
echo ║ ║
echo ║ Install will now DELETE the original PREVIEW archive ║
echo ║ files from your hard disk to conserve space. These ║
echo ║ files are no longer needed now that the demo has ║
echo ║ been installed. However, if you got the demo from ║
echo ║ a friend or a bulletin board and do NOT have these ║
echo ║ files on diskette or another directory of your hard ║
echo ║ disk, press CTRL C to CANCEL DELETE. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════╝
echo
pause
del %2:pwsmake.exe
del %2:pwshelp.exe
echo You can also delete "Install.bat" from the hard drive
echo to conserve an additional 9K.
GOTO ENDBAT
:failed
CLS
echo
echo ╔═══════════════════════════════════════════════════════╗
echo ║ ║
echo ║ RATS! PATTERNLAND PREVIEW INSTALLATION FAILED. ║
echo ║ ║
echo ║ Please check that you have 2,000,000 bytes available ║
echo ║ on your hard drive. ║
echo ║ ║
echo ║ Also make sure you typed the correct drive letters. ║
echo ║ ║
echo ║ Please try again. ║
echo ║ ║
echo ║ If you still have problems, contact Maple Hill ║
echo ║ Software for assistance: (802) 454-8311. ║
echo ║ ║
echo ╚═══════════════════════════════════════════════════════╝
echo
:ENDBAT