/*
** INSTALL.DAT
** This script file is used to install Tango-Schematic Version 1.50
** 1.2M Disk
*/

@DefineProject
   @NAME       = "Tango-Schematic"
   @VERSION    = "1.50"
   @SUBDIR     = "\\TANGO"
   @OUTDRIVE   = C
   @Requires   @HardDisk
@EndProject


@Welcome
   @Cls
                        @Name 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"
@EndGroups
@If ('a' [= @Group || 'l' [= @Group)
  @GetGroups
    @Cls

  Do you wish to install Commercial, Military, or both styles of libraries?






  The TTL component libraries are broken up into Commercial (7400 series)
  and Military (5400 series) libraries.  The selection of both types of
  libraries will require 7.5M bytes of disk space.  If Commercial is 
  selected then you will save 1.5M bytes of disk space.  If Military is 
  selected then you will save 1.8M bytes of disk space.
        
      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 C = "Install Commercial (7400 series) Libraries Only"
    @Set M = "Install Military (5400 series) Libraries Only"
    @Set B = "Install Both Commercial and Military Libraries"
  @EndGroups
@EndIf

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


   @If ('p' [= @Group)
      @If (@DiskFree @OutDrive < 1500000)
        @Display
          @Cls


          The selected destination drive only has @DiskFree @OutDrive 
          bytes free.  This configuration requires 1.5M bytes.

          @Pause
          @Abort
        @EndDisplay
      @Else
        @Display
         @Cls

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

          @Pause

        @EndDisplay
      @EndIf
   @ElseIf ('g' [= @Group)
      @If (@DiskFree @OutDrive < 190000)
        @Display
          @Cls
          The selected destination drive only has @DiskFree @OutDrive 
          bytes free.  This configuration requires 190K bytes.

          @Pause
          @Abort
        @EndDisplay
      @Else
        @Display
         @Cls

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

          @Pause

        @EndDisplay
      @EndIf

   @ElseIf ('b' [= @Group && 'l' [= @Group)
      @If (@DiskFree @OutDrive < 7500000)
        @Display
          @Cls
          The selected destination drive only has @DiskFree @OutDrive 
          bytes free.  This configuration requires 7.5M bytes.

          @Pause
          @Abort
        @EndDisplay
      @Else
        @Display
         @Cls
   You have chosen to install only the @NAME libraries on drive @Outdrive.

          @Pause
        @EndDisplay
   @EndIf

   @ElseIf ('c' [= @Group && 'l' [= @Group)
      @If (@DiskFree @OutDrive < 6000000)
        @Display
          @Cls
          The selected destination drive only has @DiskFree @OutDrive 
          bytes free.  This configuration requires 6M bytes.

          @Pause
          @Abort
        @EndDisplay
      @Else
        @Display
         @Cls
   You have chosen to install only the @NAME libraries on drive @Outdrive.

          @Pause
        @EndDisplay
   @EndIf

   @ElseIf ('l' [= @Group && 'm' [= @Group)
      @If (@DiskFree @OutDrive < 5900000)
        @Display
          @Cls
          The selected destination drive only has @DiskFree @OutDrive 
          bytes free.  This configuration requires 5.9M bytes.

          @Pause
          @Abort
        @EndDisplay
      @Else
        @Display
         @Cls
   You have chosen to install only the @NAME libraries on drive @Outdrive.

          @Pause
        @EndDisplay
      @EndIf

   @ElseIf ('a' [= @Group && 'b' [= @Group)
      @If (@DiskFree @OutDrive < 9200000)
      @Display
         The selected destination drive only has @DiskFree @OutDrive 
         bytes free.  This configuration requires 9.2M bytes.

         @Pause
         @Abort
      @EndDisplay
      @Else
        @Display
           @Cls
        You have chosen to install all @NAME files on drive @Outdrive.


          @Pause
        @EndDisplay
      @EndIf

   @ElseIf ('a' [= @Group && 'c' [= @Group)
      @If (@DiskFree @OutDrive < 8000000)
      @Display
         The selected destination drive only has @DiskFree @OutDrive 
         bytes free.  This configuration requires 8M bytes.

         @Pause
         @Abort
      @EndDisplay
      @Else
        @Display
           @Cls
        You have chosen to install all @NAME files on drive @Outdrive.


          @Pause
        @EndDisplay
      @EndIf

   @ElseIf ('a' [= @Group && 'm' [= @Group)
      @If (@DiskFree @OutDrive < 8200000)
      @Display
         The selected destination drive only has @DiskFree @OutDrive 
         bytes free.  This configuration requires 8.2M bytes.

         @Pause
         @Abort
      @EndDisplay
      @Else
        @Display
           @Cls
        You have chosen to install all @NAME files on drive @Outdrive.


          @Pause
        @EndDisplay
      @EndIf
   @EndIf

@If ('a' [= @Group || 'p' [= @Group || 'g' [= @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"

         /*
         ** Install the readme and program files.
         */

         @File sch.doc

         @BeginLib SCH1.LIF
            @File sch.exe @Group AP
            @File sch.msg @Group AP
            @File sch.key @Group AP
   	       	 @File  a.ttl @Group AP
	         @File  b.ttl @Group AP
	         @File  c.ttl @Group AP
    	     @File  d.ttl @Group AP
        	 @File  e.ttl @Group AP
	         @File a4.ttl @Group AP
	         @File a3.ttl @Group AP
	         @File a2.ttl @Group AP
	         @File a1.ttl @Group AP
    	     @File a0.ttl @Group AP
	         @File  a.bdr @Group AP
	         @File  b.bdr @Group AP
	         @File  c.bdr @Group AP
	         @File  d.bdr @Group AP
	         @File  e.bdr @Group AP
	         @File a4.bdr @Group AP
	         @File a3.bdr @Group AP
	         @File a2.bdr @Group AP
	         @File a1.bdr @Group AP
	         @File a0.bdr @Group AP
            @File sch.pif @Group AP
         @File latin1.fon @Group AP
       @File upper128.fon @Group AP
       @File tangosch.ico @Group AP
	  /*
      ** Get the appropriate startup data files.
      */
    	     @File SCHMONO.DAT @Group APG
        	 @File SCHCOLOR.DAT @Group APG
      /*
      ** Install the graphics drivers.
      */
	        @File ATI800.DRV @Group APG
	        @File EGA.DRV @Group APG
	        @File EVXEGA.DRV @Group APG
	        @File GEN800.DRV @Group APG
	        @File GEN1024.DRV @Group APG
	        @File HERCULES.DRV @Group APG
	        @File MCGA.DRV @Group APG
		@File ORC800.DRV @Group APG
		@File ORC1024.DRV @Group APG
	        @File PARA800.DRV @Group APG
	        @File VGA.DRV @Group APG
	        @File VSEVDLX.DRV @Group APG
	        @File VSEV720.DRV @Group APG
	        @File VSEV800.DRV @Group APG
	        @File TIGA.DRV @Group APG
	        @File TRI800.DRV @Group APG
	        @File TRI1024.DRV @Group APG
	        @File TSENG800.DRV @Group APG
	        @File TSENG1K.DRV @Group APG
	        @File ATI1K.DRV @Group APG
	        @File OAK800.DRV @Group APG
	        @File OAK1K.DRV @Group APG
	        @File ORCS3800.DRV @Group APG
	        @File ORCS31K.DRV @Group APG
	        @File CUSTOM.EXE @Group APG
	        @File CUSTOM.DOC @Group APG
	        @File SVGA.DRV @Group APG
	        @File VSEV1024.DRV @Group APG
	        @File VESA.DOC @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 HPLJ600.DRV @Group AG
                @File OKI321.DRV @Group AG
                @File BJ180.DRV @Group AG

      /*
      ** Install the libraries.
      */
	        @File MOTO_MEM.LIB @Group AL
	        @File MOTO_MP.LIB  @Group AL
         @EndLib
   @EndDisk

@If ('a' [= @Group || 'l' [= @Group)
  @DefineDisk
  @Label = "Disk 2"
      @BeginLib SCH2.LIF
      /*
      ** Install the last of the libraries.
      */
         @File CONNECT.LIB  @Group AL
         @File DIODE.LIB    @Group AL
         @File DISCRETE.LIB @Group AL
         @File OPTO_ISO.LIB @Group AL
         @File PSPICE.LIB   @Group AL
		 @File SCHEVAL.LIB  @Group AL
         @File TOSH_MEM.LIB @Group AL
         @File TRANS.LIB    @Group AL
         @File ZILOG_MP.LIB @Group AL
         @File TI_5400.LIB  @Group BM
         @File TI_54ALS.LIB @Group BM
         @File TI_54F.LIB   @Group BM
         @File TI_54HC.LIB  @Group BM
         @File TI_7400.LIB  @Group BC
         @File TI_74ALS.LIB @Group BC
         @File TI_74HC.LIB  @Group BC
         @File TI_74F.LIB   @Group BC
         @File TI_MEM.LIB   @Group AL
         @File TI_PLD.LIB   @Group AL
   	     @File DEMO2.S01    @Group A
   	     @File DEMO2PAL.S01 @Group A
         @File VGADEMO.S01  @Group A
      @EndLib
  @EndDisk
@EndIf
@If ('a' [= @Group || 'l' [= @Group)
  @DefineDisk
  @Label = "Disk 3"
      @BeginLib SCH3.LIF
      /*
      ** Install the last of the libraries.
      */
         @File ti_54ac.lib    @Group BM
         @File ti_54bc.lib    @Group BM
         @File ti_54mem.lib   @Group BM
         @File ti_54mp.lib    @Group BM
         @File ti_74ac.lib    @Group BC
         @File ti_74bc.lib    @Group BC
         @File ti_74mem.lib   @Group BC
         @File ti_74mp.lib    @Group BC
         @File ti_74if.lib    @Group BC
         @File adi.lib	      @Group AL
         @File amd_bc.lib     @Group AL
         @File amd_mbe.lib    @Group AL
         @File amd_mem.lib    @Group AL
         @File amd_mp.lib     @Group AL
         @File brktree.lib    @Group AL
         @File c&t_mp.lib     @Group AL
         @File cyp_mem.lib    @Group AL
         @File idt_fc.lib     @Group AL
         @File idt_mem.lib    @Group AL
         @File idt_mp.lib     @Group AL
         @File inmos_mp.lib   @Group AL
         @File INTEL_MP.LIB   @Group AL
         @File intel_m2.lib   @Group AL
         @File maxim_if.lib   @Group AL
         @File micron.lib     @Group AL
         @File moto_mp2.lib   @Group AL
         @File NAT_LIN.LIB    @Group AL
         @File NAT_ECL.LIB    @Group AL
         @File RCA_CMOS.LIB   @Group AL
         @File sig_if.lib     @Group AL
         @File weitek.lib     @Group AL
         @File wsi.lib        @Group AL
         @File xicor.lib      @Group AL
      @EndLib
  @EndDisk
@EndIf

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

@Endif

@If ('a' [= @Group || 'p' [= @Group || 'g' [= @Group)
  @Finish
    @Cls
    @ChDrive @OUTDRIVE
    @ChDir "@SUBDIR"
    @System "Echo VERSION 1 0 > sch.ini"
  
     @If (01 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\ATI800.DRV\"  >> sch.ini"
      @Endif
  
     @If (02 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\EGA.DRV\"  >> sch.ini"
     @Endif
  
     @If (03 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\EVXEGA.DRV\"  >> sch.ini"
      @Endif
  
     @If (04 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\GEN800.DRV\"  >> sch.ini"
     @Endif
  
     @If (05 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\GEN1024.DRV\"  >> sch.ini"
     @Endif
  
     @If (06 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\HERCULES.DRV\"  >> sch.ini"
     @Endif
  
     @If (07 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\MCGA.DRV\"  >> sch.ini"
     @Endif
  
     @If (08 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\ORC800.DRV\"  >> sch.ini"
     @Endif
  
     @If (09 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\ORC1024.DRV\"  >> sch.ini"
     @Endif
  
     @If (10 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\PARA800.DRV\"  >> sch.ini"
     @Endif
  
     @If (11 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\TIGA.DRV\"  >> sch.ini"
     @Endif
  
     @If (12 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\VGA.DRV\"  >> sch.ini"
     @Endif
  
     @If (13 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\VSEVDLX.DRV\"  >> sch.ini"
     @Endif

     @If (14 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\VSEV720.DRV\"  >> sch.ini"
     @Endif
    
     @If (15 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\VSEV800.DRV\"  >> sch.ini"
     @Endif
  
     @If (16 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\VSEV1024.DRV\"  >> sch.ini"
    @Endif

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

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

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

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

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

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

     @If (28 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\TRI800.DRV\"  >> sch.ini"
    @Endif
  
     @If (29 [= @Option)
        @System "Echo FILE_GRA \"@OUTDRIVE:@SUBDIR\\TRI1024.DRV\"  >> sch.ini"
    @Endif
  
       @System "Echo OUT_DRIVER \"@OUTDRIVE:@SUBDIR\\HPGL.DRV\"  >> sch.ini"
  
  
    /*
    ** Append the appropriate data file.
    */
    @If (06 [= @Option || 07 [= @Option)
      @System "copy sch.ini+schmono.dat sch.ini"
	  @System "del schmono.dat"
	  @System "del schcolor.dat"
    @Else
      @System "copy sch.ini+schcolor.dat sch.ini"
	  @System "del schmono.dat"
	  @System "del schcolor.dat"
    @Endif

    @Cls
    @Chdrive @OutDrive
    @ChDir   "@Subdir"

    The installation of @Name is complete.

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

	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"
    The installation of @Name is complete.

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

	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 */


