home *** CD-ROM | disk | FTP | other *** search
- echo off
- -- 11/14/89 SJO UPL 4.00 Release
- -- 01/30/89 SJO UPL 3.20 Release
- -- 06/16/87 SJO UPL 3.10 Release
- clrwin
-
- -- Rev 4.00 UPL load and installation process data file
-
- -------- Begin macro definitions -------------------------------------------
- macro DISPLAY_TITLE
- setwin
- setatt 15 1
- clrwin
- title " User Programming Language 4.00 Installation Procedure "
- endmac
- ----------------------------------------
- macro ERROR_WINDOW
- setwin 3 3 75 19
- setatt 0 0
- clrwin
- setwin 2 2 74 18
- setatt 1 7
- clrwin
- setatt 7 0
- endmac
- -------- Begin execution -------------------------------------------------
- DISPLAY_TITLE
-
- ------- Copy UPL Diskette --------
- :disk_u
- echo
- setatt 12 1
- center "IMPORTANT!"
- setatt 15 1
- echo
- center "Welcome to the UPL Compiler module of microCADDS Geometric Construction"
- center "and Detailing Version 4.00. This program will walk you through the"
- center "installation of UPL on your hard disk. To successfully install UPL you"
- center "will need a minimum of one megabyte of space on your hard disk. "
- echo
- echo
- setatt 10 1
- center " Do you wish to install UPL [Y/N]? "
- setatt 15 1
- getsel "YyNn"
- clrwin
- if select N goto cleanup
- if select n goto cleanup
- if infile \DMANTMP "A:\" goto overwrite_attempt
- if infile \DMANTMP "B:\" goto overwrite_attempt
- goto diskU_copy
-
- :overwrite_attempt
- ERROR_WINDOW
- ECHO
- echo
- center "WARNING: You are attempting to overwrite your UPL "
- center "Master Diskette. Your current drive and path are: "
- echo
- type DMANTMP
- echo
- center "Please review your Installation Procedure and try again. "
- echo
- pause
- goto end
-
-
- :diskU_copy
- set gcdormd=\
- if exist \MD4\*.* set gcdormd=\MD4
- if exist \GCD4\*.* set gcdormd=\GCD4
-
- ------- GCD4 \ MD4 Installation ------------------------------------------------
- clrwin
- echo
- echo
- echo
- center "Copying UPL.EXE to {gcdormd} directory."
-
- copy {LOAD}:\GCD4\upl.exe {gcdormd} >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
-
- setatt 10 1
- echo
- echo
- center "Do you want to copy the UPL sample programs [Y/N]?"
- setatt 15 1
- getsel "YyNn"
- if select N goto upl_complete
- if select n goto upl_complete
- clrwin
- echo
- echo
- echo
- center "Copying UPL sample programs to {gcdormd}\UPL directory."
- if not exist {gcdormd}\UPL\*.* md {gcdormd}\UPL
- copy {LOAD}:\GCD4\UPL {gcdormd}\UPL >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
- goto upl_complete
-
- :upl_complete
-
- :codes
- -- see if internal or dealer box, add codes to \CVOPTION.FIL
-
- ------------------------------------------------------------------------
- :internal
- -- Prime internal, Option number is: 5620 - UPL 4.0 Release
- echo "989898 33173 36756 37769 39557 40079 198" >&TMP1
- SUBR ADOPTION &TMP1 &TMP2
- if not infile &TMP2 Error goto success
- goto dealer
-
- ------------------------------------------------------------------------
- :dealer
- -- Dealer, Option number is: 5620 - UPL 4.0 Release
- echo "999999 37269 40852 37789 39068 40343 249" >&TMP1
- SUBR ADOPTION &TMP1 &TMP2
- if not infile &TMP2 Error goto success
- goto no_can_do
-
- ------------------------------------------------------------------------
- :no_can_do
- -- For Customers only.
- --echo
- --echo
- --center "Codes not added (not supposed to!)"
- --echo
- --pause
- goto complete
-
- :success
- -- For Dealers and Prime Internal only.
- echo
- echo
- center "Codes added!"
- echo
- pause
-
- :complete
- --------------------------------------
- clrwin
- echo
- echo
- echo
- setatt 15 1
- center " User Programming Language Installation complete!!!!! "
- echo
- center " Please remove diskette and store in a safe place. "
- echo
- pause
- echo
-
- --------------------------------------
- goto cleanup
-
- :disk_full
- ERROR_WINDOW
- echo
- echo
- echo
- center "*** FATAL ERROR ***"
- echo
- center "*** HARD DISK FULL ***"
- echo
- center "Please backup and delete all unneccesary files from hard disk "
- center "and try again. UPL requires at least 1 Megabyte of disk space."
- echo
- pause
-
- :cleanup
- -- if not called from GCD/MD4 installation, delete dat file
- if not "%1" == FL del >nul \install.dat
- del >nul \error.fil
- del >nul \cvoption.new
- del >nul \&tmp1
- del >nul \&tmp2
-
- :end
- exit
-