/*
** INSTALL.DAT
** This script file is used to install Tango-PCB/Route Eval Version 2.01a
*/

@DefineProject
   @NAME       = "Tango-PCB/Route Plus Eval"
   @VERSION    = "2.01a"
   @SUBDIR     = "\\TANGO"
   @OUTDRIVE   = C
   @Requires   @HardDisk
@EndProject


@Welcome
   @Cls
                     @NAME Installation

    This INSTALL program installs @NAME Version @VERSION 
    on your computer system and verifies the integrity of the 
    distribution disks.

    You may press the <Esc> key at any time to abort the installation.

    INSTALL will ask you several questions about your computer hardware
    before beginning the installation process.  Each question has a
    default answer.  If the default answer is correct, press <Enter>
    key in response to the question.  Otherwise, type the answer and
    then press <Enter>.

    If you make a mistake while typing, press the <Backspace> key and
    then retype the answer.

   @Pause
@EndWelcome


@GetOutDrive
   @Cls
    Install @NAME on disk drive (<Enter> = @OUTDRIVE) ?
















      Use the <Up Arrow>, <Down Arrow>, <Pg Up>, & <Pg Dn> keys to 
      move the bar to the desired drive, then press the <Enter> key.
@EndOutDrive


@GetSubdir
   @Cls
    Now you need to specify the destination subdirectory.  The subdirectory
    is the location on your disk where @NAME will be
    installed.  If you don't know what a "subdirectory" is, you probably
    need not worry about it, and should press <Enter> to select the
    default entry.

   @Prompt = "Install @NAME in directory (<Enter> = @SUBDIR) ?"
@EndSubdir

@GetGroups
   @Cls
      Select the parts of @NAME you wish to install.  
















      Use the <Up Arrow>, <Down Arrow>, <Pg Up>, & <Pg Dn> keys to 
      move the bar to the group you wish to install and then press 
      the <Enter> key.

   @Set A = "Install All Files"
   @Set P = "Install @NAME PCB Files Only"
   @Set R = "Install @NAME Route Files Only"
@EndGroups

/*
 *  The following sets INSTALL to check for the right amount
 *  of free disk space based on the installation option selected. 
 */


