home *** CD-ROM | disk | FTP | other *** search
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * * * *
- * * (c) Copyright 1989-1990, Calera Recognition Systems, Inc., * *
- * * All Rights Reserved. * *
- * * UUI Install Script * *
- * * * *
- * * install_cnf = @(#)rp1200.cnf 1.5 7/28/89, js88 (changes for MCA, mk 2/89)* *
- * * 06/29/89 rkj Adapted for NOMDA ReadPro * *
- * * 03/23/90 changes for WordScan + ,Henryt * *
- * * 04/29/90 adopt pkunzip to compress program ,Henryt * *
- * * 05/21/90 this script is used for 5.25" disks for huey and lewie, henryt * *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
- * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
-
- * ************************************************************************* *
- * *
- * set selected values *
- * *
- * ************************************************************************* *
-
- years "1990"
- name "WordScan Plus"
- dirname "UUI"
- release "1.0"
- dir "C:\CALERA"
- ddir "C:\WORDTEMP"
- az 0
- getmach
-
- * ************************************************************************* *
- * *
- * introduction *
- * *
- * ************************************************************************* *
-
- title
- stitle "Welcome to INSTALL"
-
- show " @bINSTALL@r helps you set up @bWordScan Plus@r on your hard disk by:\n\n"
-
- show " - @bcopying@r the necessary WordScan Plus programs\n"
- show " - telling WordScan Plus what kind of @brecognition device@r you have\n"
- show " - telling WordScan Plus what kind of @bscanners@r you have\n"
- show " - modifying or creating @bsystem configuration@r files\n\n"
-
- show "You can leave the installation program and return to DOS by pressing\n"
- show "@bCTRL-C@r (press and hold down the @bCTRL@r key and press the @bC@r key).\n\n" show "
-
- pause
- clear
-
- * ************************************************************************* *
- * *
- * make sure user has DOS Version 3.0 or above *
- * *
- * ************************************************************************* *
-
- dos 3.0
-
- * ************************************************************************* *
- * *
- * make sure user has at least 450K of RAM *
- * *
- * ************************************************************************* *
-
- memory 400
-
- * ************************************************************************* *
- * *
- * check for a windows installation by find win.ini in the path *
- * *
- * ************************************************************************* *
-
- chkwin no-windows
-
- * ************************************************************************* *
- * *
- * select an install directory *
- * *
- * ************************************************************************* *
-
- title
- stitle "Directory Selection"
-
- show "\nUnless you have very special requirements, you should install \n"
- show "WordScan Plus in the standard directory (#i).\n\n"
- show "Do you want to install @bWordScan Plus@r in the directory\n"
- getdir "@b%s@r?\n"
- show "\n"
-
- * ************************************************************************* *
- * *
- * do size thing *
- * *
- * ************************************************************************* *
-
- *unlink "#i\BIN\INSTALL.TMP"
- *unlink "#i\LIB\INSTALL.TMP"
- *unlink "#i\DIAG\INSTALL.TMP"
- *unlink "#i\LIB\SCANNERS\INSTALL.TMP"
- *unlink "#i\LIB\OIL\INSTALL.TMP"
-
- space 6000
- "#i\BIN\C_ID.EXE"
- "#i\BIN\C_SYNC.EXE"
- "#i\BIN\INPATH.EXE"
- "#i\BIN\S_CONFIG.EXE"
- "#i\BIN\UEDITPRO.EXE"
- "#i\BIN\DIAGNOSE.EXE"
- "#i\BIN\WORDSCAN.EXE"
- "#i\BIN\W2BIFFW.EXE"
- "#i\BIN\W2LOTUSW.EXE"
- "#i\BIN\W4W????.EXE"
- "#i\BIN\UFILTER.EXE"
- "#i\BIN\CDP.EXE"
- "#i\BIN\W3DCOL.EXE"
- "#i\BIN\UFILTER.EXE"
- "#i\BIN\LADYHAWK.EXE"
- "#i\BIN\PASS??.EXE"
- "#i\BIN\CALEMS?.EXE"
- "#i\BIN\TMKDLL.???"
-
- "#i\DIAG\EMM_SIZE.EXE"
-
- "#i\LIB\CIL.ERR"
- "#i\LIB\OIL.ERR"
-
-
-
-
- "#i\DIAG\P3DUMP.EXE"
-
- "#i\LIB\DIAG.BIN"
-
-
-
- "#i\LIB\PCCDP.BIN"
-
-
- "#i\LIB\SCANNERS\*.WDR"
- "#i\LIB\OIL\*.WIL"
-
- "#i\LIB\UUI\*.*"
- end
-
- * ************************************************************************* *
- * *
- * create the required directories *
- * *
- * ************************************************************************* *
-
- mkdir "#i\BIN"
- mkdir "#i\LIB"
- mkdir "#i\DIAG"
- mkdir "#i\LIB\UUI"
- mkdir "#i\LIB\SCANNERS"
- mkdir "#i\LIB\OIL"
- * ************************************************************************* *
- * *
- * select a data directory *
- * *
- * ************************************************************************* *
-
- title
- stitle "Directory Selection"
-
- getddir "Do you want to use the directory @b%s@r to store your temporary files?\n"
- mkdir "#h"
-
- * ************************************************************************* *
- * *
- * copy stuff on install disk *
- * *
- * ************************************************************************* *
- title
- stitle "Copying Programs"
- show "\nPlease wait...\n\n"
- disk "WS-01" "##1 Installation"
- copy "#a\PKUNZIP.EXE" "#i\BIN\%s"
- copy "#a\README.TXT" "#i\DIAG\%s"
- ifeqn "#o" "1" 1 select-dev
- show "Copying @b#a\CALERA\BIN\DIAGNOSE.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\DIAGNOSE #i\BIN"
- show "Copying @b#a\CALERA\BIN\BIN.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\BIN #i\BIN"
- show "Copying @b#a\CALERA\BIN\W3DCOL.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\W3DCOL #i\BIN"
- show "Copying @b#a\CALERA\DIAG\DIAG.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\DIAG\DIAG #i\DIAG"
- show "Copying @b#a\CALERA\LIB\LIB.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\LIB\LIB #i\LIB"
- show "Copying @b#a\CALERA\LIB\UUI\UUI.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\LIB\UUI\UUI #i\LIB\UUI"
- show "Copying @b#a\CALERA\LIB\OIL\OIL.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\LIB\OIL\OIL #i\LIB\OIL"
- show "Copying @b#a\CALERA\BIN\UEDITPRO.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\UEDITPRO #i\BIN"
- show "Copying @b#a\CALERA\BIN\HELP.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\HELP #i\BIN"
-
- * ************************************************************************* *
- * *
- * find out recognition product *
- * *
- * ************************************************************************* *
-
- label select-dev
- title
- stitle "Copying Programs"
-
- disk "WS-02" "##2 Recognition"
-
- find "#a\CALERA\LIB\PCCDP.ZIP" do_card
- find "#a\CALERA\BIN\PASS.ZIP" do_lady
-
- show "@bERROR:@rInstall cannot figure out what product it is.\n"
- goto contact
-
- * ************************************************************************* *
- * *
- * configure WordScan Plus (ladyhawk) *
- * *
- * ************************************************************************* *
- label do_lady
- clear
- *title
- *stitle "Connection to WordScan Plus"
- devname rsp:CALisrc,1,0
- ifeqn "#o" "1" 1 disk3
- *pause
- title
- stitle "Copying Programs"
-
- disk "WS-02" "##2 Recognition"
- show "\nPlease wait...\n\n"
- show "Copying @b#a\CALERA\BIN\PASS.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\PASS.ZIP #i\BIN"
- show "Copying @b#a\CALERA\BIN\CALEMS.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\CALEMS.ZIP #i\BIN"
- show "Copying @b#a\CALERA\DIAG\DIAG.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\DIAG\DIAG.ZIP #i\DIAG"
-
- goto disk3
-
- * ************************************************************************* *
- * *
- * configure recognition card *
- * *
- * ************************************************************************* *
-
- label do_card
-
- title
- ifeqn "#e" "mc" 2 dn_mc
- stitle "Connection to WordScan Plus AT Card"
- devname atbus:
- goto copyp
- label dn_mc
- stitle "Connection to WordScan Plus MCA Card"
- devname mca
- label copyp
-
- ifeqn "#o" "1" 1 download_p3
-
- title
- stitle "Copying Programs"
-
- disk "WS-02" "##2 Recognition"
- show "\nPlease wait...\n\n"
- show "Copying @b#a\CALERA\BIN\BIN.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\BIN.ZIP #i\BIN"
- show "Copying @b#a\CALERA\DIAG\DIAG.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\DIAG\DIAG.ZIP #i\DIAG"
- show "Copying @b#a\CALERA\LIB\PCCDP.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\LIB\PCCDP.ZIP #i\LIB"
-
- * ************************************************************************* *
- * *
- * download code to phase 3 *
- * *
- * ************************************************************************* *
-
- label download_p3
- title
- stitle "Initializing Recognition Card"
- cdp #d #i\LIB\SCANNERS/#f #i\LIB\PCCDP.BIN exec-fail
- pause
- goto skip-exec
-
- label exec-fail
- show "\n\n\n\n\n\n\n"
- show "Error: @b#1@r\n\n"
- goto not-done
-
- label skip-exec
- goto p3-test
-
- label p3-test
-
- title
- stitle "Testing Recognition Device"
-
- show "The installation program is now testing your recognition device. This test\n"
- show "should take @b no longer than 30 seconds.@r If the test does take more than 30\n"
- show "seconds, you might have to reboot your computer. Please refer to @bWordScan@r\n"
- show "@bPlus@r installation instructions in this case.\n\n"
-
- show "Please wait... "
-
- test "#d" test-fail
- goto test-skip
-
- label test-fail
- clear
- stitle "Recognition Device Error"
- show "The Recognition Device Test has failed on @b#d@r.\n"
- show "(Error ###1: #2)\n\n"
-
- show "Please verify that the recognition device is installed correctly:\n\n"
-
- show " 1. Check the @binterface cables@r and make sure that you have\n"
- show " secure connections.\n"
- show " 2. Check @bpower cords@r and @bswitches@r and make sure that everything\n"
- show " is turned on.\n"
- show " 3. Once you have checked these things, please put the instal-\n"
- show " lation disk in @bDrive #a@r, type @b#aINSTALL@r, and press the\n"
- show " @bEnter@r key.\n\n"
- goto contact
-
- label test-skip
- show "done. Test succeeded.\n\n"
- show "Your @bRecognition Device@r is selected and operational.\n"
- pause
-
- ifeqn "#o" "1" 1 disk3
-
-
- * ************************************************************************* *
- * *
- * copy programs /conversions *
- * *
- * ************************************************************************* *
- label disk3
- title
- stitle "Copying Programs"
- disk "WS-03" "##3 Drivers"
- ifeqn "#o" "1" 1 pick_sc1
- show "\nPlease wait...\n\n"
- show "Copying @b#a\CALERA\BIN\W4W.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\W4W.ZIP #i\BIN"
- show "Copying @b#a\CALERA\BIN\UFILTER.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\UFILTER.ZIP #i\BIN"
- show "Copying @b#a\CALERA\BIN\W4W2.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\W4W2.ZIP #i\BIN"
- show "Copying @b#a\CALERA\BIN\WORDSCAN.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\BIN\WORDSCAN.ZIP #i\BIN"
- show "Copying @b#a\CALERA\LIB\SCANNERS\FILTERS.ZIP@r\n"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\LIB\SCANNERS\FILTERS.ZIP #i\LIB\SCANNERS"
-
-
- * ************************************************************************* *
- * *
- * scanner selection *
- * *
- * ************************************************************************* *
- label pick_sc1
- title
- stitle "Scanner Selection"
- show "\nPlease wait...\n\n"
- show "Copying @b#a\CALERA\LIB\SCANNERS\SCANNERS.ZIP@r\n"
- mkdir "#i\TMP"
- mkdir "#i\TMP\MCASCANS"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\LIB\MCASCANS\MCASCANS.ZIP #i\TMP\MCASCANS"
- mkdir "#i\TMP\SCANNERS"
- spawnv "#i\BIN\PKUNZIP #p #a\CALERA\LIB\SCANNERS\SCANNERS.ZIP #i\TMP\SCANNERS"
-
- title
- stitle "Scanner Selection"
- scanner "WS-03" "##3 Drivers" setsil-error
- system "del #i\TMP\SCANNERS\*.WDR"
- system "del #i\TMP\SCANNERS\*.TST"
- system "del #i\TMP\SCANNERS\*.SDC"
- system "del #i\TMP\MCASCANS\*.WDR"
- system "rd #i\TMP\MCASCANS"
- system "rd #i\TMP\SCANNERS"
- system "rd #i\TMP"
- label end_scanners
-
-
- * ************************************************************************* *
- * *
- * take out disks *
- * *
- * ************************************************************************* *
-
- title
- stitle "Remove Disk"
-
- show "\nPlease remove the @b##3 Drivers Disk@r and save it with\n"
- show "the other installation disks in a safe place.\n\n"
-
- pause
-
- * ************************************************************************* *
- * *
- * modify batch file *
- * *
- * ************************************************************************* *
- label done
- uui
- title
- stitle "Modifying Batch Files"
-
- batch
-
- * ************************************************************************* *
- * *
- * modify config.sys (set buffers=20) *
- * *
- * ************************************************************************* *
-
- buffers "Modify CONFIG.SYS" 20
-
- * ************************************************************************* *
- * *
- * done *
- * *
- * ************************************************************************* *
-
- title
- stitle "Diagnose Programs"
- show "A system diagnose program will check your system environment\n"
- show "to ensure your WordScan Plus installed correctly.\n"
- show "If you want to run the system diagnose program, type \n"
- show "@b#i\BIN\CHECKOUT@r to launch the system diagnose program. \n"
- pause
- title
- stitle "Installation Complete"
-
- show "You have selected the following installation parameters.\n\n"
-
- show " Install Directory: @b#i@r\n"
- show " Data Directory: @b#h@r\n\n"
-
- ifeqn "#d" "rsp" 3 sw_only
-
- show " Recognition Device: @b#d@r\n"
- label sw_only
- show " Default Image Scanner: @b#c@r\n\n"
-
- show "\n@bWordScan Plus@r has been installed. Please reboot your\n"
- show "machine at this time by pressing Ctrl, Alt, and Del keys all at the\n"
- show "same time. After this, enter @bwin wordscan@r to run\n"
- show "@bWordScan Plus@r.\n"
- show "\n\nHappy Recognition !!!\n"
- exit 0
-
- * ************************************************************************* *
- * *
- * handle errors *
- * *
- * ************************************************************************* *
-
- * ************************************************************************* *
- * *
- * windows not installed *
- * *
- * ************************************************************************* *
-
- label no-windows
-
- title
- stitle "Windows Is Not Installed"
- show "Install can not find @bMicrosoft Windows@r in the PATH.\n"
- show "@bWordScan Plus@r runs as an application under @bMicrosoft Windows.@r In\n"
- show "order for this installation to be successful, @bMicrosoft Windows@r\n"
- show "must first be installed. Please do this now and then return to\n"
- show "this installation.\n\n"
-
- goto not-done1
-
-
- * ************************************************************************* *
- * *
- * handle control-c events *
- * *
- * ************************************************************************* *
-
- label control-c
-
- title
- stitle "Control-C"
-
- goto not-done1
-
- * ************************************************************************* *
- * *
- * go here if the installation is not done *
- * *
- * ************************************************************************* *
-
- label not-done
-
- show "The installation has been halted, and is not complete. @bWordScan@r\n"
- show "@bPlus@r will not run properly on your computer until you finish the\n"
- show "installation. You can restart the installation by putting the @bInstallation@r \n"
- show "disk in drive @b#a@r, typing @b#aINSTALL@r, and pressing @bEnter.@r\n\n"
-
- goto contact
-
- label not-done1
-
- show "The installation has been halted, and is not complete. @bWordScan@r\n"
- show "@bPlus@r will not run properly on your computer until you finish the\n"
- show "installation. You can restart the installation by putting the @bInstallation@r \n"
- show "disk in drive @b#a@r, typing @b#aINSTALL@r, and pressing @bEnter.@r\n\n"
- exit 99
- * ************************************************************************* *
- * *
- * wrong version of DOS *
- * *
- * ************************************************************************* *
-
- label dos-version
-
- title
- stitle "DOS Version Check"
-
- show "This software requires @bDOS Version #1@r or higher. You are now running @bDOS\n"
- show "@bVersion #2.@r\n\n"
-
- show "You will need to install a new version of DOS before you can install this\n"
- show "software.\n\n"
-
- goto not-done1
- * ************************************************************************* *
- * *
- * not enough RAM in the computer *
- * *
- * ************************************************************************* *
-
- label no-ram
-
- title
- stitle "Not Enough Memory"
-
- show "This software requires at least @b#1 bytes@r of available memory in your\n"
- show "computer. You have only @b#2 bytes@r free.\n\n"
-
- show "You will need to install more memory or remove any terminate but stay\n"
- show "resident programs before you can install this software.\n\n"
-
- goto not-done1
- * ************************************************************************* *
- * *
- * not enough disk space *
- * *
- * ************************************************************************* *
-
- label disk-space
-
- title
- stitle "Disk Space Check"
-
- show "This software requires at least @b#1 Kbytes@r of disk space. You have only\n"
- show "@b#2 Kbytes@r of space available on drive @b#u@r.\n\n"
-
- show "You will need to erase or move some files before you can install this\n"
- show "software.\n\n"
-
- goto not-done
-
- * ************************************************************************* *
- * *
- * got read error during copy *
- * *
- * ************************************************************************* *
-
- label read-error
-
- title
- stitle "Disk Read Error"
-
- show "The installation program has encountered a problem while trying to copy a\n"
- show "program. The error, on file @b#1@r, is @b#3@r.\n\n"
-
- show " - make sure the diskette is undamaged.\n"
- show " - make sure the diskette was inserted in the drive correctly, and\n"
- show " that the diskette drive drawer was closed.\n"
- show " - if you have a network or security program, make sure that you\n"
- show " have write permission for the file listed.\n"
- show " - check your diskette drive using the testing programs that came\n"
- show " with your computer. (usually called SETUP or TEST).\n\n"
-
- goto not-done
-
- * ************************************************************************* *
- * *
- * got write error during copy *
- * *
- * ************************************************************************* *
-
- label write-error
-
- title
- stitle "Disk Write Error"
-
- show "The installation program has encountered a problem while trying to copy a\n"
- show "program. The error, on file @b#2@r, is @b#3@r.\n\n"
-
- show " - make sure your hard disk is not full.\n\n"
-
- show " - check your hard disk using the testing programs that came with\n"
- show " your computer. (usually called @bSETUP@r or @bTEST@r).\n\n"
-
- show " - reboot your computer, run @bCHKDSK@r (described in your @bDOS manual@r),\n"
- show " and try again.\n\n"
-
- goto not-done
-
- * ************************************************************************* *
- * *
- * got hard error while checking directory *
- * *
- * ************************************************************************* *
-
- label dir-error
-
- title
- stitle "Directory Search Error"
-
- show "The installation program has encountered a problem while trying to examine a\n"
- show "program. The error, searching @b#1@r, is @b#2@r.\n\n"
-
- show " - check your hard disk using the testing programs that came with\n"
- show " your computer. (usually called @bSETUP@r or @bTEST@r).\n\n"
-
- show " - reboot your computer, run @bCHKDSK@r (described in your @bDOS manual@r),\n"
- show " and try again.\n\n"
-
- show " - make sure the diskette was inserted in the drive correctly, and\n"
- show " that the diskette drive drawer was closed.\n\n"
-
- goto not-done
-
- * ************************************************************************* *
- * *
- * all errors come here eventually. *
- * *
- * ************************************************************************* *
-
- label contact
-
- diagnose
- show "Please check your @bWordScan Troubleshooting Guide@r for assistance.\n"
- show "If you want to use a separate scanner, also check the @bScanner Interface Card@r\n"
- show "and @bScanner@r installation instructions.\n"
- show "\n\nYou may also run system diagnose program by type in \n"
- show "@I#i\bin\checkout@r to inspect your system environment.\n"
- exit 99
-