/*              Installation for the Domestic version              */
/*       Programmable Logic Design Tools Release IV-386 V1.03      */

@DefineProject
    @Name      = "OrCAD/PLD"
    @Version    = "V1.03n"
@EndProject

@DefineVars
    @Dir @ORCADPROJ = "\\ORCAD"
    @Dir @ORCADEXE = "\\ORCADEXE"
    @Dir @ORCADESP = "\\ORCADESP"
@EndVars

/* The following section initializes two variables called PRODUCTFLAG and
   BACKUPFLAG. PRODUCTFLAG is only set if Install finds PLD.EXE in the 
   executable directory. BACKUPFLAG is set when either PLD.EXE is found in
   the archive directory or when S2.EXE is found in the executable directory.
   The reason BACKUPFLAG can be set two different ways is that S2.EXE is
   unique to PLD386 and the user may have opted to not archive the PC-AT
   version of PLD during a previous install.

   The truth table of the two variables is as follows:

    PRODUCT     BACKUP
      FLAG       FLAG
       0          0    DONT CARE (PLD not installed or backed up)
       0          1    DONT CARE (Not likely [PLD not installed but backed up])
       1          0    PROMPT FOR ARCHIVE (see if user wants to save old PLD)
       1          1    DONT CARE (PLD386 installed or installed and backed up)

   DONT CARE means that PLD386 will be installed as PLD.EXE and the user wont
   be prompted as to whether or not they want an archive of the PC-AT version
   of PLD.
*/

@If ( @Exists "@OutDrive:@ORCADEXE\\PLD.EXE")
    @DefineVars
        @Integer @ProductFlag = 1
    @EndVars
@Else
    @DefineVars
        @Integer @ProductFlag = 0
    @EndVars
@EndIf

@If ( @Exists "@OutDrive:@ORCADEXE\\PLDPC-AT.EXE"
   || @Exists "@OutDrive:@ORCADEXE\\S2.EXE" )
    @DefineVars
        @Integer @BackupFlag = 1
    @EndVars
@Else
    @DefineVars
        @Integer @BackupFlag = 0
    @EndVars
@EndIf

@GetOption
    @Cls
                        Select one of the following items:

















 NOTE: If you haven't installed PLD Tools Release IV-386 from these
       disks yet don't choose any of the reinstallation choices, choose
       the standard install.
          @Option 1 = " Standard   Installation of PLD Tools Release IV-386    PRODUCT files"
          @Option 2 = "          Reinstallation of PLD Tools Release IV-386 EXECUTABLE files"
          @Option 3 = "          Reinstallation of PLD Tools Release IV-386     DEVICE files"
          @Option 4 = "          Reinstallation of PLD Tools Release IV-386      TUTOR files"
@EndOption