@Display
   @If ('p' [= @Group)
      @If (@DiskFree @OutDrive < 1800000)
         The selected destination drive only has @DiskFree @OutDrive 
         bytes free.  This configuration requires 1.8M bytes.
   
         @Abort
      @Else
         @Cls

          You have chosen to install only the @NAME 
          PCB files on drive @Outdrive.


      @EndIf
   @ElseIf ('r' [= @Group)
      @If (@DiskFree @OutDrive < 1000000)
         The selected destination drive only has @DiskFree @OutDrive 
         bytes free.  This configuration requires 1M bytes.
   
         @Abort
      @Else
         @Cls

          You have chosen to install only the @NAME 
          Route files on drive @Outdrive.


      @EndIf
   @Else
      @If (@DiskFree @OutDrive < 2500000)
         The selected destination drive only has @DiskFree @OutDrive 
         bytes free.  This configuration requires 2.5M bytes.
   
         @Abort
      @Else
         @Cls

  You have chosen to install all @NAME files on drive @Outdrive.


      @EndIf
   @EndIf

   @Pause
@EndDisplay


@If ('a' [= @Group || 'p' [= @Group)
  @GetOption
   @Cls
      Please select your display:

      @Option 01 = "ATI VGAWONDER Adapter (800x600, 16 colors)"
      @Option 02 = "Enhanced Graphics Adapter (640x350, 16 colors)"
      @Option 03 = "Everex EV-654 Graphics Adapter (640x350, 16 colors)"
      @Option 04 = "GENOA SuperVGA Adapter Card (800x600, 16 colors)"
      @Option 05 = "GENOA SuperVGA Adapter Card (1024x768, 16 colors)"
      @Option 06 = "Hercules Graphics Controller (720x348, monochrome)"
      @Option 07 = "IBM MCGA (640x480, monochrome)"
      @Option 08 = "Orchid Prodesigner Plus VGA (800x600, 16 colors)"
      @Option 09 = "Orchid Prodesigner Plus VGA (1024x768, 16 colors)"
      @Option 10 = "Paradise VGA (800x600, 16 colors)"
	  @Option 11 = "TIGA Compatable (All modes, 16 colors)"
      @Option 12 = "IBM Video Graphics Array (640x480, 16 colors)"
      @Option 13 = "Video 7 Vega Deluxe (640x480, 16 colors)"
      @Option 14 = "Video 7 VGA (720x540, 16 colors)"
      @Option 15 = "Video 7 Fastwrite (800x600, 16 colors)"
      @Option 16 = "Video 7 VRAM (1024x768, 16 colors)"
  @EndOption
@Endif

@If ('a' [= @Group || 'p' [= @Group || 'r' [= @Group)
   @DefineDisk
      @Label = "Disk 1"
      @File PCBEVAL.DOC
      @BeginLib PCB1.LIF
        @File PCB.EXE @Group AP
        @File PCB.MSG @Group AP
        @File ROUTE.EXE @Group AR
        @File ROUTE.MSG @Group AR
      @EndLib
   @EndDisk
@EndIf

@If ('a' [= @Group || 'p' [= @Group || 'r' [= @Group)
  @DefineDisk
    @Label = "Disk 2"
      @BeginLib PCB2.LIF
		    @File     ATI800.DRV @Group AP
		    @File        EGA.DRV @Group AP
		    @File     EVXEGA.DRV @Group AP
		    @File    GEN1024.DRV @Group AP
		    @File     GEN800.DRV @Group AP
		    @File   HERCULES.DRV @Group AP
		    @File       MCGA.DRV @Group AP
			@File	  ORC800.DRV @Group AP
			@File 	 ORC1024.DRV @Group AP
		    @File    PARA800.DRV @Group AP
			@File		TIGA.DRV @Group AP
		    @File        VGA.DRV @Group AP
		    @File   VSEV1024.DRV @Group AP
		    @File    VSEV720.DRV @Group AP
		    @File    VSEV800.DRV @Group AP
		    @File    VSEVDLX.DRV @Group AP
		    @File      COLOR.DAT @Group AP
		    @File       MONO.DAT @Group AP
    		@File        PCB.DFN @Group AP
    		@File      DEMO1.PCB @Group APR
    		@File      DEMO1.SET @Group APR
    		@File     RDEMO1.PCB @Group APR
    		@File      DEMO2.PCB @Group APR
    		@File      DEMO2.SET @Group APR
    		@File      DEMO2.NET @Group AP
    		@File     RDEMO2.PCB @Group APR
    		@File    VGADEMO.PCB @Group APR
    		@File    VGADEMO.TOP @Group AP
    		@File    IBMCARD.PCB @Group AP
    		@File    PCBEVAL.LIB @Group AP
            @File    PCB.KEY @Group AP
      @EndLib
  @EndDisk
@EndIf

@If ('a' [= @Group || 'p' [= @Group)
  /*
  **  Create PCB.INI file using appropriate graphics driver.
  */
  @Finish
     @Cls
     @ChDrive @OUTDRIVE
     @ChDir "@SUBDIR"
     @System "Echo VERSION 1 3 > pcb.ini"
  
     @If (01 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\ATI800.DRV\"  >> pcb.ini"
      @Endif
  
     @If (02 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\EGA.DRV\"  >> pcb.ini"
     @Endif
  
     @If (03 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\EVXEGA.DRV\"  >> pcb.ini"
      @Endif
  
     @If (04 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\GEN800.DRV\"  >> pcb.ini"
     @Endif
  
     @If (05 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\GEN1024.DRV\"  >> pcb.ini"
     @Endif
  
     @If (06 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\HERCULES.DRV\"  >> pcb.ini"
     @Endif
  
     @If (07 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\MCGA.DRV\"  >> pcb.ini"
     @Endif
  
     @If (08 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\ORC800.DRV\"  >> pcb.ini"
     @Endif
  
     @If (09 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\ORC1024.DRV\"  >> pcb.ini"
     @Endif
  
     @If (10 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\PARA800.DRV\"  >> pcb.ini"
     @Endif
  
     @If (11 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\TIGA.DRV\"  >> pcb.ini"
     @Endif
  
     @If (12 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\VGA.DRV\"  >> pcb.ini"
     @Endif
  
     @If (13 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\VSEVDLX.DRV\"  >> pcb.ini"
     @Endif

     @If (14 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\VSEV720.DRV\"  >> pcb.ini"
     @Endif
    
     @If (15 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\VSEV800.DRV\"  >> pcb.ini"
     @Endif
  
     @If (16 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\VSEV1024.DRV\"  >> pcb.ini"
    @Endif
     /*
     ** Append the appropriate data file.
     */
     @If (06 [= @Option || 07 [= @Option)
        @System "copy pcb.ini+mono.dat pcb.ini"
     @Else                       
        @System "copy pcb.ini+color.dat pcb.ini"
     @Endif

    @Cls
    @ChDrive @OUTDRIVE
    @ChDir "@SUBDIR"
    Installation of @Name is complete.
    @Pause

  @EndFinish
@Else
  @Finish
    @Cls
    @ChDrive @OUTDRIVE
    @ChDir "@SUBDIR"
    Installation of @Name is complete.
    @Pause
  @EndFinish
@Endif

/* end-of-file */

