//  This script file is copyright 1997 Henter-Joyce, Inc.
//
//  All Rights Reserved
//
//  Henter-Joyce software is distributed and licensed "as is", all
//  warranties, either express or implied, are disclaimed as to the
//  software and its quality, performance, or fitness for any
//  particular purpose.  You, the consumer, bear the entire risk
//  relating to the quality of the software and if the software
//  proves to have any defects, you assume the cost of any necessary
//  servicing or repairs.

//  Description: Installation script for JAWS for Windows

//  Version: 2.00.29
//     Date: 06/13/97
//   Author: J. David Boyd


@DefineProject
     @Name = "JAWS for Windows"
     @Version = "2.00"
     @Outdrive = C
     @Subdir = "\\JFW"
     @InDiskBell = 1
     @Immediate = 1
     @Requires @HardDisk
@EndProject


@DefineVars
     @Integer @Build = 29     // *** CHANGE EVERY BUILD
     @Integer @InstallFromHard = 0
     @Dir @JFWDir = "\\JFW\\"
     @Dir @WinHomeDir = "\\WINDOWS\\"
     @Drive @WinHomeDrive = C
     @Dir @LangDir = ""
     @Dir @TempDir = ""
     @Drive @AltInDrive = A
@EndVars



@If (@Exists("@OutDrive:\\JFW_0302.SYS"))
    @Display
    @Cls

    If you are installing JFW Version @Version Build @Build
    as an update, please review UPDATE.TXT Section 1 in the
    root of Disk 1 of this installation set before
    proceeding.  To exit the install program, tab to the
    cancel button and press ENTER.

    @Pause
    @EndDisplay

@Else
    // Authorization to run JFW is already installed on disk @OutDrive:.
    // @Pause
    @If (@Removable(@InDrive))
      @If (@Exists("@InDrive:\\JFW*.DAT"))
        @Display
        @Cls

        Installation Procedure for Henter-Joyce's

        @Name  Version @Version  Build @Build

        @If (@WinMajor != 0)
        Running on Windows @WinMajor.@WinMinor
        @Else
        Running on DOS @OsMajor.@OsMinor
        @Endif

        An authorization update is required in order to install this
        version of JAWS for Windows.  Please place your authorization
        disk into Drive A: on your system, and exit this install
        program. Once you have exited the install, you can update the
        authorization from either DOS or Windows.

        To install authorization from DOS, at the DOS Prompt, enter
        A:\EVMOVE A: C: /b

        To install authorization from Windows, from the File/Run prompt in
        Win 3.1x, or the Start/Run prompt in Win95, enter
        A:\WINMOVE A: C: /b

        @Name is Copyright (C) 1997 by Henter-Joyce, Inc.
        @Pause

        @EndDisplay
        @Abort
      @Endif
    @Else
      @If (@Exists("@InDrive:\\@StartupDir\\JFW*.DAT"))
        @Display
        @Cls

        Installation Procedure for Henter-Joyce's

        @Name  Version @Version  Build @Build

        @If (@WinMajor != 0)
        Running on Windows @WinMajor.@WinMinor
        @Else
        Running on DOS @OsMajor.@OsMinor
        @Endif

        An authorization update is required in order to install this
        version of JAWS for Windows.  Please place your authorization
        disk into Drive A: on your system, and exit this install
        program. Once you have exited the install, you can update the
        authorization from either DOS or Windows.

        To install authorization from DOS, at the DOS Prompt, enter
        A:\EVMOVE A: C: /b

        To install authorization from Windows, from the File/Run prompt in
        Win 3.1x, or the Start/Run prompt in Win95, enter
        A:\WINMOVE A: C: /b

        @Name is Copyright (C) 1997 by Henter-Joyce, Inc.
        @Pause

        @EndDisplay

      @Abort
      @Endif
    @Endif

    @Endif



/* Opening Screen */
@Display
@Cls
 Installation Procedure for Henter-Joyce's

 @Name  Version @Version  Build @Build

 @If (@WinMajor != 0)
 Running on Windows @WinMajor.@WinMinor
 @Else
 Running on DOS @OsMajor.@OsMinor
 @Endif

 The installation process is virtually automatic with the
 exception of a few simple selections.  To interrupt and quit the
 installation process at any time press the Escape key, followed
 by the Enter key.  Otherwise press the Enter key to continue.
 @If(@Platform == 1)
 If you are using JAWS for DOS to install this, please turn off
 Smart Screens now. To do this press INSERT+S and you should hear
 JAWS say Smart Screens OFF.
 @EndIf

 @Name is Copyright (C) 1997 by Henter-Joyce, Inc.
 @Pause

@EndDisplay