@If ((@ProductFlag == 1) && (@BackupFlag == 0) && (1 [= @Option))
    @GetOption
        @Cls
    It appears that the PC-AT version of PLD is currently installed. If so,
    do you want PLD archived prior to installing PLD Tools Release IV-386?










       NOTE: If you choose NO all PLD table files will be deleted and be
             replaced with PLD Tools Release IV-386 device files.

    
        The SPACE BAR toggles the selection between yes and no. 
        The arrow keys and PGUP/PGDN keys move the selection up and down.
        'Y' sets all entries to YES, 'N' sets all to NO.
        Press <ENTER> when you have finished selecting.
        @Option 5 = "YES"
        @Option 6 = " NO"
    @EndOption
@EndIf

@If (1 [= @Option || 2 [= @Option )
     @GetOption
     @Cls
   Do you want ALL of the ORCADESP.DAT files in your project sub-directories
   updated to make them compatible with PLD Tools Release IV-386?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
          @Option 7 = "YES"
          @Option 8 = " NO"
     @EndOption
@EndIf

@If ( 1 [=@Option || 3 [= @Option)
    @GetOption
        @CheckBox 
        @Cls
         Select one or more DEVICE files to INSTALL on your HARD DISK.
                     PLD Tools Release IV-386 DEVICE Files














    
        The SPACE BAR toggles the selection between yes and no. 
        The arrow keys and PGUP/PGDN keys move the selection up and down.
        'Y' sets all entries to YES, 'N' sets all to NO.
        Press <ENTER> when you have finished selecting.
        @Option 100 = "   10H8 10 In,  8 Out,               2 PT's/out        "
        @Option 101 = "   10L8 10 In,  8 Out,               2 PT's/out        "
        @Option 102 = "   10P8 10 In,  8 Out,               2 PT's/out Pol    "
        @Option 245 = "MACH110  4 In,         32 I/O, Reg,  V PT's/out Pol Tri"
        @Option 106 = "   12C4 12 In   4 Out,               8 PT's/out        "
        @Option 107 = "  12H10 12 In, 10 Out,               2 PT's/out        "
        @Option 108 = "   12H6 12 In,  6 Out,               V PT's/out        "
        @Option 109 = "  12L10 12 In, 10 Out,               2 PT's/out        "
        @Option 110 = "   12L6 12 In,  6 Out,               V PT's/out        "
        @Option 111 = "  12P10 12 In,  8 Out,               2 PT's/out Pol    "
        @Option 112 = "   12P6 12 In,  6 Out,               V PT's/out Pol    "
        @Option 113 = "   14H4 14 In,  4 Out,               4 PT's/out        "
        @Option 114 = "   14H8 14 In,  8 Out,               V PT's/out        "
        @Option 115 = "   14L4 14 In,  4 Out,               4 PT's/out        "
        @Option 116 = "   14L8 14 In,  8 Out,               V PT's/out        "
        @Option 117 = "   14P4 14 In,  4 Out,               4 PT's/out Pol    "
        @Option 118 = "   14P8 14 In,  8 Out,               V PT's/out Pol    "
        @Option 119 = "   16C1 16 In,  1 Out,               6 PT's/out        "
        @Option 120 = "   16H2 16 In,  2 Out,               8 PT's/out        "
        @Option 121 = "   16H6 16 In,  6 Out,               V PT's/out        "
        @Option 122 = "   16H8 16 In,  2 Out,  6 I/O,       7 PT's/out     Tri"
        @Option 123 = "  16HD8 16 In,  2 Out,  6 I/O,       8 PT's/out        "
        @Option 126 = "   16L2 16 In,  2 Out,               8 PT's/out        "
        @Option 127 = "   16L6 16 In,  6 Out,               V PT's/out        "
        @Option 128 = "   16L8 16 In,  2 Out,  6 I/O,       7 PT's/out     Tri"
        @Option 129 = "  16LD8 16 In,  2 Out,  6 I/O,       8 PT's/out        "
        @Option 130 = "   16N8 16 In,  2 Out,  6 I/O,       1 PT's/out     Tri"
        @Option 131 = "   16P2 16 In,  2 Out,               8 PT's/out Pol    "
        @Option 132 = "  16P4N 16 In,  4 Out,               8 PT's/out        "
        @Option 133 = "   16P6 16 In,  6 Out,               V PT's/out        "
        @Option 134 = "   16P8 16 In,  2 Out,  6 I/O,       7 PT's/out Pol Tri"
        @Option 135 = "  16P8N 16 In,  4 Out,  4 I/O,       8 PT's/out        "
        @Option 136 = "   16R4 16 In,  4 Out,  4 I/O, Reg,  V PT's/out     Tri"
        @Option 137 = "   16R6 16 In,  6 Out,  2 I/O, Reg,  V PT's/out     Tri"
        @Option 138 = "   16R8 16 In,  8 Out,         Reg,  V PT's/out     Tri"
        @Option 139 = "  16RA8 16 In,  0 Out,  8 I/O,       4 PT's/out Pol Tri"
        @Option 140 = "  16RC4  8 In,  4 Out,  4 I/O, Reg,  8 PT's/out        "
        @Option 141 = "  16RC8  8 In,  8 Out,         Reg,  8 PT's/out        "
        @Option 142 = "  16RD4  8 In,  4 Out,  4 I/O, Reg.  8 PT's/out        "
        @Option 143 = "  16RD8  8 In,  8 Out,         Reg,  8 PT's/out        "
        @Option 144 = "  16RM4 12 In,  4 Out,         Reg,  8 PT's/out        "
        @Option 145 = "  16RP4  8 In,  4 Out,  4 I/O, Reg,  V PT's/out Pol Tri"
        @Option 146 = "  16RP6  8 In,  6 Out,         Reg,  8 PT's/out Pol    "
        @Option 147 = "  16RP8  8 In,  8 Out,         Reg,  8 PT's/out Pol    "
        @Option 148 = "   16V8 10 In,          8 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 149 = "  16V8A 10 In,          8 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 150 = "   16X4  8 In,  4 Out,  4 I/O, Reg,  V PT's/out     Tri"
        @Option 151 = "   16Z8 10 In,          8 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 152 = "  16Z8A 10 In,          8 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 153 = "  1800C 12 In,         48 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 154 = "  1810C 12 In,         48 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 241 = "  1830C 12 In,         48 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 155 = "   18H4 18 In,  4 Out,               V PT's/out        "
        @Option 156 = "   18L4 18 In,  4 Out,               V PT's/out        "
        @Option 157 = "   18P4 18 In,  4 Out,               V PT's/out Pol    "
        @Option 158 = "   18P8 10 In,          8 I/O        8 PT's/out Pol Tri"
        @Option 159 = "   18U8  9 In,          8 I/O  Reg,  8 PT's/out Pol Tri"
        @Option 160 = "  18U8Z  9 In,          8 I/O  Reg,  8 PT's/out Pol Tri"
        @Option 161 = "  18V10  8 In,         10 I/O  Reg,  V PT's/out Pol Tri"
        @Option 162 = "   19L8 13 In,  2 Out,  6 I/O  Reg,  7 PT's/out     Tri"
        @Option 163 = "   19R4 11 In,  4 Out,  4 I/O  Reg,  V PT's/out     Tri"
        @Option 164 = "   19R6 11 In,  6 Out,  2 I/O  Reg,  V PT's/out     Tri"
        @Option 165 = "   19R8 11 In,  8 Out,         Reg,  8 PT's/out     Tri"
        @Option 169 = "   20C1 20 In,  2 Out,               6 PT's/out        "
        @Option 170 = "  20H10 12 In,  2 Out,  8 I/O,       3 PT's/out     Tri"
        @Option 171 = "   20H2 20 In,  2 Out,               8 PT's/out        "
        @Option 172 = "   20H8 14 In,  2 Out,  6 I/O        7 PT's/out     Tri"
        @Option 173 = "  20L10 12 In,  2 Out,  8 I/O        3 PT's/out     Tri"
        @Option 174 = "   20L2 20 In,  2 Out,               8 PT's/out        "
        @Option 175 = "   20L8 14 In,  2 Out,  6 I/O        7 PT's/out     Tri"
        @Option 176 = "  20P10 12 In,  2 Out,  8 I/O        3 PT's/out Pol Tri"
        @Option 177 = "   20P2 20 In,  2 Out,               8 PT's/out Pol    "
        @Option 178 = "   20P8 14 In,  2 Out,  6 I/O        7 PT's/out Pol    "
        @Option 179 = "   20R4 12 In,  4 Out,  4 I/O  Reg,  V PT's/out     Tri"
        @Option 180 = "   20R6 12 In,  6 Out,  2 I/O  Reg,  V PT's/out     Tri"
        @Option 181 = "   20R8 12 In,  8 Out,         Reg,  8 PT's/out     Tri"
        @Option 182 = " 20RA10 10 In,         10 I/O  Reg,  4 PT's/out Pol Tri"
        @Option 183 = " 20RP10 10 In,         10 I/O  Reg,  8 PT's/out Pol Tri"
        @Option 185 = "  20RP4 10 In,  4 Out,  6 I/O  Reg,  8 PT's/out Pol Tri"
        @Option 186 = " 20RP4I 12 In,  4 Out,  4 I/O  Reg,  V PT's/out Pol Tri"
        @Option 187 = "  20RP6 10 In,  6 Out,  4 I/O  Reg,  8 PT's/out Pol Tri"
        @Option 188 = " 20RP6I 12 In,  6 Out,  2 I/O  Reg,  V PT's/out Pol Tri"
        @Option 189 = "  20RP8 10 In,  8 Out,  2 I/O  Reg,  8 PT's/out Pol Tri"
        @Option 190 = " 20RP8I 12 In,  8 Out,         Reg,  8 PT's/out Pol Tri"
        @Option 191 = "   20V8 14 In,  8 Out,         Reg,  8 PT's/out Pol Tri"
        @Option 192 = "  20V8A 14 In,  8 Out,         Reg,  8 PT's/out Pol Tri"
        @Option 193 = "  20X10 10 In, 10 Out,         Reg,  2 PT's/out        "
        @Option 194 = "   20X4 10 In,  4 Out,  6 I/O  Reg,  V PT's/out     Tri"
        @Option 195 = "   20X8 10 In,  8 Out,  2 I/O  Reg,  V PT's/out     Tri"
        @Option 246 = "MACH210  4 In,         32 I/O  Reg,  V PT's/out Pol Tri"
        @Option 196 = "  21D10 11 In,         10 I/O  Reg,  5 PT's/out Pol Tri"
        @Option 197 = "  22P10 12 In,         10 I/O        8 PT's/out Pol Tri"
        @Option 198 = "  22V10 12 In,         10 I/O  Reg,  V PT's/out Pol Tri"
        @Option 199 = " 22V10X 12 In,         10 I/O  Reg,  V PT's/out Pol Tri"
        @Option 200 = " 22V10Z 12 In,         10 I/O  Reg,  V PT's/out Pol Tri"
        @Option 201 = "  24L10 16 In,  8 Out,  2 I/O        7 PT's/out     Tri"
        @Option 202 = "  24R10 14 In, 10 Out,         Reg,  8 PT's/out     Tri"
        @Option 203 = "   24R4 14 In,  4 Out,  6 I/O  Reg,  V PT's/out     Tri"
        @Option 204 = "   24R6 14 In,  6 Out,  4 I/O  Reg,  V PT's/out     Tri"
        @Option 205 = "   24R8 14 In,  8 Out,  2 I/O  Reg,  V PT's/out     Tri"
        @Option 209 = " 26CV12 14 In, 12 Out,         Reg,  V PT's/out Pol Tri"
        @Option 213 = "    310 10 In,          8 I/O, Reg,  8 PT's/out     Tri"
        @Option 214 = "    320 10 In,          8 I/O  Reg,  8 PT's/out     Tri"
        @Option 242 = "    330 10 In,          8 I/O  Reg,  8 PT's/out     Tri"
        @Option 225 = "    600  4 In,         16 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 226 = "   600C  4 In,         16 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 227 = "    610  4 In,         16 I/O  Reg,  8 PT's/out Pol Tri"
        @Option 228 = "   610C  4 In,         16 I/O  Reg,  8 PT's/out Pol Tri"
        @Option 243 = "    630  4 In,         16 I/O  Reg,  8 PT's/out Pol Tri"
        @Option 244 = "   630C  4 In,         16 I/O  Reg,  8 PT's/out Pol Tri"
        @Option 232 = "   6L16  6 In, 16 Out,               1 PT's/out        "
        @Option 236 = "   8L14  8 In, 14 Out,               1 PT's/out        "
        @Option 237 = "    900 12 In,         24 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 238 = "   900C 12 In,         24 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 239 = "    910 12 In,         24 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 240 = "   910C 12 In,         24 I/O, Reg,  8 PT's/out Pol Tri"
        @Option 103 = " 128B16  7 In, 16 Out,           128 by 16 PROM        "
        @Option 104 = "  128B4  7 In   4 Out,           128 by  4 PROM        "
        @Option 105 = "  128B8  7 In   8 Out,           128 by  8 PROM        "
        @Option 124 = "  16KB4 14 In,  4 Out,           16K by  4 PROM        "
        @Option 125 = "  16KB8 14 In,  8 Out,           16K by  8 PROM        "
        @Option 166 = "  1KB16 10 In, 16 Out,            1K by 16 PROM        "
        @Option 167 = "   1KB4 10 In,  4 Out,            1K by  4 PROM        "
        @Option 168 = "   1KB8 10 In,  8 Out,            1k by  8 PROM        "
        @Option 206 = " 256B16  8 In, 16 Out,           256 by 16 PROM        "
        @Option 207 = "  256B4  8 In,  4 Out,           256 by  4 PROM        "
        @Option 208 = "  256B8  8 In,  8 Out,           256 by  8 PROM        "
        @Option 210 = "  2KB16 11 In, 16 Out,            2K by 16 PROM        "
        @Option 211 = "   2KB4 11 In,  4 Out,            2K by  4 PROM        "
        @Option 212 = "   2KB8 11 In,  8 Out,            2K by  8 PROM        "
        @Option 215 = "  32B16  5 In, 32 Out,            32 by 16 PROM        "
        @Option 216 = "   32B4  5 In,  4 Out,            32 by  4 PROM        "
        @Option 217 = "   32B8  5 In,  8 Out,            32 by  8 PROM        "
        @Option 219 = "  4KB16 12 In, 16 Out,            4K by 16 PROM        "
        @Option 220 = "   4KB4 12 In,  4 Out,            4K by  4 PROM        "
        @Option 221 = "   4KB8 12 In,  8 Out,            4K by  8 PROM        "
        @Option 222 = " 512B16  9 In, 16 Out,           512 by 16 PROM        "
        @Option 223 = "  512B4  9 In,  4 Out,           512 by  4 PROM        "
        @Option 224 = "  512B8  9 In,  8 Out,           512 by  8 PROM        "
        @Option 229 = "  64B16  6 In, 16 Out,            64 by 16 PROM        "
        @Option 230 = "   64B4  6 In,  4 Out,            64 by  4 PROM        "
        @Option 231 = "   64B8  6 In,  8 Out,            64 by  8 PROM        "
        @Option 233 = "  8KB16 13 In, 16 Out,            8K by 16 PROM        "
        @Option 234 = "   8KB4 13 In,  4 Out,            8K by  4 PROM        "
        @Option 235 = "   8KB8 13 In,  8 Out,            8K by  8 PROM        "
    @EndOption
@EndIf

@DefineDisk

    @Label = "PLD Disk 1"

    @If ( 1 [= @Option || 2 [= @Option)
        @File    READ.ME
            @Out0k  \\@ORCADESP\\PLD\\README.386

        @BeginLib PLD386.PLB

            @File   AMDFIT.EXE
                @Out0k \\@ORCADEXE\\AMDFIT.EXE
            @File   AMDFIT.LIB
                @Out0k \\@ORCADEXE\\AMDFIT.LIB
            @File   FITLOGIC.EXE
                @Out0k \\@ORCADEXE\\FITLOGIC.EXE
            @File   PLD_C.EXE
                @Out0k \\@ORCADEXE\\PLD_C.EXE
            @File   S2.EXE
                @Out0k \\@ORCADEXE\\S2.EXE
            @File   VPINS.T
                @Out0k \\@ORCADEXE\\VPINS.T

            @If (((@ProductFlag == 1) && (@BackupFlag == 0)) && 5 [= @Option)
                @File   PLD.EXE
                    @Out0k \\@ORCADEXE\\PLD386.EXE
                @File   VECTORS.EXE
                    @Out0k \\@ORCADEXE\\VCTRS386.EXE
            @Else
                @File   PLD.EXE
                    @Out0k \\@ORCADEXE\\PLD.EXE
                @File   VECTORS.EXE
                    @Out0k \\@ORCADEXE\\VECTORS.EXE
            @EndIf

        @EndLib

        @BeginLib   PLDESP.PLB
            @File   FIXDAT.EXE
                @Out0k \\@ORCADEXE\FIXDAT.EXE
            @File   ORCADESP.DAT
                @Out0k  \\@ORCADPROJ\\TEMPLATE\\ORCADESP.386
        @EndLib

        @BeginLib   PLDDOCS.PLB
            @File   *.*
                @Out0k  \\@ORCADESP\\PLD\\*.*
        @EndLib

    @EndIf

    @If (1 [= @Option || 4 [= @Option)
        @BeginLib  TUTOR.PLB
            @File    *.*
                @Out0k   \\@ORCADPROJ\\TUTOR\\*.*
        @EndLib
    @EndIf
 
    @If (1 [= @Option || 3 [= @Option)
        @BeginLib   PSYM.PLB
            @File *.*
                @Out0k \\@ORCADESP\\PLD\\LIBRARY\\*.*
        @EndLib

        @BeginLib   PLIB.PLB
        /*  The comment delimiters located in columns 1 and 2 positioned
            around IF and ENDIF statements are there to denote that these
            will always get installed regardless of what the user selected.
            The reason for this is that the tutorial files need those
            particular device files. The IF's and ENDIF's were left in so
            that it was obvious that this was done for a reason.
        */
            @If ( 100 [= @Option )  
                @File P10H8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P10H8.DEV
            @EndIf
            @If ( 101 [= @Option )  
                @File P10L8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P10L8.DEV
            @EndIf
            @If ( 102 [= @Option )  
                @File P10P8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P10P8.DEV
            @EndIf
            @If ( 103 [= @Option )
                @File  P128B16.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P128B16.DEV
            @EndIf
            @If ( 104 [= @Option ) 
                @File P128B4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P128B4.DEV
            @EndIf
            @If ( 105 [= @Option ) 
                @File P128B8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P128B8.DEV
            @EndIf
            @If ( 106 [= @Option )  
                @File P12C4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P12C4.DEV
            @EndIf
            @If ( 107 [= @Option ) 
                @File P12H10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P12H10.DEV
            @EndIf
/*          @If ( 108 [= @Option ) 
*/              @File P12H6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P12H6.DEV
/*          @EndIf
*/          @If ( 109 [= @Option ) 
                @File P12L10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P12L10.DEV
            @EndIf
            @If ( 110 [= @Option )  
                @File P12L6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P12L6.DEV
            @EndIf
            @If ( 111 [= @Option ) 
                @File P12P10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P12P10.DEV
            @EndIf
            @If ( 112 [= @Option )  
                @File P12P6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P12P6.DEV
            @EndIf
/*          @If ( 113 [= @Option )  
*/              @File P14H4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P14H4.DEV
/*          @EndIf
*/          @If ( 114 [= @Option )  
                @File P14H8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P14H8.DEV
            @EndIf
            @If ( 115 [= @Option )  
                @File P14L4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P14L4.DEV
            @EndIf
            @If ( 116 [= @Option )  
                @File P14L8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P14L8.DEV
            @EndIf
            @If ( 117 [= @Option )  
                @File P14P4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P14P4.DEV
            @EndIf
            @If ( 118 [= @Option )  
                @File P14P8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P14P8.DEV
            @EndIf
/*          @If ( 119 [= @Option )  
*/              @File P16C1.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16C1.DEV
/*          @EndIf
*/          @If ( 120 [= @Option )  
                @File P16H2.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16H2.DEV
            @EndIf
            @If ( 121 [= @Option )  
                @File P16H6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16H6.DEV
            @EndIf
            @If ( 122 [= @Option )  
                @File P16H8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16H8.DEV
            @EndIf
/*          @If ( 123 [= @Option ) 
*/              @File P16HD8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16HD8.DEV
/*          @EndIf
*/          @If ( 124 [= @Option ) 
                @File P16KB4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16KB4.DEV
            @EndIf
            @If ( 125 [= @Option ) 
                @File P16KB8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16KB8.DEV
            @EndIf
            @If ( 126 [= @Option )  
                @File P16L2.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16L2.DEV
            @EndIf
            @If ( 127 [= @Option )  
                @File P16L6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16L6.DEV
            @EndIf
/*          @If ( 128 [= @Option ) 
*/              @File P16L8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16L8.DEV
/*          @EndIf
*/          @If ( 129 [= @Option ) 
                @File P16LD8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16LD8.DEV
            @EndIf
            @If ( 130 [= @Option )  
                @File P16N8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16N8.DEV
            @EndIf
            @If ( 131 [= @Option )  
                @File P16P2.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16P2.DEV
            @EndIf
            @If ( 132 [= @Option ) 
                @File P16P4N.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16P4N.DEV
            @EndIf
            @If ( 133 [= @Option )  
                @File P16P6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16P6.DEV
            @EndIf
            @If ( 134 [= @Option )  
                @File P16P8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16P8.DEV
            @EndIf
            @If ( 135 [= @Option ) 
                @File P16P8N.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16P8N.DEV
            @EndIf
            @If ( 136 [= @Option )  
                @File P16R4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16R4.DEV
            @EndIf
/*          @If ( 137 [= @Option ) 
*/              @File P16R6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16R6.DEV
/*          @EndIf
            @If ( 138 [= @Option ) 
*/              @File P16R8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16R8.DEV
/*          @EndIf
*/          @If ( 139 [= @Option ) 
                @File P16RA8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16RA8.DEV
            @EndIf
            @If ( 140 [= @Option ) 
                @File P16RC4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16RC4.DEV
            @EndIf
            @If ( 141 [= @Option ) 
                @File P16RC8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16RC8.DEV
            @EndIf
            @If ( 142 [= @Option ) 
                @File P16RD4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16RD4.DEV
            @EndIf
            @If ( 143 [= @Option ) 
                @File P16RD8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16RD8.DEV
            @EndIf
            @If ( 144 [= @Option ) 
                @File P16RM4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16RM4.DEV
            @EndIf
            @If ( 145 [= @Option ) 
                @File P16RP4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16RP4.DEV
            @EndIf
            @If ( 146 [= @Option ) 
                @File P16RP6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16RP6.DEV
            @EndIf
            @If ( 147 [= @Option ) 
                @File P16RP8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16RP8.DEV
            @EndIf
/*          @If ( 148 [= @Option ) 
*/              @File G16V8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\G16V8.DEV
/*          @EndIf
*/          @If ( 149 [= @Option ) 
                @File G16V8A.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\G16V8A.DEV
            @EndIf
            @If ( 150 [= @Option )  
                @File P16X4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P16X4.DEV
            @EndIf
            @If ( 151 [= @Option )  
                @File G16Z8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\G16Z8.DEV
            @EndIf
            @If ( 152 [= @Option ) 
                @File G16Z8A.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\G16Z8A.DEV
            @EndIf
/*          @If ( 153 [= @Option ) 
*/              @File E1800C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E1800C.DEV
/*          @EndIf
*/          @If ( 154 [= @Option ) 
                @File E1810C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E1810C.DEV
            @EndIf
            @If ( 241 [= @Option ) 
                @File E1830C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E1830C.DEV
            @EndIf
            @If ( 155 [= @Option )  
                @File P18H4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P18H4.DEV
            @EndIf
            @If ( 156 [= @Option )  
                @File P18L4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P18L4.DEV
            @EndIf
            @If ( 157 [= @Option )  
                @File P18P4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P18P4.DEV
            @EndIf
            @If ( 158 [= @Option )  
                @File P18P8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P18P8.DEV
            @EndIf
/*          @If ( 159 [= @Option ) 
*/              @File P18U8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P18U8.DEV
/*          @EndIf
*/          @If ( 160 [= @Option ) 
                @File P18U8Z.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P18U8Z.DEV
            @EndIf
            @If ( 161 [= @Option ) 
                @File G18V10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\G18V10.DEV
            @EndIf
            @If ( 162 [= @Option )  
                @File P19L8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P19L8.DEV
            @EndIf
            @If ( 163 [= @Option )  
                @File P19R4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P19R4.DEV
            @EndIf
            @If ( 164 [= @Option )  
                @File P19R6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P19R6.DEV
            @EndIf
            @If ( 165 [= @Option )  
                @File P19R8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P19R8.DEV
            @EndIf
            @If ( 166 [= @Option ) 
                @File P1KB16.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P1KB16.DEV
            @EndIf
            @If ( 167 [= @Option )  
                @File P1KB4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P1KB4.DEV
            @EndIf
            @If ( 168 [= @Option )  
                @File P1KB8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P1KB8.DEV
            @EndIf
            @If ( 169 [= @Option )  
                @File P20C1.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20C1.DEV
            @EndIf
            @If ( 170 [= @Option ) 
                @File P20H10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20H10.DEV
            @EndIf
            @If ( 171 [= @Option )  
                @File P20H2.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20H2.DEV
            @EndIf
            @If ( 172 [= @Option )  
                @File P20H8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20H8.DEV
            @EndIf
            @If ( 173 [= @Option ) 
                @File P20L10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20L10.DEV
                @File P20L10C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20L10C.DEV
            @EndIf
            @If ( 174 [= @Option )  
                @File P20L2.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20L2.DEV
            @EndIf
            @If ( 175 [= @Option )  
                @File P20L8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20L8.DEV
                @File P20L8C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20L8C.DEV
            @EndIf
            @If ( 176 [= @Option ) 
                @File P20P10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20P10.DEV
            @EndIf
            @If ( 177 [= @Option )  
                @File P20P2.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20P2.DEV
            @EndIf
            @If ( 178 [= @Option )  
                @File P20P8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20P8.DEV
            @EndIf
            @If ( 179 [= @Option )  
                @File P20R4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20R4.DEV
            @EndIf
            @If ( 180 [= @Option )  
                @File P20R6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20R6.DEV
            @EndIf
            @If ( 181 [= @Option )  
                @File P20R8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20R8.DEV
                @File P20R8C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20R8C.DEV
            @EndIf
            @If ( 182 [= @Option )
                @File  P20RA10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20RA10.DEV
                @File  G20RA10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\G20RA10.DEV
            @EndIf
            @If ( 183 [= @Option )
                @File  P20RP10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20RP10.DEV
            @EndIf
            @If ( 185 [= @Option ) 
                @File P20RP4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20RP4.DEV
            @EndIf
            @If ( 186 [= @Option )
                @File  P20RP4I.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20RP4I.DEV
            @EndIf
            @If ( 187 [= @Option ) 
                @File P20RP6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20RP6.DEV
            @EndIf
            @If ( 188 [= @Option )
                @File  P20RP6I.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20RP6I.DEV
            @EndIf
            @If ( 189 [= @Option ) 
                @File P20RP8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20RP8.DEV
            @EndIf
            @If ( 190 [= @Option )
                @File  P20RP8I.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20RP8I.DEV
            @EndIf
            @If ( 191 [= @Option )  
                @File G20V8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\G20V8.DEV
            @EndIf
            @If ( 192 [= @Option ) 
                @File G20V8A.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\G20V8A.DEV
            @EndIf
            @If ( 193 [= @Option ) 
                @File P20X10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20X10.DEV
            @EndIf
            @If ( 194 [= @Option )  
                @File P20X4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20X4.DEV
            @EndIf
            @If ( 195 [= @Option )  
                @File P20X8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P20X8.DEV
            @EndIf
            @If ( 196 [= @Option ) 
                @File P21D10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P21D10.DEV
            @EndIf
            @If ( 197 [= @Option ) 
                @File P22P10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P22P10.DEV
            @EndIf
/*          @If ( 198 [= @Option )
*/              @File P22V10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P22V10.DEV
                @File P22V10C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P22V10C.DEV
                @File G22V10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\G22V10.DEV
/*          @EndIf
*/          @If ( 199 [= @Option )
                @File  P22V10X.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P22V10X.DEV
            @EndIf
            @If ( 200 [= @Option )
                @File  P22V10Z.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P22V10Z.DEV
            @EndIf
            @If ( 201 [= @Option ) 
                @File P24L10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P24L10.DEV
            @EndIf
            @If ( 202 [= @Option ) 
                @File P24R10.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P24R10.DEV
            @EndIf
            @If ( 203 [= @Option )  
                @File P24R4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P24R4.DEV
            @EndIf
            @If ( 204 [= @Option )  
                @File P24R6.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P24R6.DEV
            @EndIf
            @If ( 205 [= @Option )  
                @File P24R8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P24R8.DEV
            @EndIf
            @If ( 206 [= @Option )
                @File  P256B16.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P256B16.DEV
            @EndIf
            @If ( 207 [= @Option ) 
                @File P256B4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P256B4.DEV
            @EndIf
/*          @If ( 208 [= @Option )
*/              @File P256B8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P256B8.DEV
/*          @EndIf
*/          @If ( 209 [= @Option )
                @File  G26CV12.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\G26CV12.DEV
            @EndIf
            @If ( 210 [= @Option ) 
                @File P2KB16.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P2KB16.DEV
            @EndIf
            @If ( 211 [= @Option )  
                @File P2KB4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P2KB4.DEV
            @EndIf
            @If ( 212 [= @Option )  
                @File P2KB8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P2KB8.DEV
            @EndIf
            @If ( 213 [= @Option )   
                @File E310.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E310.DEV
            @EndIf
/*          @If ( 214 [= @Option )   
*/              @File E320.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E320.DEV
/*          @EndIf
*/          @If ( 242 [= @Option )   
                @File E330.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E330.DEV
            @EndIf
            @If ( 215 [= @Option ) 
                @File P32B16.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P32B16.DEV
            @EndIf
            @If ( 216 [= @Option )  
                @File P32B4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P32B4.DEV
            @EndIf
            @If ( 217 [= @Option )  
                @File P32B8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P32B8.DEV
            @EndIf
            @If ( 219 [= @Option ) 
                @File P4KB16.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P4KB16.DEV
            @EndIf
            @If ( 220 [= @Option )  
                @File P4KB4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P4KB4.DEV
            @EndIf
            @If ( 221 [= @Option )  
                @File P4KB8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P4KB8.DEV
            @EndIf
            @If ( 222 [= @Option )
                @File  P512B16.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P512B16.DEV
            @EndIf
            @If ( 223 [= @Option ) 
                @File P512B4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P512B4.DEV
            @EndIf
            @If ( 224 [= @Option ) 
                @File P512B8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P512B8.DEV
            @EndIf
/*          @If ( 225 [= @Option )  
*/              @File E600.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E600.DEV
/*          @EndIf
*/          @If ( 226 [= @Option )  
                @File E600C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E600C.DEV
            @EndIf
            @If ( 227 [= @Option )   
                @File E610.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E610.DEV
            @EndIf
            @If ( 228 [= @Option )  
                @File E610C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E610C.DEV
            @EndIf
            @If ( 243 [= @Option )   
                @File E630.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E630.DEV
            @EndIf
            @If ( 244 [= @Option )  
                @File E630C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E630C.DEV
            @EndIf
            @If ( 229 [= @Option ) 
                @File P64B16.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P64B16.DEV
            @EndIf
            @If ( 230 [= @Option )  
                @File P64B4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P64B4.DEV
            @EndIf
            @If ( 231 [= @Option )  
                @File P64B8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P64B8.DEV
            @EndIf
            @If ( 232 [= @Option )  
                @File P6L16.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P6L16.DEV
            @EndIf
            @If ( 233 [= @Option ) 
                @File P8KB16.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P8KB16.DEV
            @EndIf
            @If ( 234 [= @Option )  
                @File P8KB4.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P8KB4.DEV
            @EndIf
            @If ( 235 [= @Option )  
                @File P8KB8.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P8KB8.DEV
            @EndIf
            @If ( 236 [= @Option )  
                @File P8L14.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\P8L14.DEV
            @EndIf
/*          @If ( 237 [= @Option )  
*/              @File E900.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E900.DEV
/*          @EndIf
*/          @If ( 238 [= @Option )  
                @File E900C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E900C.DEV
            @EndIf
            @If ( 239 [= @Option )   
                @File E910.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E910.DEV
            @EndIf
            @If ( 240 [= @Option )   
                @File E910C.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\E910C.DEV
            @EndIf
/*          @If ( 245 [= @Option )   
*/              @File M110.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\M110.DEV
/*          @EndIf
*/          @If ( 246 [= @Option )   
                @File M210.DEV
                    @Out0K \\@OrCADESP\\PLD\\LIBRARY\\M210.DEV
            @EndIf

        @EndLib
    @EndIf

@EndDisk

@Finish

    @ChDrive @OutDrive

/*  The only way INSTALL can get into the following code (I.E. INSTALL finds
    PLD386.EXE in @ORCADEXE) is to find an existing PLD.EXE, the existing 
    PLD.EXE has not been backed up and the user has chosen to archive the
    existing PLD. The logic for this is:

        (ProductFlag == 1) && (BackupFlag == 0) && (5 [= @Option)

    If the above conditions aren't met the PLD and VECTORS executables are
    unpacked as the PLD.EXE and VECTORS.EXE files. If the conditions are met
    the PLD and VECTORS executables are unpacked as the PLD386.EXE and
    VCTRS386.EXE files.
*/

    @If (@Exists "@OutDrive:\\@ORCADEXE\\PLD386.EXE")
        @If (@Exists "@OutDrive:\\@ORCADEXE\\PLDPC-AT.EXE")
            @If (@Exists "@OutDrive:\\@ORCADEXE\\PLD.EXE")
                @System "Del @OutDrive:\\@ORCADEXE\\PLD.EXE"
                @System "Ren @OutDrive:\\@ORCADEXE\\PLD386.EXE PLD.EXE"
            @Else
                @System "Ren @OutDrive:\\@ORCADEXE\\PLD386.EXE PLD.EXE"
            @EndIf
        @Else
            @If (@Exists "@OutDrive:\\@ORCADEXE\\PLD.EXE")

                /*  This branch of the surrounding IF structure is the only 
                    branch that should get executed. This is because PLD386.EXE
                    will only be made if PLD.EXE already exists and PLDPC-AT
                    doesn't. The remainder of the checking is done for
                    completeness.
                */

                @System "Ren @OutDrive:\\@ORCADEXE\\PLD.EXE PLDPC-AT.EXE"
                @System "Ren @OutDrive:\\@ORCADEXE\\PLD386.EXE PLD.EXE"
            @Else
                @Cls

    *** ERROR: PLD.EXE not Found when PLD386.EXE does exist! Reinstall PLD386
               after deleting the PLD386.EXE and VCTRS386.EXE files.

                @Pause
                @Abort
            @EndIf
        @EndIf

        @If (@Exists "@OutDrive:\\@ORCADEXE\\VCTRS386.EXE")
            @If (@Exists "@OutDrive:\\@ORCADEXE\\VCTPC-AT.EXE")
                @If (@Exists "@OutDrive:\\@ORCADEXE\\VECTORS.EXE")
                    @System "Del @OutDrive:\\@ORCADEXE\\VECTORS.EXE"
                    @System "Ren @OutDrive:\\@ORCADEXE\\VCTRS386.EXE VECTORS.EXE"
                @Else
                    @System "Ren @OutDrive:\\@ORCADEXE\\VCTRS386.EXE VECTORS.EXE"
                @EndIf
            @Else
                @If (@Exists "@OutDrive:\\@ORCADEXE\\VECTORS.EXE")

                    /*  This branch of the surrounding IF structure is the only
                        branch that should get executed. This is because
                        VCTRS386.EXE will only be made if PLD.EXE already
                        exists and VCTPC-AT.EXE doesn't. The remainder of the
                        checking is done for completeness.
                    */

                    @System "Ren @OutDrive:\\@ORCADEXE\\VECTORS.EXE VCTPC-AT.EXE"
                    @System "Ren @OutDrive:\\@ORCADEXE\\VCTRS386.EXE VECTORS.EXE"
                @Else
                    @Cls

*** ERROR: VECTORS.EXE not Found when VCTRS386.EXE does exist! Reinstall PLD386
           after deleting the VCTRS386.EXE and PLD386.EXE files.

                    @Pause
                    @Abort
                @EndIf
            @EndIf
        @EndIF
    @ElseIf ((@ProductFlag == 1) && (@BackupFlag == 0) && (6 [= @Option))

        /*  This option ONLY gets executed if the user selects to overwrite the
            the existing PLD installation.
        */

        @System "If EXIST @OutDrive:@ORCADESP\\PLD\\LIBRARY\\*.BIN DEL @OutDrive:@ORCADESP\\PLD\\LIBRARY\\*.BIN"
        @System "If EXIST @OutDrive:@ORCADESP\\PLD\\LIBRARY\\*.TBL DEL @OutDrive:@ORCADESP\\PLD\\LIBRARY\\*.TBL"
    @EndIF

    @ChDir   "@OutDrive:\\@ORCADPROJ\\Template"

    @If (1 [= @Option || 2 [= @Option )

        @System "echo PLIB='@OutDrive:\\@ORCADESP\\PLD\\LIBRARY\\' > PLD.cfg"

        @If(@Exists "@OutDrive:\\@ORCADESP\\VST\\LIBRARY\\PRIMITIV.NDX")
            @System "echo PMDL='@OutDrive:\\@ORCADESP\\VST\\LIBRARY\\' >> PLD.cfg"
        @Endif

        @System "@OutDrive:@ORCADEXE\\PLD_C /B"
        @System "COPY PLD.cfg @OutDrive:@ORCADPROJ\\TUTOR\\PLD.cfg"
        @System "COPY PLD.bcf @OutDrive:@ORCADPROJ\\TUTOR\\PLD.bcf"

        @If(@Exists "@OutDrive:@ORCADEXE\\SDT_C.EXE")
            /*
                If SDT_C.EXE exists we assume that the SDT product is installed
                If installed this DAT file will take any existing SDT.CFG
                configuration file and copy it to PLDSDT.CFG so the PLDGATES
                library can be added to the configuration for the Edit Schematic
                Logic button in the PLD main screen.
            */
            @If (@exists "SDT.CFG")
                /*
                    If SDT.CFG exists this DAT file will copy it to the 
                    the Edit Schematic Logic button's configuration file.
                    This allows the user a preconfigured button with their
                    personal preferences. 
                */
                @System "Copy SDT.CFG PLDSDT.CFG"
            @Else
                /* 
                    If SDT.CFG doesn't exist make a dummy CFG file
                */
                @System "echo LIB='PLDGATES.LIB' > PLDSDT.CFG"
            @Endif
            /*
                Invoking SDT_C with the /L will create a new BCF without the
                library information (/L strips it out). The /B tells SDT_C
                to run from the command line mode and not present a menu.
                If PLDSDT.CFG already exists (see the above copy command) the
                following SDT_C call will strip the current library info out
                of PLDSDT.CFG, create a new BCF and CFG.
            */
            @System "@OutDrive:@ORCADEXE\\SDT_C /#PLDSDT.CFG /L /B"

            /*
                The following ECHO will append the PLDGATES library line to
                to the current PLDSDT.CFG
            */
            @System "echo LIB='PLDGATES.LIB' >> PLDSDT.CFG"

            /*
                The following call to SDT_C creates a new PLDSDT.BCF with
                the PLDGATES library installed. This BCF is for the Edit
                Schematic Logic button in PLD.
            */
            @System "@OutDrive:@ORCADEXE\\SDT_C /#PLDSDT.BCF /B"

            @System "COPY PLDSDT.cfg @Outdrive:@ORCADPROJ\\TUTOR\\PLDSDT.cfg"
            @System "COPY PLDSDT.bcf @OutDrive:@ORCADPROJ\\TUTOR\\PLDSDT.bcf"
        @EndIf

        @If (7 [= @Option)
            @Cls
 
 
    You've opted to have the ORCADESP.DAT files in all of your project
    sub-directories automatically updated. This update is required for 
    PLD Tools Release IV-386 to run under the ESP framework.
 
    If you choose to abort now by pressing the ESCAPE key please read
    the READ.ME file on the product diskette or the README.386 file 
    located in the @OutDrive:@ORCADESP\PLD sub-directory for instructions on how
    to use FIXDAT.EXE to manually update the ORCADESP.DAT files in your
    project sub-directories.
 
    The following procedure will first update the ORCADESP.DAT file in the
    @OutDrive:@ORCADPROJ\TEMPLATE subdirectory and then use it to update
    the remaining ORCADESP.DAT files found by using the ORCADPROJ
    environmental variable.
 
    Please note that you must manually update any ORCADESP.DAT files in
    additional project sub-directories that you have defined using the
    ORCADPROJ environmental variable.
 
            @Pause
            @If (@Exists "ORCADESP.DAT"
                && @Exists "@OutDrive:@ORCADEXE\\FIXDAT.EXE"
                && @Exists "ORCADESP.386")
                @System "@OutDrive:@ORCADEXE\\FIXDAT ORCADESP.DAT ORCADESP.386 /U"
                @System "@OutDrive:@ORCADEXE\\FIXDAT /A/U"
                @System "Del ORCADESP.386"
                @System "Cls"
            @Else
                @Cls
 
 
 
   *** ERROR: ORCADESP.DAT, ORCADESP.386 or @OutDrive:@ORCADEXE\FIXDAT.EXE
              Not Found!
 
 
              @OutDrive:@ORCADPROJ\TEMPLATE may not be where you normally store
              your project directories (they may be on another drive).
              If this is true then this installation made a TEMPLATE
              subdirectory on @OutDrive: where your executable files
              are stored and you should have chosen to manually update
              your ORCADESP.DAT files. Please use the ORCADESP.DAT
              file located in the @OutDrive:@ORCADPROJ\TEMPLATE subdirectory
              to update the files in your project subdirectories. The
              READ.ME file on the product diskette will tell you how to
              use FIXDAT.EXE to do this.
 
                @Pause
                @Abort
            @EndIf
        @Else
            @Cls
 
 
 
 
    You've opted to manually update the ORCADESP.DAT files in all of your
    project sub-directories. This update is required for PLD Tools Release
    IV-386 to run under the ESP framework.
 
    Please read the READ.ME file on the product diskette or the README.386
    file located in the @OutDrive:@ORCADESP\PLD sub-directory for instructions
    on how to use FIXDAT.EXE to manually update the ORCADESP.DAT files in
    your project sub-directories.
 
 
 
          NOTE: The new ORCADESP data file is located in the
                @OutDrive:@ORCADPROJ\TEMPLATE subdirectory and is called
                "ORCADESP.386". Please use this file to update
                all your existing ORCADESP.DAT files.
 
 
 
 
            @Pause
        @EndIf

        @Cls

             Orcad Programmable Logic Design Tools Release IV-386



                            Installation Complete



           Remember to send in the registration card to receive the
               OrCAD Pointer newsletter and product updates.
        
        
        @Pause

    @EndIf

@EndFinish  
