home *** CD-ROM | disk | FTP | other *** search
- echo off
- clrwin
-
- -- Rev 2.11 Adv Arch Drafting installation process data file
-
- -------- Begin macro definitions -------------------------------------------
- macro GRAPH_MENU
- echo
- center "Graphics Device Installation"
- echo
- setatt 15 1
- center "The following graphics devices are officially supported by the"
- center "Personal Architect Advanced Archictectural Drafting software. "
- center "Other graphics graphics boards that emulate devices on this "
- center "this list, or that have been tested by your dealer, may also "
- center "work but will not be installed by this process. "
- echo
- center "Call your Dealer if you are unsure of the correct choice, "
- center "or have questions about a device that is not shown. "
- echo
- center "Graphics Device Installation Options:"
- echo
- setatt 10 1
- center "1) AG - Advanced Graphics Medium Res Adapter "
- center "2) PG - IBM Professional Graphics Adapter "
- center "3) TM1 - Tecmar Graphics Master Adapter "
- center "4) AGH - CV Advanced Graphics High Res Adapter"
- center "5) EGA - IBM Enhanced Graphics Adapter "
- echo
- getsel "12345"
- setatt 15 1
- clrwin
- endmac
- ----------------------------------------
- macro DISPLAY_TITLE
- setwin
- setatt 15 1
- clrwin
- setatt 10 1
- title " ADVANCED ARCHITECTURAL DRAFTING INSTALLATION PROCEDURE "
- setatt 15 1
- endmac
- ----------------------------------------
- macro MAIN_MENU
- echo
- echo
- echo
- echo
- echo
- center " Hardware Device Installation Options: "
- echo
- setatt 10 1
- center " 1) Install new graphics device. "
- center " 2) Install protection device. "
- center " 3) Exit to DOS. "
- setatt 15 1
- getsel "123"
- clrwin
- endmac
- ----------------------------------------
- macro BOX_MENU
- echo
- setatt 15 1
- center "The following protection devices are officially supported"
- center "by the Personal Architect Advanced Architectural Drafting"
- center "software. No other devices will work. "
- echo
- center "Call your Dealer if you are unsure of the correct choice."
- echo
- center "Protection Device Installation Options:"
- echo
- setatt 10 1
- center "1) Arnet keyboard box. "
- center "2) Arnet parallel port box."
- center "3) MSS parallel port box. "
- echo
- getsel "1234"
- clrwin
- if select 1 set b=11
- if select 2 set b=21
- if select 3 set b=31
- if select 4 set b=41
- copy {D}padev\CVBOX{b}.SYS {D}padev\CVBOX.SYS >nul
- if select 2 CHK_PARA_BOX
- if select 3 CHK_PARA_BOX
- if select 4 CHK_PARA_BOX
- endmac
- ----------------------------------------
- macro CHK_PARA_BOX
- echo
- center "Parallel Protection Box Installation"
- echo
- center "Protection Box location: "
- echo
- setatt 10 1
- center " 1) Parallel Port # 1 "
- center " 2) Parallel Port # 2 "
- center " 3) Parallel Port # 3 "
- echo
- setatt 15 1
- getsel "123"
- clrwin
- if select 1 echo 1 >\pptmp
- if select 2 echo 2 >\pptmp
- if select 3 echo 3 >\pptmp
- endmac
- ----------------------------------------
-
- -------- End macro definitions -------------------------------------------
-
- -------- Begin execution --------
- DISPLAY_TITLE
-
- -- Set the environment variable D to COMMAND.COM directory prefix
- set D={COMSPEC:1,3}
-
- -- Get current drive spec
- cd >{D}DMANTMP1
- copy DMANPAD+{D}DMANTMP1 {D}DMANTMP >nul
- if "%1" == FROMLOAD goto new
-
- :main
- MAIN_MENU
- if select 1 goto graphic
- if select 2 goto box
- if select 3 goto end
-
- -- Part 1 - New Installation --
- :new
- echo
- setatt 12 1
- center "IMPORTANT!"
- setatt 15 1
- echo
- center " Welcome to the Advanced Architectural Drafting module of Personal "
- center " Architect. To successfully install and run Draft on your system, "
- center " you will need a minimum of 2.5 megabytes of space on your hard disk "
- center " (plus an additional 2.5 megs if you install the symbol libraries). "
- center " "
- center " This installation program will create three new directories on your "
- center " disk, PATOOLS, PADEV, and DRAFT. If any of these conflict with "
- center " an existing directory name, we suggest that you rename the old "
- center " directory. "
- center " "
- center " INSTALL will copy new AUTOEXEC.BAT, CONFIG.SYS, and CVOPTION.FIL "
- center " files into your root directory. If any of these already exist, "
- center " and contain information needed for the operation of your system or "
- center " other software, edit the new version to add your commands. "
- echo
- if infile {D}DMANTMP "A:\" goto overwrite_attempt
- if infile {D}DMANTMP "B:\" goto overwrite_attempt
- setatt 10 1
- center "Do you wish to continue? (Y/N)"
- setatt 15 1
- del {D}DMANTMP*
- getsel "YyNn"
- clrwin
- if select N exit
- if select n exit
- goto test_environment
-
- --------------------------------------
-
- :overwrite_attempt
- center "WARNING: You are attempting to overwrite your Drafting"
- center "Master Diskette. Your current drive and path are:"
- echo
- type {D}DMANTMP
- echo
- center "Please review your Installation Procedure and try again."
- echo
- del {D}DMANTMP*
- goto end
-
- :test_environment
- :test1
- if not exist {D}DRAFT\*.* goto test2
- echo
- echo
- center " WARNING: Directory DRAFT currently exists. If you continue, "
- center " you may overwrite existing files, or load Draft into "
- center " another program's work area. "
- center " "
- center " If you have previously installed this version (2.11) of "
- center " Draft, and you are re-installing it, you can ignore "
- center " this message. "
- echo
- setatt 10 1
- center " Do you wish to continue? (Y/N) "
- setatt 15 1
- del {D}DMANTMP*
- getsel "YyNn"
- clrwin
- if select N exit
- if select n exit
-
- :test2
- if not exist {D}PATOOLS\*.* goto test3
- echo
- echo
- center " WARNING: Directory PATOOLS currently exists. If you continue, "
- center " you may overwrite existing files, or load Draft into "
- center " another program's work area. "
- center " "
- center " If you have previously installed this version (2.11) of "
- center " Draft, and you are re-installing it, or if you have "
- center " already installed the Personal Architect - Architectural"
- center " Design module, you can ignore this message. "
- echo
- setatt 10 1
- center " Do you wish to continue? (Y/N) "
- setatt 15 1
- del {D}DMANTMP*
- getsel "YyNn"
- clrwin
- if select N exit
- if select n exit
- :test3
- if not exist {D}PADEV\*.* goto begin
- echo
- echo
- center " WARNING: Directory PADEV currently exists. If you continue, "
- center " you may overwrite existing files, or load Draft into "
- center " another program's work area. "
- center " "
- center " If you have previously installed this version (2.11) of "
- center " Draft, and you are re-installing it, or if you have "
- center " already installed the Personal Architect - Architectural"
- center " Design module, you can ignore this message. "
- echo
- setatt 10 1
- center " Do you wish to continue? (Y/N) "
- setatt 15 1
- del {D}DMANTMP*
- getsel "YyNn"
- clrwin
- if select N exit
- if select n exit
- -----------------------------------------------------
-
- ------- Initial Diskette Copying -------
- :begin
- md {D}PATOOLS >nul
- md {D}PADEV >nul
- md {D}DRAFT >nul
-
- :disk_1
- :disk1_copy
- echo
- echo
- echo
- echo
- center "Copying files from diskette 1"
- echo
- center "Creating PATOOLS directory..."
- copy a:\PATOOLS {D}PATOOLS >nul
- center "Creating DRAFT directory (Part 1)..."
- copy a:\DRAFT {D}DRAFT >nul
- setatt 12 1
- echo
- center "Diskette 1 copying complete!"
- setatt 15 1
-
- :disk_2
- echo
- center "Please insert Master Drafting Diskette 2 in drive A, and then .."
- beep
-
- :disk2_chk
- pause
- if exist a:disk.2 goto disk2_copy
- setatt 12 1
- center "Incorrect diskette! Please insert diskette 2 and try again."
- beep
- beep
- goto disk2_chk
-
- :disk2_copy
- clrwin
- setatt 15 1
- echo
- echo
- echo
- echo
- center "Copying files from diskette 2"
- echo
- center "Creating DRAFT directory (Part 2)..."
- copy a:\DRAFT {D}DRAFT >nul
- setatt 12 1
- echo
- center "Diskette 2 copying complete!"
- setatt 15 1
- echo
-
- :disk_3
- center "Please insert Master Drafting Diskette 3 in drive A, and then .."
- beep
-
- :disk3_chk
- pause
- if exist a:disk.3 goto disk3_copy
- setatt 12 1
- center "Incorrect diskette! Please insert diskette 3 and try again."
- beep
- beep
- goto disk3_chk
-
- :disk3_copy
- clrwin
- setatt 15 1
- echo
- echo
- echo
- echo
- center "Copying files from diskette 3"
- echo
- center "Creating PADEV directory (Part 1)..."
- copy a:\PADEV {D}PADEV >nul
- setatt 12 1
- echo
- center "Diskette 3 copying complete!"
- setatt 15 1
- goto graphic
-
-
- ------ Graphics Drivers and Menus Load and Install ----------
- :graphic
- beep
- clrwin
- GRAPH_MENU
-
- if select 1 goto disk_4
- if select 2 goto disk_4
- if select 3 goto disk_4
- if select 4 goto disk_5
- if select 5 goto disk_5
-
- :disk_4
- if not "%1" == FROMLOAD goto disk4_old
- echo
- center "Please insert Master Drafting Diskette 4 in drive A, and then .."
- beep
- goto disk4_chk
-
- :disk4_old
- echo
- center "Please make sure Drafting Master Diskette 4 is still in drive A,"
- center "and then .."
- beep
-
- :disk4_chk
- pause
- if exist a:disk.4 goto disk4_copy
- setatt 12 1
- center "Incorrect diskette! Please insert diskette 4 and try again."
- beep
- beep
- goto disk4_chk
-
- :disk4_copy
- clrwin
- setatt 15 1
- echo
- echo
- echo
- echo
- center "Copying On-Screen Menu file from diskette 4"
- if select 1 goto inst_ag
- if select 2 goto inst_pg
- if select 3 goto inst_tm1
-
- :inst_ag
- copy a:\PADEV\AADMENU.AG {D}DRAFT\AADMENU.MNU >nul
- copy a:\PADEV\AADMENU.AG {D}PADEV\AADMENU.AG >nul
- goto next_4
-
- :inst_pg
- copy a:\PADEV\AADMENU.PG {D}DRAFT\AADMENU.MNU >nul
- copy a:\PADEV\AADMENU.PG {D}PADEV\AADMENU.PG >nul
- goto next_4
-
- :inst_tm1
- copy a:\PADEV\AADMENU.TM1 {D}DRAFT\AADMENU.MNU >nul
- copy a:\PADEV\AADMENU.TM1 {D}PADEV\AADMENU.TM1 >nul
- goto next_4
-
- :next_4
- setatt 12 1
- echo
- center "Diskette 4 copying complete. On-screen menus installed!"
- goto drivers
-
- :disk_5
- echo
- center "Please insert Master Drafting Diskette 5 in drive A, and then .."
- beep
-
- :disk5_chk
- pause
- if exist a:disk.5 goto disk5_copy
- setatt 12 1
- center "Incorrect diskette! Please insert diskette 5 and try again."
- beep
- beep
- goto disk5_chk
-
- :disk5_copy
- clrwin
- setatt 15 1
- echo
- echo
- echo
- echo
- center "Copying On-Screen Menu file from diskette 5"
- if select 4 goto inst_agh
- if select 5 goto inst_ega
-
- :inst_agh
- copy a:\PADEV\AADMENU.AGH {D}DRAFT\AADMENU.MNU >nul
- copy a:\PADEV\AADMENU.AGH {D}PADEV\AADMENU.AGH >nul
- goto next_5
-
- :inst_ega
- copy a:\PADEV\AADMENU.EGA {D}DRAFT\AADMENU.MNU >nul
- copy a:\PADEV\AADMENU.EGA {D}PADEV\AADMENU.EGA >nul
- goto next_5
-
- :next_5
- setatt 12 1
- echo
- center "Diskette 5 copying complete. On-screen menus installed!"
- goto drivers
-
- :drivers
- if select 1 goto exeag
- if select 2 goto exepg
- if select 3 goto exetm1
- if select 4 goto exeagh
- if select 5 goto exeega
-
- :exeag
- center " Installing VMI 8820/VMI 8821/CV AG Medium Res Device Drivers..."
- echo
- copy {D}PADEV\devag.fil {D}DRAFT\device.fil >nul
- copy {D}PADEV\devag.fil {D}PADEV\device.fil >nul
- goto autoexec
-
- :exepg
- center " Installing IBM PG/Matrox Device Drivers... "
- echo
- copy {D}PADEV\devpg.fil {D}DRAFT\device.fil >nul
- copy {D}PADEV\devpg.fil {D}PADEV\device.fil >nul
- goto autoexec
-
- :exetm1
- center " Installing Tecmar Graphics Master Device Drivers... "
- echo
- copy {D}PADEV\devtm1.fil {D}DRAFT\device.fil >nul
- copy {D}PADEV\devtm1.fil {D}PADEV\device.fil >nul
- goto autoexec
-
- :exeagh
- center " Installing VMI 8825/CV AG High Res Device Drivers... "
- echo
- copy {D}PADEV\devagh.fil {D}DRAFT\device.fil >nul
- copy {D}PADEV\devagh.fil {D}PADEV\device.fil >nul
- goto autoexec
-
- :exeega
- center " Installing IBM EGA Device Drivers... "
- echo
- copy {D}PADEV\devega.fil {D}DRAFT\device.fil >nul
- copy {D}PADEV\devega.fil {D}PADEV\device.fil >nul
- goto autoexec
-
- :autoexec
- clrwin
- echo
- echo
- echo
- echo
- echo
- center " Installing AUTOEXEC.BAT... "
- if select 1 goto autopg
- if select 2 goto autopg
- if select 3 goto autotm1
- if select 4 goto autopg
- if select 5 goto autotm1
- :autopg
- echo
- copy c:\autoexec.bat c:\autoexec.bak >nul
- copy {D}patools\autoexec.pg c:\autoexec.bat >nul
- goto automsg
- :autotm1
- echo
- copy c:\autoexec.bat c:\autoexec.bak >nul
- copy {D}patools\autoexec.tm1 c:\autoexec.bat >nul
- :automsg
- setatt 15 1
- echo
- echo
- echo
- center "WARNING: Existing AUTOEXEC.BAT file saved as AUTOEXEC.BAK."
- echo
- echo
- beep
- pause
- clrwin
- if not "%1" == FROMLOAD goto main
- ------ End of Graphics Drivers and Menus Load and Install ----------
-
- :lib_message
- clrwin
- echo
- setatt 15 1
- echo
- center "Installing Symbol Libraries"
- echo
- center "If you wish to install the Computervision supplied Drafting symbol"
- center "libraries (diskettes 6, 7, and 8) you can do that on your own at "
- center "any time later. They will not be installed as part of this "
- center "procedure. "
- echo
- center "If you are a new user, or if you have your own set of symbol "
- center "libraries that you use, we recommend that do not install these "
- center "on the hard disk. They can be accessed from a diskette while "
- center "inside Draft. Note that if fully installed, these libraries will "
- center "occupy an additional 2.5 megabytes of space on your hard disk, so "
- center "you may wish to load only selected symbols as required. "
- echo
- beep
- pause
-
- :unit_selection
- clrwin
- beep
- echo
- center "Measurement Unit Selection"
- echo
- center "Select the measurement units that you will be working in. This will"
- center "set the system defaults to be either Metric (Centimeter-based) or "
- center "Imperial (Ft/In-based). "
- echo
- center "1 = Imperial (Feet/Inches)"
- center "2 = Metric (Centimeters)"
- echo
- getsel "12"
- if select 1 goto imperial
- :metric
- copy {D}padev\cvconfgm.fil {D}draft\cvconfig.fil >nul
- goto config
- :imperial
- copy {D}padev\cvconfgi.fil {D}draft\cvconfig.fil >nul
-
- :config
- clrwin
- if not exist c:\config.sys goto copysys
- copy c:\config.sys c:\config.bak >nul
- echo
- echo
- echo
- :copysys
- echo
- echo
- echo
- center " Installing CONFIG.SYS... "
- echo
- copy {D}padev\config.sys c:\ >nul
- echo
- center " WARNING: Existing CONFIG.SYS file saved as CONFIG.BAK. "
- beep
- pause
-
- ------ Protection device selection -----------
- :box
- clrwin
- beep
- BOX_MENU
- echo
- center " Protection driver installed. "
- echo
- center " Note: At the end of this installation process you must "
- center " REBOOT the system by [Ctrl][Alt][Del] if you have "
- center " installed a new protection device. "
- echo
- beep
- pause
- clrwin
- if not "%1" == FROMLOAD goto main
-
- ------ End of protection device selection -----------
-
- ------ Final screen -----------
- :finish_new
- DISPLAY_TITLE
- center "Installation Complete !!!!!"
- echo
- center "You must now reboot your system by typing [Ctrl][Alt][Del] to "
- center "complete the installation of the Advanced Architectural Drafting"
- center "drivers and operating environment. Then type: "
- echo
- center " SECURE [Enter] "
- echo
- center "to begin the process of inserting the software security "
- center "codes for your protection device. Once you have added "
- center "the security codes you can start using Drafting. "
- echo
- center "If at any time in the future you wish to revise the "
- center "installation of your graphics or protection devices "
- center "you should change to the PATOOLS directory and type: "
- echo
- center " INSTALL [Enter] "
- echo
- center "For more information on these procedures refer to your "
- center "Release Notes document. "
-
- :end
-
-