/* Choose Destination Drive */
@GetOutDrive
@Suppress(0,1)
@Suppress(0,16)
     @LocalWindow(14,39)
     @Cls
     On which disk drive do you wish to install @Name?

     Press the Enter key to install to Drive C.  Otherwise, use the
     Up Arrow and Down Arrow keys to move the bar to the disk drive
     you wish to install to, and then press the Enter key.
     We HIGHLY recommend that you install to drive C:

@EndOutDrive

/* Chose Destination Directory */
@If (@Removable==0)
     @GetSubdir
          @Prompt = "Which Directory?"
          @LocalWindow(17,40)
          @Cls

     Now, please specify the destination directory where the
     @Name system will be installed.

     We highly recommend you install @Name to a directory named
     @SubDir (short for JAWS for Windows). (This is what the
     installation program will default to. This will make things
     easier for all involved in the event you ever need technical
     support for @Name from Henter-Joyce.)

     Press the Enter key to name the directory @SubDir, or edit
     the directory below using the arrow, delete, letter and
     number keys.

     @EndSubDir
@EndIf

/* Determine Windows Drive */
@GetOutDrive @WinHomeDrive

    @Suppress(0,1)
    @Suppress(0,16)

     @LocalWindow(14,39)
     @Cls
     On which disk drive is Windows installed?

     Press the Enter key if Windows is on Drive C.  Otherwise,
     use the Up Arrow and Down Arrow keys to move the bar to the
     disk drive Windows is on, and then press the Enter key.

@EndOutDrive





/* Choose Windows Directory */
@If (@Removable==0)
     @GetSubdir @WinHomeDir
          @Prompt = "Which Directory?"
          @LocalWindow(17,40)
          @Cls

     Now you need to specify the directory where Windows is
     installed.

     In most cases, Windows is located in a directory named
     @WinHomeDir. This is what the installation program will
     default to.

     Press the Enter key to name the directory @WinHomeDir, or
     edit the directory below using the arrow, delete, letter and
     number keys.
     @EndSubDir
     @EndIf



/* Determine keyboard type */
@GetOption
     @If(@Platform == 3)
          @DlgCtrlSize(0,16,10,18,50)
     @Else
             @LocalWindow(18,39)
     @EndIf
     @Cls

     @Name needs to know the type of Keyboard
     you are working with.

     If you are using a computer without a numeric keypad (most laptops
     are in this category), select the "Keyboard without numeric Keypad"
     option.

     If you are using a computer with a numeric keypad (like most
     Desktop computers have), select the "Full size Keyboard" option.

     Press the Enter key to select the "Full size Keyboard" option, or
     use the Down Arrow key to move the bar to the "Keyboard without
     numeric Keypad" option, and then press the Enter key.

     @Option 1 = "Full size Keyboard"
     @Option 2 = "Keyboard without numeric Keypad"
@EndOption

