home *** CD-ROM | disk | FTP | other *** search
- echo off
- rem Automatic Installation routine. Requires two parameters:
- rem 1: the source drive (the one with the PkGOLD Testdrive files)
- rem 2: the target drive (where the program will be installed)
- rem The target must have at least 360K free for the main program and
- rem an additional 250K for the help system. A 720-K floppy or a hard
- rem disk is recommended to allow all files to be installed.
- cls
- ECHO ┌────────────────────────────────────────────────┐
- echo │ │
- echo │ Test Drive Installation │
- echo │ │
- ECHO │ Interflex Systems Design │
- echo │ Post Office Box 6418 │
- echo │ Laguna Niguel, CA 92607-6418 │
- echo │ │
- echo │ VISA & MasterCard orders: (714) 496-6639 │
- echo │ │
- echo └────────────────────────────────────────────────┘
- if t%1==t goto noparm
- if t%2==t goto noparm
- if t%1==t%2 goto samedrive
- Goto Install
- echo Found %1
- rem ------------- No parameters given to install
- :noparm
- echo ┌───────────────────────────────────────────────────────────────────┐
- echo │ Type INSTALL x: y: e.g. INSTALL A: C: (drive letters only) │
- echo │ │
- echo │ where x: is the source drive (the one with Pkgold Test Drive) │
- echo │ and y: is the target drive, where you want to put the program. │
- echo └───────────────────────────────────────────────────────────────────┘
- goto done
- rem ------------- User used same drive letters
- :samedrive
- echo ┌───────────────────────────────────────────────────────────┐
- echo │ The Source drive must be different from the Target drive. │
- echo │ │
- echo │ e.g. INSTALL A: D: │
- echo └───────────────────────────────────────────────────────────┘
- goto done
- :install
- if not exist %1tdsfx.exe goto baddisk
- echo ┌─────────────────────────────────────────────────────────────┐
- echo │ o Installing from "%1" to "%2" │
- echo │ │
- echo │ o A subdirectory named "TESTDRIV" will be created │
- echo │ │
- echo │ o If this is okay, hit [enter]. To cancel installation │
- echo │ at this point, use Ctrl-C. │
- echo └─────────────────────────────────────────────────────────────┘
- echo
- pause
- echo
- %2
- cd\
- md TestDriv > nul
- cd TestDriv > nul
- if not exist pkdemo.exe goto newdir
- echo
- echo It appears that a version of PkDEMO already exists in the
- echo directory "%2:\testdriv"
- echo
- echo You can install this version "on top" of the existing version
- echo by hitting any key, or you can use Control-Break to stop the
- echo installation and manually delete the existing PkDEMO files.
- echo Or you could install to a different drive letter.
- echo
- echo Suggestion: Go ahead and let this install into the testdrive
- echo directory by hitting any key.
- echo
- pause
- echo y|del *.* > nul
- echo
- :NEWDIR
- echo ┌────────────────────────────────────────────────────────────┐
- echo │ Now unpacking the PkDEMO program and support files.... │
- echo └────────────────────────────────────────────────────────────┘
- echo
- %1tdsfx
- if not exist pkdemo.exe goto noinstall
- echo ┌────────────────────────────────────────────────────────────┐
- echo │ Now unpacking the PkGOLD Help system... │
- echo └────────────────────────────────────────────────────────────┘
- echo
- %1tdhlpsfx
- echo ┌────────────────────────────────────────────────────────────┐
- echo │ Now unpacking some useful Docfiles... │
- echo └────────────────────────────────────────────────────────────┘
- echo
- %1docfiles
- if exist PKGOLD.HLP goto ALLOK
- echo ┌────────────────────────────────────────────────────────────┐
- echo │ HELP system not installed. Not enough room (needs 200K+) │
- echo └────────────────────────────────────────────────────────────┘
- :ALLOK
- CLS
- ECHO
- ECHO
- echo ┌───────────────────────────────────────────────────────────────╖
- echo │ You may now run the program by typing PKDEMO [enter] ║
- rem
- if NOT exist pkgold.hlp goto skiphelp
- rem
- echo │ Use [F1] for online help while program is running. ║
- echo │ ║
- echo │ The help system has information on TNC setup and other ║
- echo │ subjects. You can use the HELP system by itself by ║
- echo │ starting the program with the "/H" option, e.g. PKDEMO/H ║
- :skiphelp
- echo │ ║
- echo │ Type HELP (a batch file) to see some other documentation. ║
- echo │ Also: Look at the various .DOC files on the disk. ║
- echo │ ║
- echo │ 73, de Jeff WA4EGT -- InterFlex Systems -- (714) 496-6639 ║
- echo ╘═══════════════════════════════════════════════════════════════╝
- ECHO
- echo ┌───────────────────────────────────────────────────────────────╖
- echo │ PS: If you like the program, please call and order the ║
- echo │ release version. Also, ask about PkGOLD Enhanced Edition, ║
- echo │ and KaGOLD DualPort for the Kantronics TNCs. ║
- echo ╘═══════════════════════════════════════════════════════════════╝
- goto done
- rem Bad Installation
- :noinstall
- cls
- echo ┌───────────────────────────────────────────────────────────────┐
- echo │ Sorry, but either no room on target, or you didn't specify │
- echo │ the drives correctly, the Testdrive disk is not in "%2" │
- echo │ or some other problem. Please insert your TestDrive disk in │
- echo │ some floppy drive, and try again. │
- echo └───────────────────────────────────────────────────────────────┘
- ECHO
- goto done
- :baddisk
- ECHO
- ECHO
- echo ┌──────────────────────────────────────────────────────────────┐
- echo │ │
- echo │ TDSFX.EXE is not on the %1 drive. │
- echo │ Please insert the disk, or be sure that the │
- echo │ test drive files are on the source disk. │
- echo │ │
- echo └──────────────────────────────────────────────────────────────┘
- ECHO
- rem Program Ends here
- :done
- ECHO