home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 4 Drivers / 04-Drivers.zip / kipp212.zip / RUNOS2.INF < prev   
Text File  |  1995-10-04  |  19KB  |  733 lines

  1. ;;
  2. ;; Installation script for KIPP 2.12 DRIVER files
  3. ;;
  4. ;; NOTE: This program must be 'compiled' by 'awk' using the
  5. ;;     'build.awk' program. The 'compiler' supports the
  6. ;;     following C-style preprocessor commands:
  7. ;;
  8. ;;    #include "file-name"
  9. ;;    #define FLAG
  10. ;;    #ifdef FLAG     Nesting of #ifdef or #ifndef is
  11. ;;    #ifndef FLAG    not allowed
  12. ;;    #else           No parameter, but rest of line
  13. ;;    #endif          ignored, allowing "#endif FLAG"
  14. ;;
  15. ;;     The awk/builder ('compiler') also allows arguments
  16. ;;     on the command line to define flags:
  17. ;;
  18. ;;    AWK -F BUILD.AWK MAIN.STF WIN > KIPP20.INF
  19. ;;
  20.  
  21.  
  22.  
  23.  
  24. ;;
  25. ;; Variable definitions for KIPPII installation script
  26. ;;
  27.  
  28. DefineVariables
  29.     Number    [TmpCount] := 0        ;; Temporary count.
  30.     Number    [NumEngs] := 0        ;; Number of engines currently configured.
  31.     Number    [CurEng] := 0        ;; Current engine.
  32.     Number    [NumKIPPSW] := 0    ;; Number of configured KIPP S/W engines.
  33.     Number    [Num910] := 0        ;; Number of configured KF-910 engines.
  34.  
  35.     Number    [MaxEngines] := 4
  36.     Number    [Menu1] := 1    ;; Kofax Toolkit/Driver Installation menu
  37.     Number    [Menu2] := 1    ;; Kofax Scanner Configuration
  38.     Number    [Menu3] := 1    ;; Select Target Directories menu
  39.     Number    [Menu4] := 1    ;; Kofax Software Installation menu
  40.     Number    [Menu5] := 1    ;; Kofax Engine Type to Add menu
  41.     Number    [Menu11] := 1
  42.     Number    [Menu12] := 1
  43.  
  44.     Number    [Flag] := 0        ;; Has the configuration changed?
  45.     Number    [InstallBIN] := 0    ;; Did we install to the BIN directory?
  46.     Number    [NeedFFPort] := 0    ;; Does this printer need an external
  47.                     ;; port for the Form-Feed?
  48.     Number    [IsMCA] := 0        ;; Is this machine a Micro Channel Architecture machine?
  49.  
  50.     Number    [PBoard] := 0
  51.     Number    [PrinterPort] := 0
  52.     Number    [PrinterMem] := 0
  53.  
  54.     Number    [SBoard] := 0
  55.  
  56.     Text    [FileBIC_CFG] := ""
  57.     Text    [FileBIC_CMD] := ""
  58.     Text    [FileLOADFW] := ""
  59.     Text    [FileKIPPCFG_CFG] := ""
  60.     Text    [FileBICLDR] := ""
  61.  
  62.     Text    [PMake] := ""
  63.     Text    [PModel] := ""
  64.     Text    [PModelId] := ""
  65.     Text    [PPort] := ""
  66.     Text    [PDesc] := ""
  67.  
  68.     Text    [SMake] := ""
  69.     Text    [SModel] := ""
  70.     Text    [SDesc] := ""
  71.     Text    [SOptions] := ""
  72.  
  73.     Text    [Type] := ""
  74.     Text    [IOPorts] := ""
  75.     Text    [Interrupt] := ""
  76.     Text    [LogicalName] := ""
  77.     Text    [CommandFile] := ""
  78.  
  79.     Text    [Engine1] := ""
  80.     Text    [Peri1] := ""
  81.     Text    [TempText21] := ""
  82.  
  83.     Text    [Engine2] := ""
  84.     Text    [Peri2] := ""
  85.     Text    [TempText22] := ""
  86.  
  87.     Text    [Engine3] := ""
  88.     Text    [Peri3] := ""
  89.     Text    [TempText23] := ""
  90.  
  91.     Text    [Engine4] := ""
  92.     Text    [Peri4] := ""
  93.     Text    [TempText24] := ""
  94.  
  95.     Text    [OneSpace] := " "
  96.     Text    [TempText] := ""
  97.  
  98.     Text    [MainTitle] := ""
  99.     Text    [FilePR_INI] := ""
  100.     Text    [FileSC_INI] := ""
  101.     Text    [DefPaperSize] := ""
  102. EndDefineVariables
  103.  
  104.  
  105.  
  106.  
  107.  
  108. [MainTitle] := "KIPP 2.12 Driver Installation For OS/2"
  109.  
  110. ;;
  111. ;; Common exit routine
  112. ;;
  113.  
  114.  
  115. ;;
  116. ;; Check if user really wants to exit
  117. ;;
  118. Procedure CheckExit
  119.   Dialog [YesOrNo1] WhiteOnRed
  120.     Do you really want to exit this program?
  121.   EndDialog
  122.   If [YesOrNo1] = YesCharacter
  123.     SoLong
  124.   EndIf
  125. EndProcedure
  126.  
  127. ;;
  128. ;;  Common initialization code
  129. ;;
  130.  
  131.  
  132. SetAllowExit Off
  133. LetButton <Esc> Do CheckExit
  134.  
  135.  
  136. SetMainBorderTo wide
  137. SetTopLineTo [MainTitle]
  138.  
  139. SetReplacementInquiry off
  140. SetReadOnlyInquiry on
  141.  
  142.  
  143.  
  144. If OS2
  145. Else
  146.   Dialog WhiteOnRed
  147.     This installation utility is designed
  148.     to be run from an OS/2 command shell not
  149.     from a DOS command shell.
  150.   EndDialog
  151.   SoLong
  152. Endif
  153.  
  154. Dialog
  155.   BlankString
  156.   Welcome to the Kofax Image Products KIPP
  157.   installation procedure. Please read all the
  158.   instructions at each step before proceeding.
  159.  
  160.   Pressing the <Esc> key at any time will abort
  161.   the installation procedure.
  162. EndDialog
  163.  
  164.  
  165. [FileBIC_CFG] := EnvironmentStringFor BICCFG
  166. [String1] := [FileBIC_CFG]
  167. Do BreakPath
  168. [FileKIPPCFG_CFG] := [String3]\KIPPCFG.CFG
  169. Do GetDirsFromKIPPCFG_CFG
  170. If [Dir1] <> BlankString
  171.   Dialog [YesOrNo1]
  172.     An existing KIPP installation has been found.
  173.     The following directories will be used for the
  174.     installation unless you wish to change them:
  175.     BlankString
  176.     Base directory:   [InstallationDirectory]
  177.     DRIVER directory: [Dir1]
  178.     BIN directory:    [Dir2]
  179.     IMGS directory:   [Dir3]
  180.     BlankString
  181.     Do you wish to use these same directories?
  182.   EndDialog
  183.   If [YesOrNo1] = NoCharacter
  184.     [Dir1] := BlankString
  185.   Endif
  186. Endif
  187.  
  188. If [Dir1] = BlankString
  189.   Do SetDirectories
  190.   Do GetDir1
  191.   Do GetDir2
  192.   Do GetDir3
  193. Endif
  194.  
  195. [Menu1] := 1
  196.  
  197. :Start
  198.  
  199. GetMenuChoice Highlight [Menu1] UseHeader "Kofax Driver Installation"
  200.   1. View README.TXT File
  201.     ; This file contains the latest information
  202.     ; regarding this Kofax product.
  203.   2. Change Target directory and drive
  204.     ; Current target directory is [InstallationDirectory].
  205.   3. Install KIPP software
  206.     ; Create directories as necessary and
  207.     ; copy driver files, runtime libraries
  208.     ; and sample programs to your system.
  209.   4. Exit
  210.     ; Exit the program.
  211. EndGetMenuChoice
  212.  
  213. InCase Choice is
  214.   =1:
  215.        [Menu1] := 3
  216.        LetButton <Esc> Do Nothing
  217.        BrowseFile [InstallFromDirectory]README.TXT UseHeader "Kofax README File - Use <Esc> to Exit"
  218.        LetButton <Esc> Do CheckExit
  219.        GoTo Start
  220.   =2:  
  221.        [Menu1] := 3
  222.        Do ChangeDirectories
  223.        GoTo Start
  224.   =3:  
  225.        [Menu1] := 4
  226.        Do SoftwareInstall
  227.        GoTo Start
  228.   =4:  
  229.        Do Finish
  230. EndInCase
  231.  
  232.  
  233. ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
  234.  
  235.  
  236. ;;
  237. ;; SETDIRS.STF -- Set/Change the runtime directories.
  238. ;;
  239.  
  240. ;;
  241. ;; SetDirectories
  242. ;;
  243. ;;  Variable    Default    Description
  244. ;;
  245. ;;  [ Dir1 ]    DRIVER    Driver/FW directory
  246. ;;  [ Dir2 ]    BIN    Runtime, Tools, Sample programs
  247. ;;  [ Dir3 ]    BIN    Sample images
  248. ;;
  249. Procedure SetDirectories
  250.  
  251.   [InstallationDirectory] := C:\KIPP
  252.  
  253.   DetermineInstallationDirectory
  254.  
  255.   [Dir1] := [InstallationDirectory]\DRIVER
  256.   [Dir2] := [InstallationDirectory]\BIN
  257.   [Dir3] := [InstallationDirectory]\BIN
  258.  
  259. EndProcedure ;; SetDirectories
  260.  
  261. ;;
  262. ;; ChangeDirectories
  263. ;;
  264. ;;  o Dir1 -- Driver/FW directory
  265. ;;  o Dir2 -- Sample programs
  266. ;;  o Dir3 -- Sample images
  267. ;;
  268. Procedure ChangeDirectories
  269.  
  270. [Menu3] := 1
  271.  
  272. :ChangeDir_1
  273.  
  274.   GetMenuChoice Highlight [Menu3] UseHeader "Select Target Directories"
  275.     1. Change Base Directory and/or Drive
  276.       ; Current: '[InstallationDirectory]'
  277.       ; WARNING! All subdirectories will be
  278.       ; set to back to their default paths
  279.       ; relative to the base directory.
  280.     2. Change Driver Directory
  281.       ; Current: '[Dir1]'
  282.       ; Select directory for firmware,
  283.       ; drivers, and configuration files.
  284.     3. Change Runtime Directory
  285.       ; Current: '[Dir2]'
  286.       ; Select directory for runtime files,
  287.       ; tools, and sample programs.
  288.     4. Change Sample Images Directory
  289.       ; Current: '[Dir3]'
  290.       ; Select directory for sample
  291.       ; image files.
  292.     5. Return to previous menu
  293.   EndGetMenuChoice
  294.  
  295.   InCase Choice is
  296.     =1:  
  297.          [Menu3] := 2
  298.      Do SetDirectories
  299.          GoTo ChangeDir_1
  300.     =2:  
  301.          [Menu3] := 3
  302.      Do GetDir1
  303.          GoTo ChangeDir_1
  304.     =3:  
  305.          [Menu3] := 4
  306.      Do GetDir2
  307.          GoTo ChangeDir_1
  308.     =4:  
  309.          [Menu3] := 5
  310.      Do GetDir3
  311.          GoTo ChangeDir_1
  312.     =5:  
  313.      Exit
  314.   EndInCase
  315.  
  316. EndProcedure ;; ChangeDirectories
  317.  
  318.  
  319. Procedure GetDir1
  320.   Dialog [Dir1] 63 UseHeader "Select Driver Directory" UpperCase
  321.     Select the target directory for firmware, drivers
  322.     and firmware loader command files.
  323.   EndDialog
  324. EndProcedure ;; GetDir1
  325.  
  326. Procedure GetDir2
  327.   Dialog [Dir2] 63 UseHeader "Select Runtime Directory" UpperCase
  328.     Select the target directory for the runtime files, tools,
  329.     sample programs and engine configuration files.
  330.   EndDialog
  331. EndProcedure ;; GetDir2
  332.  
  333. Procedure GetDir3
  334.   Dialog [Dir3] 63 UseHeader "Select Sample Image Directory" UpperCase
  335.     Select the target directory for the sample image files.
  336.   EndDialog
  337. EndProcedure ;; GetDir3
  338.  
  339.  
  340. ;;
  341. ;; StripTrailingBackSlash -- Removes any trailing backslash characters from
  342. ;;                 [String1].
  343. ;;
  344. ;; Inputs:  [String1]
  345. ;; Outputs: [String1]
  346. ;;
  347. ;;
  348. Procedure StripTrailingBackSlash
  349.   [Number1] := LengthOf [String1]
  350.   If [Number1] > 0
  351.     [String4] := SubstringOf [String1] from [Number1] to END
  352.     DecrementNumber [Number1]
  353.     [Number2] := PositionOf "\" in [String4]
  354.     If [Number2] > 0
  355.       [String1] := SubstringOf [String1] from START to [Number1]
  356.     EndIf
  357.   Endif
  358. EndProcedure ;; StripTrailingBackSlash
  359.  
  360. ;;
  361. ;; Break [String1] into its component parts:
  362. ;;
  363. ;; [String3] becomes 'DRIVE:\DIR\..\SUBDIR'
  364. ;; [String4] becomes 'FILENAME.EXT'
  365. ;;
  366. Procedure BreakPath
  367.   Do StripTrailingBackSlash
  368.   [String4] := [String1]
  369.  
  370. :BreakPath_1
  371.   ;;
  372.   ;; Find File Name Loop
  373.   ;;
  374.   [Number1] := PositionOf "\" in [String4]
  375.   If [Number1] > 0
  376.     IncrementNumber [Number1]
  377.     [String4] := SubstringOf [String4] from [Number1] to END
  378.     GoTo BreakPath_1
  379.   EndIf
  380.  
  381.   If [String4] = BlankString
  382.     [String3] := BlankString
  383.   Else
  384.     [Number1] := PositionOf [String4] in [String1]
  385.     DecrementNumber [Number1]
  386.     DecrementNumber [Number1]
  387.     [String3] := SubstringOf [String1] from BEGINNING to [Number1]
  388.   Endif
  389.  
  390. EndProcedure ;; BreakPath
  391.  
  392. ;;
  393. ;; WriteKIPPCFG
  394. ;;
  395. ;; Write KIPPCFG.CFG based on current directory settings.
  396. ;;
  397. Procedure WriteKIPPCFG
  398.   [FileKIPPCFG_CFG] := [Dir2]\KIPPCFG.CFG
  399.  
  400.   CreateDirectoryIfNecessary [Dir2]
  401.  
  402.   DeleteFiles from [Dir2] Quietly
  403.     KIPPCFG.CFG
  404.   EndDeleteFiles
  405.  
  406.   CreateFile [FileKIPPCFG_CFG]
  407.   AppendFile [FileKIPPCFG_CFG]
  408.     REM
  409.     REM KIPPCFG.CFG - The KIPP Driver Configuration settings file.
  410.     REM               This file contains the directory settings used by
  411.     REM               the installation program.
  412.     REM WARNING: Do NOT delete or modify this file or the BIC.CFG file.
  413.     REM
  414.     BASE=[InstallationDirectory]
  415.     BIN=[Dir2]
  416.     IMGS=[Dir3]
  417.     DRIVER=[Dir1]
  418.   EndAppendFile
  419. EndProcedure ;; WriteKIPPCFG
  420. ;;
  421. ;; GETDIRS.STF -- Get the runtime directories from the KIPPCFG.CFG file.
  422. ;;
  423.  
  424. ;;
  425. ;;  Variable    Default    Description
  426. ;;
  427. ;;  [ Dir1 ]    DRIVER    Driver/FW directory
  428. ;;  [ Dir2 ]    BIN    Runtime, Tools, Sample programs
  429. ;;  [ Dir3 ]    BIN    Sample images
  430. ;;
  431.  
  432. ;;
  433. ;; GetDirsFromKIPPCFG_CFG
  434. ;;
  435. ;; Read the directories from the KIPPCFG.CFG file.
  436. ;; Set [Dir1], [Dir2], and [Dir3].
  437. ;;
  438. ;;
  439. Procedure GetDirsFromKIPPCFG_CFG
  440.   If FileExists [FileKIPPCFG_CFG]
  441.     ExamineTextFile [FileKIPPCFG_CFG]
  442.  
  443.     [TmpCount] := LineNumberWith (BASE=,,)
  444.     If [TmpCount] > 0
  445.       [TempText] := Line [TmpCount]
  446.       [TempText] := SubstringOf [TempText] from 6 to end
  447.       [InstallationDirectory] := [TempText]
  448.     Endif
  449.  
  450.     [TmpCount] := LineNumberWith (DRIVER=,,)
  451.     If [TmpCount] > 0
  452.       [TempText] := Line [TmpCount]
  453.       [Dir1] := SubstringOf [TempText] from 8 to end
  454.     Endif
  455.  
  456.     [TmpCount] := LineNumberWith (BIN=,,)
  457.     If [TmpCount] > 0
  458.       [TempText] := Line [TmpCount]
  459.       [Dir2] := SubstringOf [TempText] from 5 to end
  460.     Endif
  461.  
  462.     [TmpCount] := LineNumberWith (IMGS=,,)
  463.     If [TmpCount] > 0
  464.       [TempText] := Line [TmpCount]
  465.       [Dir3] := SubstringOf [TempText] from 6 to end
  466.     Endif
  467.  
  468.     ForgetTextFile
  469.   Else
  470.     [InstallationDirectory] := BlankString
  471.     [Dir1] := BlankString
  472.     [Dir2] := BlankString
  473.     [Dir3] := BlankString
  474.   EndIf ;; FileExists
  475. EndProcedure ;; GetDirsFromKIPPCFG_CFG
  476.  
  477.  
  478.  
  479. ;;
  480. ;; Software Install
  481. ;;
  482. ;;  o Select destination directories
  483. ;;  o Select software groups to be installed
  484. ;;  o Install software
  485. ;;
  486. Procedure SoftwareInstall
  487.  
  488.   [Menu4] := 1
  489.  
  490. :SWInstall_1
  491.  
  492.   GetMenuChoice Highlight [Menu4] UseHeader "Kofax Software Installation"
  493.     1. Complete Software Install
  494.       ; Proceed with complete installation.
  495.     2. Install Selected Software
  496.       ; Choose software to be installed
  497.       ; from one or more software groups.
  498.     3. Return to previous menu
  499.   EndGetMenuChoice
  500.  
  501.   InCase Choice is
  502.     =1:
  503.          Do InstallAll
  504.      [Menu4] := 3
  505.     =2:  
  506.          [Menu4] := 3
  507.          Do SelectSoftware
  508.     =3:  
  509.          Exit
  510.   EndInCase
  511.   GoTo SWInstall_1
  512. EndProcedure ;; SoftwareInstall
  513.  
  514. ;;
  515. ;;    InstallAll -- install all software.
  516. ;;
  517. Procedure InstallAll
  518.   Dialog [YesOrNo1] UseHeader "Install All Software"
  519.     Ready to install ALL software file groups. This will
  520.     extract and copy the files to their target directories.
  521.     BlankString
  522.     Install Software Now?
  523.   EndDialog
  524.   If [YesOrNo1] = YesCharacter
  525.     OpenCopyWindow
  526.     CopyFiles quietly
  527.       @7055.ADF
  528.       @7054.ADF
  529.       README.TXT
  530.     EndCopyFiles
  531.     CopyFiles to [Dir2]
  532.       INSTALL.EXE as KIPPCFG.EXE
  533.     EndCopyFiles
  534.     CloseCopyWindow
  535.     QueAllFiles
  536.     GetQuedFiles OnePerLine
  537.     Do WriteKIPPCFG
  538.   Else
  539.     UnQueAllFiles
  540.   Endif
  541. EndProcedure ;; InstallAll
  542.  
  543. ;;
  544. ;; Select Software
  545. ;;
  546. ;;  o Select software group(s) to be installed
  547. ;;
  548. Procedure SelectSoftware
  549.  
  550. :SelectSW_1
  551.   UnQueAllFiles
  552.   [InstallBIN] := 1
  553.  
  554.  
  555.  
  556.   SetBottomLineTo "Use <SPACE> to select/deselect options, <ENTER> to proceed."
  557.   GetMenuChoice PreselectAll AllowIfNone UseHeader "Install Software Group"
  558.  
  559.     Install Driver Files to '[Dir1]'
  560.       ; Extract and install firmware,
  561.       ; and driver files.
  562.     Install Runtime Files to '[Dir2]'
  563.       ; Extract and install runtime files,
  564.       ; tools, and sample programs.
  565.     Install Sample Images to '[Dir3]'
  566.       ; Extract and install sample image files.
  567.   EndGetMenuChoice
  568.   InCase Choice is
  569.     =1:
  570.          QueFileGroup 1
  571.     =2:
  572.          QueFileGroup 2
  573.      [InstallBIN] := 1
  574.     =3:
  575.          QueFileGroup 3
  576.   EndInCase
  577.  
  578.  
  579.   SetBottomLineTo BlankString
  580.  
  581.   If QueSize = 0
  582.     Exit
  583.   EndIf
  584.  
  585.   Dialog [YesOrNo1] UseHeader "Install Selected Software"
  586.     Ready to install selected software file groups. This will
  587.     extract and copy the files to their target directories.
  588.     BlankString
  589.     Install Software Now?
  590.   EndDialog
  591.   If [YesOrNo1] = YesCharacter
  592.     If [InstallBIN] = 1
  593.       OpenCopyWindow
  594.       CopyFiles to [Dir2]
  595.         INSTALL.EXE as KIPPCFG.EXE
  596.       EndCopyFiles
  597.       CloseCopyWindow
  598.     Endif
  599.     CopyFiles to [Dir2] quietly
  600.       @7055.ADF
  601.       @7054.ADF
  602.       README.TXT
  603.     EndCopyFiles
  604.     GetQuedFiles OnePerLine
  605.     Do WriteKIPPCFG
  606.   Else
  607.     UnQueAllFiles
  608.   Endif
  609. EndProcedure ;; SelectSoftware
  610.  
  611.  
  612. ;;
  613. ;; RUNAUTO.STF -- KIPP 2.1 installation routines to update the AUTOEXEC.BAT
  614. ;;          file.
  615. ;;
  616.  
  617. ;;
  618. ;; UpdateAutoExec
  619. ;;
  620. ;; Add following items to environment:
  621. ;;
  622. ;; PATH        gets [Dir2]
  623. ;;
  624. ;; Also: Add LOADFW command to AUTOEXEC.BAT
  625. ;;
  626. Procedure UpdateAutoExec
  627.  
  628.  
  629.   Dialog PressAKey UseHeader "Configuration Instructions"
  630.     BlankString
  631.     .C*** IMPORTANT INSTRUCTIONS ***
  632.     BlankString
  633.     Use a text editor to make the following changes to your CONFIG.SYS and
  634.     STARTUP.CMD files:
  635.     BlankString
  636.     CONFIG.SYS:
  637.     .I1) Add [Dir2] to your LIBPATH setting.
  638.     .I2) Add [Dir2] to your PATH setting.
  639.     .I3) Add the line: DEVICE=[Dir2]\BIC.SYS
  640.     BlankString
  641.     STARTUP.CMD:
  642.     .I1) Add a line where appropriate to CALL [Dir2]\LOADFW.
  643.     BlankString
  644.     For your convenience these instructions have been placed in the file:
  645.     .I[Dir2]\CONFIG.DOC.
  646.     BlankString
  647.   EndDialog
  648.  
  649.   ;;    Create the file containing the instructions for modifying their configuration files.
  650.   ;;    Use the "ModifyTextFile" command because the "AppendFile" command causes a TRAP 000D
  651.   ;;    when using the bound version 3.05C of Instalit.
  652.  
  653.   CreateFile [Dir2]\CONFIG.DOC
  654.   ModifyTextFile [Dir2]\CONFIG.DOC NoClone NoBackup
  655.     InsertAtLine END " "
  656.     InsertAtLine END "FILE:    [Dir2]\CONFIG.DOC"
  657.     InsertAtLine END " "
  658.     InsertAtLine END "PURPOSE: Provide instructions for configuring your system for use"
  659.     InsertAtLine END "         with your KIPP-based OS/2 2.x application."
  660.     InsertAtLine END " "
  661.     InsertAtLine END "INSTRUCTIONS:"
  662.     InsertAtLine END " "
  663.     InsertAtLine END "  Step 0:"
  664.     InsertAtLine END "    Make sure that you have a boot diskette in case you make a mistake"
  665.     InsertAtLine END "    while editing your CONFIG.SYS or STARTUP.CMD file."
  666.     InsertAtLine END " "
  667.     InsertAtLine END "  Step 1:"
  668.     InsertAtLine END "    The directory containing the KIPP DLLs (Dynamic Link Libraries) must be"
  669.     InsertAtLine END "    in your LIBPATH setting. This can only be set in your CONFIG.SYS file."
  670.     InsertAtLine END " "
  671.     InsertAtLine END "    Modify your CONFIG.SYS file as follows:;"
  672.     InsertAtLine END " "
  673.     InsertAtLine END "      Add [Dir2] to your LIBPATH setting."
  674.     InsertAtLine END " "
  675.     InsertAtLine END "  Step 2:"
  676.     InsertAtLine END "    The directory containing your KIPP-based application must be in your"
  677.     InsertAtLine END "    PATH setting. This can be set in your CONFIG.SYS file or in your "
  678.     InsertAtLine END "    STARTUP.CMD file (This file is found in the same directory as your"
  679.     InsertAtLine END "    CONFIG.SYS file. If you do NOT have a STARTUP.CMD file you will need to"
  680.     InsertAtLine END "    modify your CONFIG.SYS file for Step 2.)"
  681.     InsertAtLine END " "
  682.     InsertAtLine END "    Modify your CONFIG.SYS file (our recommendation) or your"
  683.     InsertAtLine END "    STARTUP.CMD file as follows:"
  684.     InsertAtLine END " "
  685.     InsertAtLine END "      Add [Dir2] to your PATH setting."
  686.     InsertAtLine END " "
  687.     InsertAtLine END "  Step 3:"
  688.     InsertAtLine END "    If you are using a Kofax hardware controller then you will need"
  689.     InsertAtLine END "    to modify your CONFIG.SYS file to load the Kofax hardware"
  690.     InsertAtLine END "    controller device driver as follows:"
  691.     InsertAtLine END " "
  692.     InsertAtLine END "      Add the line: DEVICE=[Dir2]\BIC.SYS"
  693.     InsertAtLine END " "
  694.     InsertAtLine END "  Step 4:"
  695.     InsertAtLine END "    You will need to modify your STARTUP.CMD file to initialize"
  696.     InsertAtLine END "    the firmware for the controllers as follows:"
  697.     InsertAtLine END " "
  698.     InsertAtLine END "      Add the line: CALL [Dir2]\LOADFW."
  699.     InsertAtLine END " "
  700.     InsertAtLine END "  Step 5:"
  701.     InsertAtLine END "    Re-boot your computer."
  702.     InsertAtLine END " "
  703.     InsertAtLine END "END OF INSTRUCTIONS."
  704.   EndModifyTextFile
  705.  
  706.  
  707.   LetButton <Esc> Do Nothing
  708.   BrowseFile [Dir2]\CONFIG.DOC UseHeader "Kofax Configuration Instructions - Use <Esc> to Exit"
  709.   LetButton <Esc> Do CheckExit
  710.  
  711. EndProcedure ;; UpdateAutoExec
  712.  
  713.  
  714. ;;
  715. ;; Finish Installation:
  716. ;;
  717. ;; o Save Changes, etc.
  718. ;;
  719. Procedure Finish
  720.   If [Flag] <> 0
  721.     Do UpdateAutoExec
  722.   EndIf
  723.   Dialog
  724.     Installation now complete.
  725.     BlankString
  726.     Please run the configuration program:
  727.     BlankString
  728.     .IKIPPCFG.EXE in [Dir2].
  729.   EndDialog
  730.   SoLong
  731. EndProcedure ;; Finish
  732.  
  733.