home *** CD-ROM | disk | FTP | other *** search
- echo off
- clrwin
- -- 11/14/89 SJO GCD 4.00 Release
- -- 01/30/89 SJO GCD 3.20 Release
- -- 06/16/87 SJO GCD 3.10 Release
-
- -- Rev 4.00 GCD load and installation process data file
-
- -------- Begin macro definitions -------------------------------------------
- macro DISPLAY_TITLE
- setwin
- setatt 15 1
- clrwin
- title "╗ microCADDS Geometric Construction and Detailing ╔"
- center "╚ Revision 4.00 Installation Procedure ╝"
- endmac
- ----------------------------------------
- macro TOP_WINDOW
- setwin 3 5 78 12
- setatt 0 0
- clrwin
- setwin 2 4 77 11
- setatt 15 2
- clrwin
- setatt 1 2
- endmac
- ----------------------------------------
- macro BOTTOM_WINDOW
- setwin 3 14 78 21
- setatt 0 0
- clrwin
- setwin 2 13 77 20
- setatt 15 2
- clrwin
- setatt 1 2
- 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
- -------- End macro definitions -------------------------------------------
- SET BOOT={COMSPEC: 1,1}
- -------- Begin execution -------------------------------------------------
- DISPLAY_TITLE
-
- -- Part 1 - New Installation --
- :new
- setatt 15 1
- echo
- echo
- center "Welcome to Personal Designer - microCADDS Geometric Construction and"
- center "Detailing DOS-Extended Edition Version 4.00. This program will walk"
- center "you through the installation of GCD on your hard disk, and will help"
- center "you configure the software for your specific hardware. To install GCD"
- center "you will need a minimum of 7 megabytes of space on your hard disk,"
- center "plus an additional megabyte if you have purchased the Surfaces option."
- center "Two new directories will be created on your hard disk, \GCD4 and"
- center "\GCD4\INSTALL. \GCD4\INSTALL contains the installation and"
- center "configuration utility programs, and \GCD4 contains the main program"
- center "and all of its support files, including the device drivers. If there"
- center "is a conflict with an existing directory name, you will need to rename"
- center "the old directory. As you begin this process, be sure that you are in"
- center "the root directory of the drive on which you wish to load GCD. "
- setatt 12 1
- center "Note: to properly install GCD, you must turn off all memory resident"
- center "programs such as networks, memory managers and disk cache programs. "
- echo
-
- if infile \DMANTMP "A:\" goto overwrite_attempt
- if infile \DMANTMP "B:\" goto overwrite_attempt
-
- setatt 10 1
- center " Do you wish to continue [Y/N]? "
- setatt 15 1
- getsel "YyNn"
- clrwin
- if select N goto cleanup
- if select n goto cleanup
- goto test_environment
-
- --------------------------------------
- :overwrite_attempt
- ERROR_WINDOW
- echo
- echo
- echo
- center " WARNING: You are attempting to overwrite your GCD "
- center " Master Diskette. Your current drive and path are: "
- echo
- type DMANTMP
- echo
- center " Please review your Installation Procedure and try again. "
- echo
- goto cleanup
- --------------------------------------
- :test_environment
-
- if infile {BOOT}:\config.sys "vmem.sys" goto vmem
- if infile {BOOT}:\config.sys "VMEM.SYS" goto vmem
-
- :test1
- if not exist \GCD4\*.* goto test2
- ERROR_WINDOW
- echo
- echo
- echo
- center "WARNING: Directory \GCD4 currently exists. If you continue, "
- center " you may overwrite existing files, or load GCD into "
- center " another program's work area. "
- center " "
- center " If you have previously installed this version (4.00)"
- center " of GCD, and you are re-installing it, you can ignore"
- center " this message. "
- echo
- center " Do you wish to continue [Y/N]? "
- getsel "YyNn"
- DISPLAY_TITLE
- if select N goto cleanup
- if select n goto cleanup
-
- --Delete all device drivers to avoid incompatability problems.
- del >nul \GCD4\*.DEV
- del >nul \GCD4\*.DIF
- del >nul \GCD4\*.PEN
-
- --------------------------------------
- :test2
- if not exist \GCD4\INSTALL\*.* goto test3
- ERROR_WINDOW
- echo
- echo
- echo
- center "WARNING: Directory \GCD4\INSTALL currently exists. If you continue,"
- center " you may overwrite existing files, or load GCD into "
- center " another program's work area. "
- center " "
- center " If you have previously installed this version (4.00) of "
- center " GCD, and you are re-installing it, you can ignore this "
- center " message. "
- echo
- center " Do you wish to continue [Y/N]? "
- getsel "YyNn"
-
- if select N goto cleanup
- if select n goto cleanup
-
- :test3
- if not exist \GCD3\*.* goto begin
- ERROR_WINDOW
- echo
- echo
- echo
- center "WARNING: Directory \GCD3 currently exists. Please make sure "
- center " that GCD3 is not in your path (autoexec.bat) or there"
- center " may be unpredictable results. "
- center " See GCD3.BAT and GCD4.BAT for examples on how to use "
- center " both revisions concurrently. "
- echo
- pause
-
- ------- Build Directory Structure ----------------------------------------
- :begin
-
- DISPLAY_TITLE
-
- cd \
- md \GCD4
- md \GCD4\INSTALL
-
- ------- Copy Diskette 1 --------------------------------------------------
- :disk_1
- :disk1_copy
- echo
- echo
- echo
- echo
- echo
- center "Copying files from diskette 1"
- echo
- center "Creating \GCD4\INSTALL directory..."
- copy {LOAD}:\GCD4\INSTALL \GCD4\INSTALL >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
-
- --configb references drive B for device drivers.
- copy \gcd4\install\config{LOAD}.ssr \gcd4\install\config.ssr >nul
-
- center "Creating \GCD4 directory (Part 1)..."
-
- -- Copy last minute info file to hard drive. Type at end of installation.
- if exist {LOAD}:\GCDINFO.TXT copy {LOAD}:\GCDINFO.TXT \ >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
-
- copy {LOAD}:\GCD4 \GCD4 >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
-
- clrwin
- setatt 12 1
- echo
- echo
- echo
- echo
- echo
- center "Diskette 1 copying complete!"
- setatt 15 1
-
- ------- Copy Diskette 2 --------------------------------------------------
- :disk_2
- echo
- echo
- center "Please insert GCD Rev 4.00 Master Diskette 2 in drive {LOAD}, and then .."
- ECHO
- --------------------------------------
- :disk2_chk
- pause
- if exist {LOAD}:disk400.2 goto disk2_copy
- setatt 12 1
- center "Incorrect diskette! Please insert diskette 2 and try again."
- echo
- goto disk2_chk
- --------------------------------------
- :disk2_copy
- clrwin
- setatt 15 1
- echo
- echo
- echo
- echo
- echo
- center "Copying files from diskette 2"
- echo
- center "Creating \GCD4 directory (Part 2)..."
-
- copy {LOAD}:\GCD4 \GCD4 >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
-
- clrwin
- setatt 12 1
- echo
- echo
- echo
- echo
- center "Diskette 2 copying complete!"
- setatt 15 1
-
- ------- Copy Diskette 3 --------------------------------------------------
- :disk_3
- echo
- echo
- center "Please insert GCD Rev 4.00 Master Diskette 3 in drive {LOAD}, and then .."
- echo
- --------------------------------------
- :disk3_chk
- pause
- if exist {LOAD}:disk400.3 goto disk3_copy
- setatt 12 1
- center "Incorrect diskette! Please insert diskette 3 and try again."
- echo
- goto disk3_chk
- --------------------------------------
- :disk3_copy
-
- clrwin
- setatt 15 1
- echo
- echo
- echo
- echo
- echo
- center "Copying files from diskette 3"
- echo
- center "Creating \GCD4 directory (Part 3)..."
-
- copy {LOAD}:\GCD4 \GCD4 >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
-
- clrwin
- setatt 12 1
- echo
- echo
- echo
- echo
- center "Diskette 3 copying complete!"
- setatt 15 1
-
- ------- Copy Diskette 4 --------------------------------------------------
- :disk_4
- echo
- echo
- center "Please insert GCD Rev 4.00 Master Diskette 4 in drive {LOAD}, and then .."
- echo
- --------------------------------------
- :disk4_chk
- pause
- if exist {LOAD}:disk400.4 goto disk4_copy
- setatt 12 1
- center "Incorrect diskette! Please insert diskette 4 and try again."
- echo
- goto disk4_chk
- --------------------------------------
- :disk4_copy
-
- clrwin
- setatt 15 1
- echo
- echo
- echo
- echo
- echo
- center "Copying files from diskette 4"
- echo
- center "Creating \GCD4 directory (Part 4)..."
-
- copy {LOAD}:\GCD4 \GCD4 >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
-
- ------- Copy Tutor ------------------------------------------
- clrwin
- echo
- echo
- echo
- echo
- echo
- center " GCD Tutorial Diskette "
- echo
- center "Diskette 4 contains the GCD Tutor. The GCD Tutor is a series of files"
- center "which are intended to walk a new user through the basic functions,"
- center "commands, and capabilities of GCD. If you are an experienced user of"
- center "the microCADDS GCD software, you may not want to load these files. "
- echo
- setatt 10 1
- center " Do you wish to install the Tutor [Y/N]? "
- setatt 15 1
- getsel "YyNn"
- clrwin
- if select N goto disk_5
- if select n goto disk_5
-
- ------------------------------------------------------------------------------
- clrwin
- setatt 15 1
- echo
- echo
- echo
- echo
- echo
- center " Copying GCD Tutor files... "
- echo
- center " Creating \GCD4\TUTOR directory... "
- md \GCD4\tutor
- copy {LOAD}:\GCD4\TUTOR \GCD4\TUTOR >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
-
- clrwin
- echo
- echo
- echo
- echo
- setatt 12 1
- center "Tutor copying complete!"
- setatt 15 1
-
- ------- Copy Diskette 5 --------------------------------------------------
- :disk_5
- echo
- echo
- center "Please insert GCD Rev 4.00 Master Diskette 5 in drive {LOAD}, and then .."
- echo
- --------------------------------------
- :disk5_chk
- pause
- if exist {LOAD}:disk400.5 goto disk5_copy
- setatt 12 1
- center "Incorrect diskette! Please insert diskette 5 and try again."
- echo
- goto disk5_chk
- --------------------------------------
- :disk5_copy
-
- clrwin
- setatt 15 1
- echo
- echo
- echo
- echo
- echo
- center "Copying files from diskette 5"
- echo
- center "Creating \GCD4 directory (Part 5)..."
-
- copy {LOAD}:\GCD4 \GCD4 >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
-
- --------------------------------------
- :copy_menus
- clrwin
- setatt 15 1
- echo
- echo
- echo
- center " Copying GCD On-Screen Menu Creation Files... "
- echo
- center "This version of GCD does not include pre-created on-screen menu files."
- center "What it does include are a series of files which will allow you to"
- center "build your own customized version of the on-screen icons. These files"
- center "are copied automatically into the \GCD4 directory. Please refer to"
- center "your GCD Release Notes document for the specific information on how to"
- center "build an on-screen menu that is customized to your individual graphics"
- center "display board. This process is initiated by a simple command, and"
- center "takes approximately 1 to 1 1/2 hours to generate a menu file, depend-"
- center "ing on the type and speed of your hardware. "
- echo
- echo
-
- copy {LOAD}:\GCDMENU \GCD4 >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
-
- clrwin
- setatt 12 1
- echo
- echo
- echo
- echo
- center "Diskette 5 copying complete!"
- setatt 15 1
-
- ------- Copy Diskette d --------------------------------------------------
- :disk_d
-
- clrwin
- echo
- echo
- echo
- center "The next step of this installation involves gluing the three"
- center "pieces of GCD.EXE back together from it's diskette format. "
-
- cd \gcd4
- if exist gcd.exe del >nul gcd.exe
-
- copy /b gcdsplit.1 + gcdsplit.2 + gcdsplit.3 gcd.exe >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
-
- del >nul gcdsplit.*
- cd \
-
- clrwin
- echo
- echo
- echo
- center "Please insert GCD Rev 4.00 Device Drivers Diskette in drive {LOAD}, and then .."
- echo
-
- --------------------------------------
- :diskd_chk
- pause
- if exist {LOAD}:disk400.d goto diskd_copy
- setatt 12 1
- center "Incorrect diskette! Please insert Device Drivers diskette and try again."
- echo
- goto diskd_chk
-
- --------------------------------------
- :diskd_copy
- clrwin
- echo
- echo
- echo
- setatt 15 1
- center " Installing GCD Device Drivers "
- echo
- center "This diskette contains all the hardware device drivers necessary to"
- center "make GCD work with your particular combination of graphics board,"
- center "digitizing tablet, mouse, and plotter. The System Configuration"
- center "Manager is a separate program (called CONFIG.EXE) which will automati-"
- center "cally execute now if you wish to continue, but can also be used at any"
- center "other time without having to repeat this installation process. "
- echo
- center "Note: you cannot use GCD for the first time without using the"
- center "Configuration Manager to install your initial device drivers."
- setatt 10 1
- echo
- center " Do you wish to continue with the installation [Y/N]? "
- setatt 15 1
- getsel "YyNn"
- clrwin
- if select N goto chk_autoex
- if select n goto chk_autoex
- --------------------------------------
- :run_config
- cd \GCD4\install
-
- CONFIG /install
-
- --------------------------------------
- DISPLAY_TITLE
- cd \
- echo
- echo
- echo
- echo
- center " Device Drivers diskette copying complete! "
- echo
- center " Please remove diskette and store in a safe place. "
- center " To proceed with installation... "
- echo
- pause
- ------- Driver Installation complete -------------------------------------
-
- ------- Edit AUTOEXEC.BAT ------------------------------------------------
- :chk_autoex
- clrwin
-
- :Check if COMSPEC invalid
- if {bootltr} == bad goto skip_edauto
- if {BOOT} == A goto skip_edauto
- if {BOOT} == a goto skip_edauto
-
- echo
- center "Editing AUTOEXEC.BAT..."
- subr EDAUTOEX path 1 ev 1
- gcd4
- cvpath
- if not exist {BOOT}:\AUTOEXEC.OLD goto no_old_autoex
- center "Finished editing! Please make note of the following changes"
- TOP_WINDOW
- title " Old AUTOEXEC.BAT "
- setatt 15 2
- type {BOOT}:\AUTOEXEC.OLD
- BOTTOM_WINDOW
- title " New AUTOEXEC.BAT "
- setatt 15 2
- type {BOOT}:\AUTOEXEC.BAT
- setatt 15 1
- pause
- goto finish
-
- :no_old_autoex
- center "No old AUTOEXEC.BAT found, new one created!"
- TOP_WINDOW
- title " New AUTOEXEC.BAT "
- setatt 15 2
- type {BOOT}:\AUTOEXEC.BAT
- pause
- goto finish
-
- :skip_edauto
- setatt 12 1
- echo
- echo
- echo
- center " Unable to edit your AUTOEXEC.BAT file."
- setatt 15 1
- center "Please include the following in your AUTOEXEC.BAT file: "
- center "PATH C:\GCD4;C:\DOS;C:\;"
- center "SET CVPATH=C:\GCD4 "
- center "Sustitute your boot drive letter for the C: in the above lines."
- pause
-
- :finish
- setatt 15 1
- ------- Completion Message ------------------------------------------------
-
- :options
- DISPLAY_TITLE
- echo
- echo
- center "If you have purchased other GCD options, such as Surfaces, the User"
- center "Programming Language or the Architectural Module, you can install them"
- center "at this time by continuing with this program, or you can install them"
- center "at a later date by inserting the appropriate diskette into your floppy"
- center "drive and type"
- center "'A:\INSTALL' to install from your A: drive or"
- center "'B:\INSTALL' to install from your B: drive. "
- echo
- setatt 10 1
- center " Do you wish to install other products [Y/N]? "
- setatt 15 1
- getsel "YyNn"
- if select N goto done
- if select n goto done
- clrwin
- echo
- echo
- center " Please insert option diskette and ..."
-
- pause
- --Surfaces 4.00
- if exist {LOAD}:disk400.s goto option_copy
- --UPL 4.00
- if exist {LOAD}:disk400.u goto option_copy
- --all others
- if exist {LOAD}:disk400.a goto option_copy
-
- setatt 12 1
- center "Incorrect diskette! Please insert proper diskette and try again."
- setatt 15 1
- echo
- goto options
-
- :option_copy
- copy {LOAD}:\GCD4\install\install.dat \install2.dat >\error.fil
- if infile \error.fil "Insufficient disk space" goto disk_full
- -- use FL switch to allow proper cleanup
- cd \
- \GCD4\install\diskman \install2.dat FL
- goto options
-
- --------------------------------------------------------------------------
- :done
-
- :codes
- -- see if internal or dealer box, add codes to \CVOPTION.FIl
-
- ------------------------------------------------------------------------
- :internal
- -- Prime internal, Option number is: 5210 - GCD 4.0 Release
- echo "989898 33172 34202 36998 37764 37253 189" >&TMP1
- SUBR ADOPTION &TMP1 &TMP2
- if not infile &TMP2 Error goto success
- goto dealer
-
- ------------------------------------------------------------------------
- :dealer
- -- Dealer, Option number is: 5210 - GCD 4.0 Release
- echo "999999 37268 38298 39573 40336 39063 234" >&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
- goto re_config
-
- :complete
- --------------------------------------
-
- DISPLAY_TITLE
- echo
- echo
- echo
- echo
- center "When this program terminates you must change to the \GCD4\INSTALL di-"
- center "rectory and type SECURE to install the security codes for this prod-"
- center "uct. Please refer to your security device documentation for security"
- center "code information and procedures. "
- setatt 12 1
- center "You must then reboot your system by typing [Ctrl][Alt][Del]. "
- setatt 15 1
- center "This will complete the installation of the GCD Version 4.00 operating"
- center "environment. "
- echo
- pause
-
- :re_config
- clrwin
- echo
- echo
- echo
- center " If in the future you wish to re-install any of your hardware "
- center " devices, or change the default program parameters, from any "
- center " directory type: "
- echo
- center " CONFIG [Enter] "
- echo
- center " This will take you into the GCD System Configuration Manager, "
- center " which is described in detail in your Release Notes document. "
- echo
- pause
-
- center "Installation Complete !!!!!"
-
- if infile {BOOT}:\config.sys "vdisk" goto vdisk
- if infile {BOOT}:\config.sys "VDISK" goto vdisk
- if infile {BOOT}:\config.sys "ramdriv" goto vdisk
- if infile {BOOT}:\config.sys "RAMDRIV" goto vdisk
- goto cvbox
-
- :vdisk
- ERROR_WINDOW
- center "Warning, not all VDISKs or RAMDRIVEs are compatible with the "
- center "GCD DOS-Extended Edition. They must conform to the Virtual "
- center "Control Program Interface (VCPI) standard to properly coexist "
- center "in extended memory. Please see the GCD Rev 4.00 release notes"
- center "for more information. "
- echo
- pause
- DISPLAY_TITLE
-
- :cvbox
- if not exist {BOOT}:\CVBOX.SYS goto box
- if not infile {BOOT}:\config.sys "{BOOT}:\CVBOX.SYS" goto config
- if not exist \CVOPTION.FIL goto cvopt
- goto info
-
- :box
- echo
- echo
- echo
- echo
- setatt 12 1
- center "The file CVBOX.SYS was not found in the root directory of drive {BOOT}: "
- goto secure
-
- :cvopt
- echo
- echo
- echo
- echo
- setatt 12 1
- center "The file CVOPTION.FIL was not found in the root directory of this drive."
- goto secure
-
- :config
- if infile {BOOT}:\config.sys "{BOOT}:\cvbox.sys" goto info
- echo
- echo
- echo
- echo
- setatt 12 1
- center "The line DEVICE={BOOT}:\CVBOX.SYS was not found in the {BOOT}:\CONFIG.SYS file."
-
- :secure
- setatt 15 1
- echo
- center " Protection installation not complete. Please refer to security "
- center " device documentation for security code information and procedures."
- echo
- pause
- clrwin
-
- :info
- if not exist \GCDINFO.TXT goto cleanup
- type \GCDINFO.TXT
- 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. GCD requires at least 7 Megabytes of disk space"
- center "and 1 Megabyte for Surfaces. "
- echo
- pause
- goto cleanup
-
- :vmem
- ERROR_WINDOW
- center "Warning, VMEM is not compatible with the GCD DOS-Extended Edition."
- center "VMEM does not follow the Virtual Control Program Interface (VCPI) "
- center "standard. Please remove this line from your {BOOT}:\CONFIG.SYS line "
- center "and reboot. "
- echo
- pause
- goto cleanup
-
- :cleanup
- del >nul \diskman.exe
- del >nul \install.dat
- del >nul \install2.dat
- del >nul \error.fil
- del >nul \cvoption.new
- del >nul \&tmp1
- del >nul \&tmp2
- del DMANTMP >nul
- set BOOT=
-
- :end
- exit