@DefineVars
     @If(1 [= @Option)
          @Qstring @KeyBoardType = "Full size Keyboard"
     @ElseIf(2 [= @Option)
          @Qstring @KeyBoardType = "Keyboard without numeric Keypad"
     @EndIf
@EndVars

/* Define Synthesizer */
@FlushGroups
@GetGroups
     @If(@Platform == 3)
          @DlgCtrlSize(0,8,0,18,73)
     @Else
          @Localwindow(16,39)
     @EndIf
     @CLS
     Which Synthesizer are you using?

     Use the Up Arrow and Down Arrow keys to move the bar to the
     synthesizer you wish to install and then press the Enter
     key. The list will scroll to reveal more synthesizers when
     you reach the bottom.

     @Set C = "Accent PC Internal & Messenger Internal"
     @Set D = "Accent SA or Artic Transport External set to COM1:9600,n,7,1"
     @Set E = "Accent SA or Artic Transport External set to COM1:9600,n,8,1"
     @Set F = "Accent SA or Artic Transport External set to COM2:9600,n,7,1"
     @Set G = "Accent SA or Artic Transport External set to COM2:9600,n,8,1"
     @Set H = "Apollo 2"
     @Set U = "Artic 215"
     @Set I = "Audapter External set to COM1:9600"
     @Set J = "Audapter External set to COM2:9600"
     @Set K = "Braille 'n Speak and Type 'n Speak, set to COM1:9600"
     @Set L = "Braille 'n Speak and Type 'n Speak, set to COM2:9600"
     @Set M = "DECtalk PC Internal or Express External"
     @Set R = "DTE"
     @Set S = "Doubletalk LT or LightTalk set to COM1:9600"
     @Set T = "Doubletalk LT or LightTalk set to COM2:9600"
     @Set N = "Doubletalk PC Internal"
     @Set X = "Infovox, American English"
     @Set Q = "Keynote"
     @Set O = "Kurzweil Reading Edge set to COM1:9600"
     @Set P = "Kurzweil Reading Edge set to COM2:9600"
     @Set Y = "Multi Voice set to COM1:9600"
     @Set Z = "Multi Voice set to COM2:9600"
     @Set W = "Sound Blaster (requires Creative Lab's Text Assist)"
     @Set V = "Sounding Board Internal"
     @Set A = "Synthesizer NOT listed (generic no speech)"
     @Set B = "No Speech (braille display only)"
@EndGroups

/* Define variable for each synth */
@DefineVars
     @If('C'[=@Group)
          @Qstring @SynthName = "Accent PC Internal"
          @Qstring @SynthShort = "ACCENT"
     @ElseIf('D'[=@Group)
          @Qstring @SynthName = "Accent SA or Artic Transport External set to COM1:9600,n,7,1"
          @Qstring @SynthShort = "ACTSAC17"
     @ElseIf('E'[=@Group)
          @Qstring @SynthName = "Accent SA or Artic Transport External set to COM1:9600,n,8,1"
          @Qstring @SynthShort = "ACTSAC1"
     @ElseIf('F'[=@Group)
          @Qstring @SynthName = "Accent SA or Artic Transport External set to COM2:9600,n,7,1"
          @Qstring @SynthShort = "ACTSAC27"
     @ElseIf('G'[=@Group)
          @Qstring @SynthName = "Accent SA or Artic Transport External set to COM2:9600,n,8,1"
          @Qstring @SynthShort = "ACTSAC2"
     @ElseIf('H'[=@Group)
          @Qstring @SynthName = "Apollo 2"
          @Qstring @SynthShort = "DOLSER2"
     @ElseIf('I'[=@Group)
          @Qstring @SynthName = "Audapter External with driver set to COM1:9600"
          @Qstring @SynthShort = "AUDAPTC1"
     @ElseIf('J'[=@Group)
          @Qstring @SynthName = "Audapter External with driver set to COM2:9600"
          @Qstring @SynthShort = "AUDAPTC2"
     @ElseIf('K'[=@Group)
          @Qstring @SynthName = "Braille 'n Speak and Type 'n Speak, set to COM1:9600"
          @Qstring @SynthShort = "BNS1"
     @ElseIf('L'[=@Group)
          @Qstring @SynthName = "Braille 'n Speak and Type 'n Speak, set to COM2:9600"
          @Qstring @SynthShort = "BNS2"
     @ElseIf('M'[=@Group)
          @Qstring @SynthName = "DECtalk PC Internal or Express External"
          @Qstring @SynthShort = "DECTALK"
     @ElseIf('N'[=@Group)
          @Qstring @SynthName = "Doubletalk PC Internal"
          @Qstring @SynthShort = "DUBLTALK"
     @ElseIf('O'[=@Group)
          @Qstring @SynthName = "Kurzweil Reading Edge set to COM1:9600"
          @Qstring @SynthShort = "KRE1"
     @ElseIf('P'[=@Group)
          @Qstring @SynthName = "Kurzweil Reading Edge set to COM2:9600"
          @Qstring @SynthShort = "KRE2"
     @ElseIf('Q'[=@Group)
          @Qstring @SynthName = "Keynote"
          @Qstring @SynthShort = "KEYNOTE"
     @ElseIf('R'[=@Group)
          @Qstring @SynthName = "DECtalk Express External with Henter-Joyce Driver"
          @Qstring @SynthShort = "DTE"
     @ElseIf('S'[=@Group)
          @Qstring @SynthName = "Doubletalk LT or LightTalk set to COM1:9600"
          @Qstring @SynthShort = "LT1"
     @ElseIf('T'[=@Group)
          @Qstring @SynthName = "Doubletalk LT or LightTalk set to COM2:9600"
          @Qstring @SynthShort = "LT2"
     @ElseIf('U'[=@Group)
          @Qstring @SynthName = "Artic 215"
          @Qstring @SynthShort = "ARTIC215"
     @ElseIf('V'[=@Group)
          @Qstring @SynthName = "Sounding Board Internal"
          @Qstring @SynthShort = "SOUNDBRD"
     @ElseIf('W'[=@Group)
          @Qstring @SynthName = "Sound Blaster"
          @Qstring @SynthShort = "TASSIST"
     @ElseIf('X'[=@Group)
          @Qstring @SynthName = "Infovox, American English"
          @Qstring @SynthShort = "INFO37AM"
     @ElseIf('Y'[=@Group)
          @Qstring @SynthName = "Multi Voice set to COM1:9600"
          @Qstring @SynthShort = "MVOICE1"
     @ElseIf('Z'[=@Group)
          @Qstring @SynthName = "Multi Voice set to COM2:9600"
          @Qstring @SynthShort = "MVOICE2"
     @ElseIf('A'[=@Group)
          @Qstring @SynthName = "Unlisted Synthesizer"
          @Qstring @SynthShort = "NOSPEECH"
     @ElseIf('B'[=@Group)
          @Qstring @SynthName = "No Speech (braille display only)"
          @Qstring @SynthShort = "NOSPEECH"
     @EndIf
@EndVars

/* Display Synthesizer Info Screen */
@If('A'[=@Group)
     @Display
          @Cls
     You have selected an unlisted synthesizer.  After you have finished
     the installation, please refer to the file SYNTH01.TXT located in
     @OutDrive:@Subdir\TECNOTES\LanguageDirectory\ before running
     @Name.

          @Pause
     @EndDisplay

@ElseIf('C'[=@Group)
     @Display
          @Cls
     You have selected the Accent PC Internal & Messenger Internal. If you
     have trouble running JFW, please refer to the file ACCENTPC.TXT
     located in the appropriate Language Directory under
     @OutDrive:@Subdir\TECNOTES

          @Pause
     @EndDisplay
@ElseIf('D'[=@Group || 'E'[=@Group || 'F'[=@Group || 'G'[=@Group)
     @Display
          @Cls
     You have selected:
     @SynthName.
     If you have trouble running JFW, please refer to the file
     ACCENTSA.TXT located in the appropriate Language Directory under
     @OutDrive:@Subdir\TECNOTES

          @Pause
     @EndDisplay


// @ElseIf('H'[=@Group)
//     @Display
//          @Cls
//     You have selected the Apollo 2.
//
//          @Pause
//     @EndDisplay



@ElseIf('K'[=@Group || 'L'[=@Group)
     @Display
          @Cls
     You have selected the @SynthName. If you have trouble running
     JFW, please refer to the file BNS.TXT located in the appropriate
     Language Directory under @OutDrive:@Subdir\TECNOTES.

          @Pause
     @EndDisplay

@ElseIf('M'[=@Group)
     @Display
          @Cls
     You have selected the @SynthName.
     If you have trouble running JFW, please refer to the file
     DECTALK.TXT located in the appropriate Language Directory
     under @OutDrive:@Subdir\TECNOTES.

          @Pause
     @EndDisplay


@ElseIf('R'[=@Group)


    @GetOption
     @If(@Platform == 3)
          @DlgCtrlSize(0,11,8,15,50)
     @Else
          @LocalWindow(15,39)
     @EndIf
     @Cls
     Which COM port would you like to use for
     the DECtalk Express with the Henter-Joyce driver?

    @Option 809 = "COM 1"
    @Option 810 = "COM 2"

    @EndOption


    @If( 809[=@Option)
      @SynthShort = "DTE1"
    @Else
      @SynthShort = "DTE2"
    @Endif





     @Display
          @Cls
     You have selected the @SynthName.
     If you have trouble running JFW, please refer to the
     file DTE.TXT located in the appropriate Language
     Directory under @OutDrive:@Subdir\TECNOTES.

          @Pause
     @EndDisplay


//@ElseIf('U'[=@Group)
//     @Display
//          @Cls
//          You have selected the Artic 215
//          @Pause
//     @EndDisplay


//@ElseIf('W'[=@Group)
//     @Display
//          @Cls
//          You have selected the Sound Blaster
//          @Pause
//     @EndDisplay

@ElseIf('X'[=@Group)
     @Display
          @Cls
     You have selected @SynthName. If you have trouble running JFW, please
     refer to the file INFOVOX.TXT located in the appropriate Language
     Directory under @OutDrive:@Subdir\TECNOTES.

          @Pause
     @EndDisplay

//@ElseIf('Y'[=@Group)
//     @Display
//          @Cls
//          Multi Voice
//          @Pause
//     @EndDisplay
//@ElseIf('Z'[=@Group)
//     @Display
//          @Cls
//          Multi Voice
//          @Pause
//     @EndDisplay
@EndIf

@Display
     @CLS
     You have chosen the following installation selections for
     @Name:

     Keyboard Type: @KeyBoardType
     Disk: @OutDrive:
     Directory: @SubDir
     Windows location: @WinHomeDrive:@WinHomeDir
     Synthesizer: @SynthName

     If these selections are correct, please press the Enter key to
     continue. Otherwise, press the Escape key followed by the Enter
     key to exit the installation and rerun the program to correct
     your selections.

     @Pause
@EndDisplay

///* Should WIN.INI be updated */
//@GetOption
//     @If(@Platform == 3)
//          @DlgCtrlSize(0,13,10,15,50)
//     @Else
//          @LocalWindow(15,39)
//     @EndIf
//     @Cls
//     Changes need to be made to the Windows WIN.INI file. If you
//     are installing @Name for the first time, we recommend you
//     let the installation program change this file for you.  To
//     do this, press the Enter Key now. If you already have @Name
//     running and you do not want to change this file, just skip
//     this step by pressing the Down Arrow key and then pressing
//     the Enter Key.
//
//     If you chose to have the installation program change
//     WIN.INI, it will backup your original WIN.INI to WIN_INI.JBK
//     (JAWS backup).
//
//     @Option 101 = "Change WIN.INI (RECOMMENDED)"
//     @Option 102 = "Skip this step for now"
//@EndOption
//
///* If WIN.INI should be updated, update it */
//@If(101[=@Option)
//     @Copy("@WinHomeDrive:\\@WinHomeDir\\WIN.INI", "@WinHomeDrive:\\@WinHomeDir\\WIN_INI.JBK")
//
//     @SetINI("GDS","GDSDir","@OutDrive:\\@Subdir", "@WinHomeDrive:\\@WinHomeDir\\WIN.ini")
//     @SetINI("GDS","Language","English", "@WinHomeDrive:\\@WinHomeDir\\WIN.ini")

//     @Display
//     @Cls
//     This is the 1st SetINI call
//        SubDir       = @Subdir
//        WinHomeDrive = @WinHomeDrive
//        WinHomeDir   = @WinHomeDir
//     @Pause
//     @EndDisplay

@EndIf

/* Put JFW in the startup group? */

@If (@WinMajor < 4)
     @If(@Platform == 3)
        @GetOption

          @If (@Exists("@OutDrive:\\OPENBOOK\\OPENBOOK.EXE"))
                @DlgCtrlSize(0,9,5,13,55)
                @Cls
                The Install program can set up JAWS for Windows to start
                automatically every time Windows is started.

                Since OPENBOOK exists on your system, it is recommended
                that you do NOT setup JAWS to start automatically, as it
                will interfere with An Open Book Unbound

          @Else
              @DlgCtrlSize(0,6,5,9,55)
              @Cls
              The Install program can set up JAWS for Windows to start
              automatically every time Windows is started.

          @Endif

          @Option 501 = "Have JAWS for Windows start automatically"
          @Option 502 = "Do not have JAWS for Windows start automatically"

        @EndOption
     @EndIf

  // query for installation of AZMem
  @GetOption
       @If(@Platform == 3)
            @DlgCtrlSize(0,13,10,15,50)
      @Else
            @LocalWindow(15,39)
       @EndIf
      @Cls
       Would you like to install the Everlock supplied AZMEM device
       driver?  This driver reserves real mode memory when starting
       JFW.  It may be necessary to install AZMEM so that your
       authorization routines can run with no errors.  For more
       information see the file AZMEMORY.TXT on Disk 1.

       @Option 602 = "Skip this step for now"
       @Option 601 = "Install AZMem Driver"
  @EndOption

@Endif

// query for installation of Braille Driver
@GetOption
     @If(@Platform == 3)
          @DlgCtrlSize(0,10,8,15,50)
     @Else
          @LocalWindow(15,39)
     @EndIf
     @Cls
     Would you like to install a Braille terminal driver?
     Scroll down to the terminal driver you wish to install
     and press enter.  Otherwise, press enter when "No Braille
     Driver" is selected.

     @Option 700 = "No Braille Driver"

     @Option 711 = "Alva model 1 40 cell"
     @Option 712 = "Alva model 1 80 cell"

     @Option 714 = "Alva model 2 40 cell"
     @Option 715 = "Alva model 2 80 cell"
     @Option 716 = "Alva model 3 20/40/80 cell"

     @Option 726 = "Braille Window 45/85 cell"

     @Option 717 = "Navigator 20 cell"
     @Option 718 = "Navigator 40 cell"
     @Option 719 = "Navigator 80 cell"

     @Option 720 = "Power Braille 40 cell"
     @Option 721 = "Power Braille 65/80/81 cell"

     @Option 725 = "Handy Tech Braille Driver"


@EndOption



@If( 713[=@Option || 714[=@Option || 715 [=@Option || 716 [= @Option)
    @GetOption
     @If(@Platform == 3)
          @DlgCtrlSize(0,11,8,15,50)
     @Else
          @LocalWindow(15,39)
     @EndIf
     @Cls
     Which LPT port would you like to use for the Alva?

    @Option 800 = "LPT 1"
    @Option 801 = "LPT 2"
    @Option 802 = "LPT 3"
    @Option 803 = "LPT 4"

    @EndOption


@ElseIf( 717[=@Option || 718 [=@Option || 719 [= @Option )
    @GetOption
     @If(@Platform == 3)
          @DlgCtrlSize(0,11,8,15,50)
     @Else
          @LocalWindow(15,39)
     @EndIf
     @Cls
     Which COM port would you like to use for
     the Navigator?

    @Option 804 = "COM 1"
    @Option 805 = "COM 2"
    @Option 806 = "COM 3"
    @Option 807 = "COM 4"

    @EndOption


@ElseIf( 720[=@Option || 721 [=@Option )
    @GetOption
     @If(@Platform == 3)
          @DlgCtrlSize(0,11,8,15,50)
     @Else
          @LocalWindow(15,39)
     @EndIf
     @Cls
     Which COM or LPT port would you like to
     use for the Power Braille?

    @Option 804 = "COM 1"
    @Option 805 = "COM 2"
    @Option 806 = "COM 3"
    @Option 807 = "COM 4"
    @Option 800 = "LPT 1"
    @Option 801 = "LPT 2"
    @Option 802 = "LPT 3"
    @Option 803 = "LPT 4"

    @EndOption



@ElseIf( 725 [= @Option )
    @GetOption
     @If(@Platform == 3)
          @DlgCtrlSize(0,11,8,15,50)
     @Else
          @LocalWindow(15,39)
     @EndIf
     @Cls
     Which COM port would you like to use for the Handy Tech?

    @Option 804 = "COM 1"
    @Option 805 = "COM 2"
    @Option 806 = "COM 3"
    @Option 807 = "COM 4"

    @EndOption



@ElseIf( 726[=@Option  )
    @GetOption
     @If(@Platform == 3)
          @DlgCtrlSize(0,11,8,15,50)
     @Else
          @LocalWindow(15,39)
     @EndIf
     @Cls
     Which COM or LPT port would you like to
     use for the Braille Window?

    @Option 804 = "COM 1"
    @Option 805 = "COM 2"
    @Option 806 = "COM 3"
    @Option 807 = "COM 4"
    @Option 800 = "LPT 1"
    @Option 801 = "LPT 2"
    @Option 802 = "LPT 3"
    @Option 803 = "LPT 4"

    @EndOption











@Endif



// if we are running on a hard drive, we need to create our
// own disk.id file

@If(@Removable(@InDrive))
//
@Else
  @Write("@InDrive:@StartupDir\\DISK.ID", "wt", "JAWS for Windows\n")
  @Write("@InDrive:@StartupDir\\DISK.ID", "at", "2.00\n")
  @Write("@InDrive:@StartupDir\\DISK.ID", "at", "HardDisk\n")
  @InstallFromHard = 1
@Endif


@Display
     @Cls
     The Install program is now ready to begin copying files to your
     system. During this stage, if you are installing from floppy
     disks, the computer will beep when it is through with a disk.
     When this happens, remove your current disk from the floppy
     drive, replace it with the next numbered disk, press the Enter
     key, and let Install continue.  If the system beeps again, put
     the next disk in and repeat the procedure. Install will
     continue when it has the disk it needs. When you have gone
     through all the disks in the set, return to the first disk.

     Press any key now to begin copying the @Name files.

     @Pause
@EndDisplay

/* Install Common Files */

@ChDrive(@OutDrive)

@MkDir("\\@SubDir")

@If(@Removable(@InDrive))
  @Copy("@InDrive:\\JFW.EXE", "@OutDrive:\\@SubDir\\*.*")
  @Copy("@InDrive:\\JFWOSM.DLL", "@OutDrive:\\@SubDir\\*.*")
  @Copy("@InDrive:\\JFW*.DAT", "@OutDrive:\\@SubDir\\*.*")
  @Copy("@InDrive:\\COMMUTE.*", "@OutDrive:\\@SubDir\\*.*")
@Else
  @Copy("@InDrive:\\@StartupDir\\JFW.EXE", "@OutDrive:\\@SubDir\\*.*")
  @Copy("@InDrive:\\@StartupDir\\JFWOSM.DLL", "@OutDrive:\\@SubDir\\*.*")
  @Copy("@InDrive:\\@StartupDir\\JFW*.DAT", "@OutDrive:\\@SubDir\\*.*")
  @Copy("@InDrive:\\@StartupDir\\COMMUTE.*", "@OutDrive:\\@SubDir\\*.*")
@Endif

//    @Copy("@InDrive:\\JFWfiles.red", "@OutDrive:\\@SubDir\\*.*")
    @DefineDisk

    @If(@Removable(@InDrive))
      @Label="Disk 1"
    @Else
      @Label="HardDisk"
    @Endif

        @BeginLib JFWFILES.RED
          @File *.*
      @EndLib
    @EndDisk
    @delete("@OutDrive:\\@SubDir\\JFWFILES.RED")



@Copy("@OutDrive:\\@SubDir\\JFW_INI.INS", "@OutDrive:\\@SubDir\\JFW.INI")


// make braille mods to ini files
@If(710[=@Option || 711[=@Option || 712[=@Option || 713[=@Option || 714[=@Option || 715[=@Option || 716[=@Option)

     @SetINI("options", "BrailleDriver", "alva", "@OutDrive:\\@SubDir\\jfw.ini")

     @If(710[=@Option)
       @SetINI("ABTW","module","ABT120.DLL", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @Elseif(711[=@Option)
       @SetINI("ABTW","module","ABT140.DLL", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @Elseif(712[=@Option)
       @SetINI("ABTW","module","ABT180.DLL", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @ElseIf(713[=@Option)
       @SetINI("ABTW","module","ABT220.DLL", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @ElseIf(714[=@Option)
       @SetINI("ABTW","module","ABT240.DLL", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @ElseIf(715[=@Option)
       @SetINI("ABTW","module","ABT280.DLL", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @ElseIf(716[=@Option)
       @SetINI("ABTW","module","ABT3XX.DLL", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @Endif

     @If(710[=@Option || 711[=@Option || 712[=@Option)
       @SetINI("ABTW","LPT_PORT","0", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @ElseIf(800[=@Option)
       @SetINI("ABTW","LPT_PORT","1", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @ElseIf(801[=@Option)
       @SetINI("ABTW","LPT_PORT","2", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @ElseIf(802[=@Option)
       @SetINI("ABTW","LPT_PORT","3", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @ElseIf(803[=@Option)
       @SetINI("ABTW","LPT_PORT","4", "@WinHomeDrive:\\@WinHomeDir\\SYSTEM.INI")
     @EndIf


@ElseIf( 717[=@Option || 718 [=@Option || 719 [= @Option ) // Navigator

     @SetINI("options", "BrailleDriver", "powerbrl", "@OutDrive:\\@SubDir\\jfw.ini")

     @If(804[=@Option)
       @SetINI("options", "BraillePort", "com1:9600,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(805[=@Option)
       @SetINI("options", "BraillePort", "com2:9600,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(806[=@Option)
       @SetINI("options", "BraillePort", "com3:9600,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(807[=@Option)
       @SetINI("options", "BraillePort", "com4:9600,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @Endif



@ElseIf( 720[=@Option || 721 [=@Option  )  // Powerbraille

     @SetINI("options", "BrailleDriver", "powerbrl", "@OutDrive:\\@SubDir\\jfw.ini")

     @If(804[=@Option)
       @SetINI("options", "BraillePort", "com1:9600,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(805[=@Option)
       @SetINI("options", "BraillePort", "com2:9600,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(806[=@Option)
       @SetINI("options", "BraillePort", "com3:9600,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(807[=@Option)
       @SetINI("options", "BraillePort", "com4:9600,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(800[=@Option)
       @SetINI("options", "BraillePort", "lpt1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(801[=@Option)
       @SetINI("options", "BraillePort", "lpt2", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(802[=@Option)
       @SetINI("options", "BraillePort", "lpt3", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(803[=@Option)
       @SetINI("options", "BraillePort", "lpt4", "@OutDrive:\\@SubDir\\jfw.ini")
     @Endif


@ElseIf(725[=@Option) // Handy Tech

     @SetINI("options", "BrailleDriver", "handy", "@OutDrive:\\@SubDir\\jfw.ini")

     @If(804[=@Option)
       @SetINI("options", "BraillePort", "com1:19200,o,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(805[=@Option)
       @SetINI("options", "BraillePort", "com2:19200,o,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(806[=@Option)
       @SetINI("options", "BraillePort", "com3:19200,o,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(807[=@Option)
       @SetINI("options", "BraillePort", "com4:19200,o,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @Endif


@ElseIf( 726[=@Option )  // braille window

     @SetINI("options", "BrailleDriver", "brlwin", "@OutDrive:\\@SubDir\\jfw.ini")

     @If(804[=@Option)
       @SetINI("options", "BraillePort", "com1:38400,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(805[=@Option)
       @SetINI("options", "BraillePort", "com2:38400,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(806[=@Option)
       @SetINI("options", "BraillePort", "com3:38400,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(807[=@Option)
       @SetINI("options", "BraillePort", "com4:38400,n,8,1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(800[=@Option)
       @SetINI("options", "BraillePort", "lpt1", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(801[=@Option)
       @SetINI("options", "BraillePort", "lpt2", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(802[=@Option)
       @SetINI("options", "BraillePort", "lpt3", "@OutDrive:\\@SubDir\\jfw.ini")
     @ElseIf(803[=@Option)
       @SetINI("options", "BraillePort", "lpt4", "@OutDrive:\\@SubDir\\jfw.ini")
     @Endif


@Endif




// take care of default macro file
@If(1[=@Option)
        @SetINI("Default Files", "DefaultMacroFile", "jfw_desk", "@OutDrive:\\@SubDir\\JFW.INI")
@ElseIf(2[=@Option)
        @SetINI("Default Files", "DefaultMacroFile", "jfw_lap", "@OutDrive:\\@SubDir\\JFW.INI")
@EndIf

// now take care of the default JCF file
@SetINI("Default Files", "DefaultJCFFile", "default", "@OutDrive:\\@SubDir\\JFW.INI")

// now take care of the default dictionary file
@SetINI("Default Files", "DefaultDictionaryFile", "default", "@OutDrive:\\@SubDir\\JFW.INI")

// now take care of the default graphic file
@SetINI("Default Files", "DefaultGraphicsFile", "default", "@OutDrive:\\@SubDir\\JFW.INI")




// copy correct braille driver, and set corresponding macro file setting in
// JFW.INI

@If(710[=@Option || 711[=@Option || 712[=@Option || 713[=@Option || 714[=@Option || 715[=@Option || 716[=@Option)

//    @Copy("@InDrive:\\alva.red", "@OutDrive:\\@SubDir\\*.*")
    @DefineDisk
    @If(@Removable(@InDrive))
      @Label="Disk 1"
    @Else
      @Label="HardDisk"
    @Endif
        @BeginLib ALVA.RED
          @File *.*
      @EndLib
    @EndDisk
    @delete("@OutDrive:\\@SubDir\\ALVA.RED")

    @SetINI("Default Files", "DefaultBrailleMacroFile", "alva", "@OutDrive:\\@SubDir\\JFW.INI")

@ElseIf( 717[=@Option || 718 [=@Option || 719 [= @Option || 720[=@Option || 721 [=@Option )

    //@Copy("@InDrive:\\powerbrl.red", "@OutDrive:\\@SubDir\\*.*")
    @DefineDisk
    @If(@Removable(@InDrive))
      @Label="Disk 1"
    @Else
      @Label="HardDisk"
    @Endif
        @BeginLib POWERBRL.RED
          @File *.*
      @EndLib
    @EndDisk
    @delete("@OutDrive:\\@SubDir\\POWERBRL.RED")

    @If( 717[=@Option)
        @SetINI("Default Files", "DefaultBrailleMacroFile", "nav20", "@OutDrive:\\@SubDir\\JFW.INI")
    @ElseIf( 718[=@Option)
        @SetINI("Default Files", "DefaultBrailleMacroFile", "nav40", "@OutDrive:\\@SubDir\\JFW.INI")
    @ElseIf( 719[=@Option)
        @SetINI("Default Files", "DefaultBrailleMacroFile", "nav80", "@OutDrive:\\@SubDir\\JFW.INI")
    @ElseIf( 720[=@Option)
        @SetINI("Default Files", "DefaultBrailleMacroFile", "pb40", "@OutDrive:\\@SubDir\\JFW.INI")
    @ElseIf( 721[=@Option)
        @SetINI("Default Files", "DefaultBrailleMacroFile", "pb80", "@OutDrive:\\@SubDir\\JFW.INI")
    @Endif

@ElseIf(725[=@Option)

    //@Copy("@InDrive:\\handy.red", "@OutDrive:\\@SubDir\\*.*")
    @DefineDisk
    @If(@Removable(@InDrive))
      @Label="Disk 1"
    @Else
      @Label="HardDisk"
    @Endif
        @BeginLib HANDY.RED
          @File *.*
      @EndLib
    @EndDisk
    @delete("@OutDrive:\\@SubDir\\HANDY.RED")

    @SetINI("Default Files", "DefaultBrailleMacroFile", "handy", "@OutDrive:\\@SubDir\\JFW.INI")

@ElseIf(726[=@Option)

    //@Copy("@InDrive:\\brlwin.red", "@OutDrive:\\@SubDir\\*.*")
    @DefineDisk
    @If(@Removable(@InDrive))
      @Label="Disk 1"
    @Else
      @Label="HardDisk"
    @Endif
        @BeginLib BRLWIN.RED
          @File *.*
      @EndLib
    @EndDisk
    @delete("@OutDrive:\\@SubDir\\BRLWIN.RED")

    @SetINI("Default Files", "DefaultBrailleMacroFile", "brlwin", "@OutDrive:\\@SubDir\\JFW.INI")

@EndIf


@ChDrive(@InDrive)



@If(@Removable(@InDrive))
  @Chain("Disk 2", "INSTALL.2")
@Else
  @Chain("HardDisk", "INSTALL.2")
@Endif
