/*
** INSTALL.DAT
** This script file is used to install Tango-PCB PLUS Version 2.30
*/

@DefineProject
   @NAME       = "Tango-PCB PLUS"
   @VERSION    = "2.30"
   @SUBDIR     = "\\TANGO"
   @OUTDRIVE   = C
   @Requires   @HardDisk
@EndProject


@Welcome
   @Cls
                        Tango-PCB PLUS Installation

      This INSTALL program will install @NAME Version @VERSION 
      on your computer system and verify 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 which 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 which subdirectory (<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 Program Files Only"
   @Set L = "Install @NAME Libraries Only"
   @Set G = "Install @NAME Graphics and Output Drivers Only"
   @Set D = "Install @NAME Sample Board and Netlist 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 < 1500000)
         The selected destination drive only has @DiskFree @OutDrive 
         bytes free.  This configuration requires 1.5M bytes.
   
         @Abort
      @Else
         @Cls

               You have chosen to install only the @NAME 
                     program files and Output drivers on drive @Outdrive.


      @EndIf
   @ElseIf ('l' [= @Group)
      @If (@DiskFree @OutDrive < 800000)
         The selected destination drive only has @DiskFree @OutDrive 
         bytes free.  This configuration requires 800k bytes.
   
         @Abort
      @Else
         @Cls

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


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

               You have chosen to install only the @NAME 
                     graphics drivers on drive @Outdrive.


      @EndIf
   @ElseIf ('d' [= @Group)
      @If (@DiskFree @OutDrive < 650000)
         The selected destination drive only has @DiskFree @OutDrive 
         bytes free.  This configuration requires 650k bytes.
   
         @Abort
      @Else
         @Cls

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


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

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


      @EndIf
   @EndIf

   @Pause
@EndDisplay

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

      @Option 01 = "ATI VGAWONDER Adapter (800x600, 16 colors)"
      @Option 19 = "ATI VGA WONDER XL, ATI ULTRA (1024x768, 16 colors)"
      @Option 26 = "Diamond Speedstar (800x600, 16 colors)"
      @Option 27 = "Diamond Speedstar (1024x768, 16 colors)"
      @Option 24 = "Diamond Stealth (800x600, 16 colors)"
      @Option 25 = "Diamond Stealth (1024x768, 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 20 = "Oak OTI-067 VGA (800x600, 16 colors)"
      @Option 21 = "Oak OTI_067 VGA (1024x768, 16 colors)"
      @Option 22 = "Orchid Fahrenheit 1280 (800x600, 16 colors)"
      @Option 23 = "Orchid Fahrenheit 1280 (1024x768, 16 colors)"
      @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 28 = "Trident 8900 Series (800x600, 16 colors)"
      @Option 29 = "Trident 8900 Series (1024x768, 16 colors)"
      @Option 17 = "Tseng 4000 Series (800x600, 16 colors)"
      @Option 18 = "Tseng 4000 Series (1024x768, 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

@DefineDisk
  @Label = "Disk 1"
  @File PCBPLUS.DOC @Group AP
  @BeginLib PCB1.LIF
    @File        PCB.EXE @Group AP
    @File        PCB.MSG @Group AP
    @File        upper128.fon @Group AP
    @File        latin1.fon @Group AP
  @EndLib
@EndDisk

@DefineDisk
  @Label = "Disk 2"
  @BeginLib PCB2.LIF
            @File    PCBTRAN.EXE @Group AP
            @File    PCBMAIN.LIB @GRoup AL
            @File    PCBCONN.LIB @Group AL
            @File     PCBSMT.LIB @Group AL
            @File    PCBEVAL.LIB @Group AL
            @File        PCB.DFN @Group A

      /*
      ** Install the graphics drivers.
      */
	        @File ATI800.DRV @Group AG
	        @File EGA.DRV @Group AG
	        @File EVXEGA.DRV @Group AG
	        @File GEN800.DRV @Group AG
	        @File GEN1024.DRV @Group AG
	        @File HERCULES.DRV @Group AG
	        @File MCGA.DRV @Group AG
			@File ORC800.DRV @Group AG
			@File ORC1024.DRV @Group AG
	        @File PARA800.DRV @Group AG
	        @File VGA.DRV @Group AG
	        @File VSEVDLX.DRV @Group AG
	        @File VSEV720.DRV @Group AG
	        @File VSEV800.DRV @Group AG
	        @File TIGA.DRV @Group AG
	        @File TRI800.DRV @Group AG
	        @File TRI1024.DRV @Group AG
	        @File TSENG800.DRV @Group AG
	        @File TSENG1K.DRV @Group AG
	        @File ATI1K.DRV @Group AG
	        @File OAK800.DRV @Group AG
	        @File OAK1K.DRV @Group AG
	        @File ORCS3800.DRV @Group AG
	        @File ORCS31K.DRV @Group AG
	        @File CUSTOM.EXE @Group AG
	        @File CUSTOM.DOC @Group AG
	        @File VESA.DOC @Group AG
	        @File SVGA.DRV @Group AG
	        @File VSEV1024.DRV @Group AG
	        @File VESA12G.DRV @Group AG
	        @File VESA10G.DRV @Group AG
	        @File VESA1280.DRV @Group AG
	        @File VESA8G.DRV @Group AG
	        @File VESA1024.DRV @Group AG
	        @File VESA800.DRV @Group AG
      /*
      ** Install the output drivers.
      */
	        @File CALCOMP.DRV @Group AG
	        @File DMPL.DRV @Group AG
	        @File EPSFX120.DRV @Group AG
	        @File EPSFX240.DRV @Group AG
	        @File EPSLQ180.DRV @Group AG
	        @File HPDJ150.DRV @Group AG
	        @File HPDJ300.DRV @Group AG
	        @File HPDJ150C.DRV @Group AG
	        @File HPDJ300C.DRV @Group AG
	        @File HPGL.DRV @Group AG
	        @File HPLJ150.DRV @Group AG
	        @File HPLJ300.DRV @Group AG
	        @File HPPJ180M.DRV @Group AG
	        @File HPPJ180C.DRV @Group AG
	        @File IBM120.DRV @Group AG
	        @File IBM240.DRV @Group AG
	        @File RDXY800.DRV @Group AG
	        @File STAR240.DRV @Group AG
	        @File TOSH180.DRV @Group AG
            @File GERBER.DRV @Group AG
            @File HPLJ600.DRV @Group AG
            @File OKI321.DRV @Group AG
            @File BJ180.DRV @Group AG

      /*
      ** Install the rest of the files.
      */

    @File       TANGO.CF @Group AP
    @File   ORCADNET.DOC @Group AP
    @File    CONVERT.EXE @Group AP
    @File       COLOR.DAT @Group A
    @File        MONO.DAT @Group A
    @File      DEMO1.NET @Group AD
    @File      DEMO1.PCB @Group AD
    @File      DEMO2.NET @Group AD
    @File      DEMO2.PCB @Group AD
    @File    IBMCARD.PCB @Group AD
    @File    TITLE_A.PCB @Group AD
    @File   TITLE_A2.PCB @Group AD
    @File   TITLE_A3.PCB @Group AD
    @File   TITLE_A4.PCB @Group AD
    @File    TITLE_B.PCB @Group AD
    @File    TITLE_C.PCB @Group AD
    @File    VGADEMO.PCB @Group AD
    @File     RDEMO1.PCB @Group AD
    @File     RDEMO2.PCB @Group AD
    @File     RDEMO2.TOP @Group AD
    @File    VGADEMO.TOP @Group AD
    @File        PCB.KEY @Group AP
    @File        PCB.pif @Group AP
    @File   TANGOPCB.ico @Group AP
  @EndLib
@EndDisk


@If ('a' [= @Group || 'p' [= @Group)
  @SetConfig
     @AskOverwrite
     @Buffers = 20
     @Files = 20
  @EndConfig
  
  
  @SetAutoexec
     @AskOverwrite
     @Path = "@OUTDRIVE:@SUBDIR"
  @EndAutoexec

@Endif

@If ('a' [= @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

     @If (17 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\TSENG800.DRV\"  >> pcb.ini"
    @Endif
  
     @If (18 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\TSENG1K.DRV\"  >> pcb.ini"
    @Endif
  
     @If (19 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\ATI1K.DRV\"  >> pcb.ini"
    @Endif
  
     @If (20 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\OAK800.DRV\"  >> pcb.ini"
    @Endif
  
     @If (21 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\OAK1K.DRV\"  >> pcb.ini"
    @Endif

     @If (22 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\ORCS3800.DRV\"  >> pcb.ini"
    @Endif

     @If (23 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\ORCS31K.DRV\"  >> pcb.ini"
    @Endif

     @If (24 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\ORCS3800.DRV\"  >> pcb.ini"
    @Endif

     @If (25 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\ORCS31K.DRV\"  >> pcb.ini"
    @Endif

     @If (26 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\TSENG800.DRV\"  >> pcb.ini"
    @Endif
  
     @If (27 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\TSENG1K.DRV\"  >> pcb.ini"
    @Endif
  
     @If (28 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\TRI800.DRV\"  >> pcb.ini"
    @Endif
  
     @If (29 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\TRI1024.DRV\"  >> pcb.ini"
    @Endif

       @System "Echo PCB_OUT_DRIVER \"@OUTDRIVE:@SUBDIR\\HPGL.DRV\"  >> pcb.ini"
  
     /*
     ** Append the appropriate data file.
     */
     @If (06 [= @Option || 07 [= @Option)
        @System "copy pcb.ini+mono.dat pcb.ini"
        @System "del mono.dat"
        @System "del color.dat"
     @Else                       
        @System "copy pcb.ini+color.dat pcb.ini"
        @System "del color.dat"
        @System "del mono.dat"
     @Endif

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

    ATTENTION!
    At this time we recommend that you print out and read the PCBPLUS.DOC
    file for the most current information on Tango-PCB PLUS.

    If you are using this program with Microsoft Windows, please check
    your Release Notes for the appropriate PIF file settings.








    @Pause

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

    ATTENTION!
    At this time we recommend that you print out and read the PCBPLUS.DOC
    file for the most current information on Tango-PCB PLUS.

    If you are using this program with Microsoft Windows, please check
    your Release Notes for the appropriate PIF file settings.









    @Pause
  @EndFinish
@Endif

/* end-of-file */

