home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p078 / 5.img / INSTALL.DAT < prev    next >
Encoding:
Text File  |  1991-06-23  |  16.3 KB  |  525 lines

  1. /*        Installation for U.S. and Canadian version of OrCAD/VST         */
  2.  
  3. @DefineProject
  4.     @Name       = "OrCAD/VST"
  5.     @Version    = "V4.03n"
  6. @EndProject
  7.  
  8. @DefineVars
  9.     @Dir @ORCADPROJ = "\\ORCAD"
  10.     @Dir @ORCADEXE = "\\ORCADEXE"
  11.     @Dir @ORCADESP = "\\ORCADESP"
  12. @EndVars
  13.  
  14. @GetOption
  15.     @Cls
  16.                         Select one of the following items:
  17.  
  18.  
  19.  
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  NOTE: If you haven't installed VST Release IV from these disks yet don't
  36.        choose any of the reinstallation choices, choose the standard install.
  37.           @Option 1 = " Standard   Installation of VST Release IV     PRODUCT files"
  38.           @Option 2 = "          Reinstallation of VST Release IV       MODEL files"
  39.           @Option 3 = "          Reinstallation of VST Release IV    TUTORIAL files"
  40.           @Option 4 = "          Reinstallation of VST Release IV  EXECUTABLE files"
  41. @EndOption
  42.  
  43. @If (1 [= @Option)
  44.      @GetOption
  45.           @Cls
  46.         Please select your generic display adapter type for Simulation:
  47.     
  48.           @Option 100 = "EGA  display adapter"
  49.           @Option 101 = "VGA  display adapter"
  50.           @Option 102 = "VESA display adapter"
  51.           @Option 103 = "Hercules  Monochrome"
  52.      @EndOption
  53. @Endif
  54.  
  55.  
  56. @If (1 [= @Option || 2 [= @Option)
  57.      @GetOption
  58.           @CheckBox 
  59.           @Cls
  60.       Select one or more model source files to INSTALL on your HARD DISK.
  61.                               MODEL Source Files
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.  
  77.     
  78.         The SPACE BAR toggles the selection between yes and no. 
  79.         The arrow keys and PGUP/PGDN keys move the selection up and down.
  80.         'Y' sets all entries to YES, 'N' sets all to NO.
  81.         Press <ENTER> when you have finished selecting.
  82.          @Option 200 = "74xx"
  83.          @Option 201 = "74ACxx"           
  84.          @Option 202 = "74AC11xx"         
  85.          @Option 203 = "74ACTxx"          
  86.          @Option 204 = "74AHCTxx"         
  87.          @Option 205 = "74ALSxx"          
  88.          @Option 206 = "74ASxx"
  89.          @Option 207 = "74Fxx"
  90.          @Option 208 = "74FCTxx"
  91.          @Option 209 = "74HCxx"
  92.          @Option 210 = "74HCTxx"
  93.          @Option 211 = "74LSxx"
  94.          @Option 212 = "74Sxx"
  95.          @Option 213 = "CMOS devices"
  96.          @Option 214 = "ECL devices"
  97.          @Option 215 = "Altera Macros"     
  98.          @Option 216 = "Altera Primitives" 
  99.          @Option 217 = "Intel Macros"
  100.          @Option 218 = "Intel Primitives"
  101.          @Option 219 = "RAM devices"
  102.          @Option 220 = "ROM device shells"
  103.      @EndOption
  104.  
  105.      @GetOption
  106.           @CheckBox 
  107.           @Cls
  108.  
  109.          @Option 300 = "74xx"
  110.  
  111.           @If ( 201 [= @Option)
  112.               @Option 301 = "74ACxx"           
  113.           @Endif
  114.           @If ( 202 [= @Option)
  115.               @Option 302 = "74AC11xx"         
  116.           @Endif
  117.           @If ( 203 [= @Option)
  118.               @Option 303 = "74ACTxx"          
  119.           @Endif
  120.           @If ( 204 [= @Option)
  121.               @Option 304 = "74AHCTxx"         
  122.           @Endif
  123.           @If ( 205 [= @Option)
  124.               @Option 305 = "74ALSxx"          
  125.           @Endif
  126.           @If ( 206 [= @Option)
  127.               @Option 306 = "74ASxx"
  128.           @Endif
  129.           @If ( 207 [= @Option)
  130.               @Option 307 = "74Fxx"
  131.           @Endif
  132.           @If ( 208 [= @Option)
  133.               @Option 308 = "74FCTxx"
  134.           @Endif
  135.           @If ( 209 [= @Option)
  136.               @Option 309 = "74HCxx"
  137.           @Endif
  138.           @If ( 210 [= @Option)
  139.               @Option 310 = "74HCTxx"
  140.           @Endif
  141.           @If ( 211 [= @Option)
  142.               @Option 311 = "74LSxx"
  143.           @Endif
  144.           @If ( 212 [= @Option)
  145.               @Option 312 = "74Sxx"
  146.           @Endif
  147.           @If ( 213 [= @Option)
  148.               @Option 313 = "CMOS devices"
  149.           @Endif
  150.           @If ( 214 [= @Option)
  151.               @Option 314 = "ECL devices"
  152.           @Endif
  153.           @If ( 215 [= @Option)
  154.               @Option 315 = "Altera Macros"     
  155.           @Endif
  156.           @If ( 216 [= @Option)
  157.               @Option 316 = "Altera Primitives" 
  158.           @Endif
  159.           @If ( 217 [= @Option)
  160.               @Option 317 = "Intel Macros"
  161.           @Endif
  162.           @If ( 218 [= @Option)
  163.               @Option 318 = "Intel Primitives"
  164.           @Endif
  165.           @If ( 219 [= @Option)
  166.               @Option 319 = "RAM devices"
  167.           @EndIF
  168.           @If ( 220 [= @Option)
  169.               @Option 320 = "ROM device shells"
  170.           @EndIf
  171.           @Cls
  172.    Select one or more model source files to COMPILE into your MODEL LIBRARY.
  173.                               MODEL Source Files
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.         The SPACE BAR toggles the selection between yes and no. 
  190.         The arrow keys and PGUP/PGDN keys move the selection up and down.
  191.         'Y' sets all entries to YES, 'N' sets all to NO.
  192.         Press <ENTER> when you have finished selecting.
  193.      @EndOption
  194. @EndIf
  195.  
  196. @DefineDisk
  197.      @Label = "VST Disk 1"
  198.  
  199.      @If (1 [= @Option)
  200.           @File       READ.ME
  201.                @Out0k  \\@ORCADESP\\VST\\README.VST
  202.      @EndIf
  203.  
  204.      @If (1 [= @Option || 4 [= @Option)
  205.           @BeginLib VST.PLB
  206.                @File        *.EXE
  207.                     @Out0k \\@ORCADEXE\\*.EXE
  208.           @EndLib
  209.      @EndIf
  210.  
  211.      @If (1 [= @Option || 2 [= @Option)
  212.           @BeginLib VLIB.PLB
  213.                @If ( 1 [= @Option )
  214.                     @File PRIMITIV.*
  215.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\PRIMITIV.*
  216.                     @File PRIMITIV.DAT
  217.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\MODEL.DAT
  218.                     @File PRIMITIV.NDX
  219.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\MODEL.NDX
  220.                @EndIf
  221.  
  222.                @If (@Exists "@OutDrive:\\@ORCADESP\\VST\\LIBRARY\\Primitiv.DAT")
  223.                @Else
  224.                     @File PRIMITIV.*
  225.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\PRIMITIV.*
  226.                     @File PRIMITIV.DAT
  227.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\MODEL.DAT
  228.                     @File PRIMITIV.NDX
  229.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\MODEL.NDX
  230.                @EndIf
  231.  
  232.                @File TTL.DSF
  233.                     @Out0k \\@ORCADESP\\VST\\LIBRARY\\TTL.DSF
  234.  
  235.                @If (201 [= @Option)
  236.                     @File AC.DSF
  237.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\AC.DSF
  238.                @EndIf
  239.                @If (202 [= @Option)
  240.                     @File AC11.DSF
  241.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\AC11.DSF
  242.                @EndIf
  243.                @If (203 [= @Option)
  244.                     @File ACT.DSF
  245.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\ACT.DSF
  246.                @EndIf
  247.                @If (204 [= @Option)
  248.                     @File AHCT.DSF
  249.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\AHCT.DSF
  250.                @EndIf
  251.                @If (205 [= @Option)
  252.                     @File ALS.DSF
  253.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\ALS.DSF
  254.                @EndIf
  255.                @If (206 [= @Option)
  256.                     @File AS.DSF
  257.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\AS.DSF
  258.                @EndIf
  259.                @If (207 [= @Option)
  260.                     @File F.DSF
  261.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\F.DSF
  262.                @EndIf
  263.                @If (208 [= @Option)
  264.                     @File FCT.DSF
  265.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\FCT.DSF
  266.                @EndIf
  267.                @If (209 [= @Option)
  268.                     @File HC.DSF
  269.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\HC.DSF
  270.                @EndIf
  271.                @If (210 [= @Option)
  272.                     @File HCT.DSF
  273.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\HCT.DSF
  274.                @EndIf
  275.                @If (211 [= @Option)
  276.                     @File LS.DSF
  277.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\LS.DSF
  278.                @EndIf
  279.                @If (212 [= @Option)
  280.                     @File S.DSF
  281.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\S.DSF
  282.                @EndIf
  283.                @If (213 [= @Option)
  284.                     @File CMOS.DSF
  285.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\CMOS.DSF
  286.                @EndIf
  287.                @If (214 [= @Option)
  288.                     @File ECL.DSF
  289.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\ECL.DSF
  290.                @EndIf
  291.                @If (215 [= @Option)
  292.                     @File ALTERA_M.DSF
  293.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\ALTERA_M.DSF
  294.                @EndIf
  295.                @If (216 [= @Option)
  296.                     @File ALTERA_P.DSF
  297.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\ALTERA_P.DSF
  298.                @EndIf
  299.                @If (217 [= @Option)
  300.                     @File INTEL_M.DSF
  301.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\INTEL_M.DSF
  302.                @EndIf
  303.                @If (218 [= @Option)
  304.                     @File INTEL_P.DSF
  305.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\INTEL_P.DSF
  306.                @EndIf
  307.                @If (219 [= @Option)
  308.                     @File RAM.DSF
  309.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\RAM.DSF
  310.                @EndIf
  311.                @If (220 [= @Option)
  312.                     @File ROM.DSF
  313.                          @Out0k \\@ORCADESP\\VST\\LIBRARY\\ROM.DSF
  314.                @EndIf
  315.           @EndLib
  316.      @EndIf
  317.  
  318.      @If (1 [= @Option)
  319.           @BeginLib  VSTDOCS.PLB
  320.                @File *.*
  321.                     @Out0k \\@ORCADESP\\VST\\*.*
  322.           @EndLib
  323.      @EndIf
  324.  
  325.      @If (1 [= @Option || 3 [= @Option)
  326.           @BeginLib  TUTOR.PLB
  327.                @File *.*
  328.                     @Out0k \\@ORCADPROJ\\TUTOR\\*.*
  329.           @EndLib
  330.      @EndIf
  331.  
  332. @EndDisk
  333.  
  334. @Finish
  335.      @ChDrive @OutDrive
  336.  
  337.      @If (1 [= @Option || 2 [= @Option)
  338.           @If (@Exists "@OutDrive:\\@OrcadPROJ\\Template\\ESP.CFG")
  339.           @ElseIf (@Exists "@OutDrive:\\@OrcadPROJ\\Template\\VST.CFG")
  340.           @Else
  341.                @System "MD @OrcadPROJ"
  342.                @ChDir "@OrCADProj"
  343.                @System "MD TEMPLATE"
  344.           @EndIf
  345.  
  346.           @ChDir   "@OutDrive:\\@ORCADPROJ\\Template"
  347.  
  348.           @If (1 [= @Option)
  349.                @System "echo PDRV='@OutDrive:\\@ORCADESP\\DRV\\' > VST.cfg"
  350.                @If ( 100 [= @Option )
  351.                     @System "echo DD='EGA16E.DRV' >> VST.cfg"
  352.                @ElseIf (101 [= @Option )
  353.                     @System "echo DD='VGA640.DRV' >> VST.cfg"
  354.                @ElseIf (102 [= @Option )
  355.                     @System "echo DD='VESA800.DRV' >> VST.cfg"
  356.                @ElseIf (103 [= @Option )
  357.                     @System "echo DD='HGC2.DRV' >> VST.cfg"
  358.                @Else /* Default driver to EGA if no options */ 
  359.                     @System "echo DD='EGA16E.DRV' >> VST.cfg"
  360.                @EndIf
  361.  
  362.                @System "echo PLIB='@OutDrive:@ORCADESP\\VST\\LIBRARY\\' >> VST.cfg"
  363.                @System "COPY VST.cfg @OutDrive:\\@ORCADPROJ\\TUTOR\\VST.cfg"
  364.  
  365.                @System "@OutDrive:\\@ORCADEXE\\VST_C /B"
  366.                @System "COPY VST.bcf @OutDrive:\\@ORCADPROJ\\TUTOR\\VST.bcf"
  367.  
  368.                @If(@Exists "@OutDrive:\\@ORCADEXE\\SDT_C.EXE") 
  369.                     @System "@OutDrive:\\@ORCADEXE\\SDT_C /B /L"
  370.                     @System "echo LIB='VSTGATES.LIB' >> TEMP.cfg"
  371.                     @System "echo LIB='VSTROM.LIB' >> TEMP.cfg"
  372.                     @System "echo LIB='VSTRAM.LIB' >> TEMP.cfg"
  373.                     @System "echo LIB='VSTOTHER.LIB' >> TEMP.cfg"
  374.                     @System "COPY TEMP.CFG VSTSDT.CFG"
  375.                     @System "@ORCADEXE\\SDT_C /#VSTSDT.bcf /B"
  376.                     @System "DEL TEMP.CFG"
  377.                     @System "DEL TEMP.BCF"
  378.                     @System "COPY VSTSDT.cfg @OutDrive:\\@ORCADPROJ\\TUTOR\\VSTSDT.cfg"
  379.                     @System "COPY VSTSDT.bcf @outDrive:\\@ORCADPROJ\\TUTOR\\VSTSDT.bcf"
  380.                @EndIf
  381.  
  382.                @System "COPY VST.bcf @OutDrive:\\@ORCADESP\\VST\\LIBRARY"
  383.  
  384.                @ChDir "@OutDrive:\\@ORCADPROJ\\TUTOR"
  385.  
  386.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO .\\TUTOR.DSF"
  387.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO .\\HRS.DSF"
  388.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO .\\MINSEC.DSF"
  389.           @Endif
  390.  
  391.           @If ( 2 [= @Option )
  392.  
  393.                @If (@Exists "VST.BCF")
  394.                     @System "COPY VST.bcf @OutDrive:\\@ORCADESP\\VST\\LIBRARY"
  395.                @Else
  396.                     @If (@Exists "VST.CFG")
  397.                     @Else
  398.                          @System "echo PLIB='@OutDrive:@ORCADESP\\VST\\LIBRARY\\' > VST.cfg"
  399.                     @EndIf
  400.                     @If (@Exists "@OutDrive:\\@ORCADEXE\\VST_C.EXE")
  401.                          @System "@OutDrive:\\@ORCADEXE\\VST_C /B"
  402.                          @System "COPY VST.bcf @OutDrive:\\@ORCADESP\\VST\\LIBRARY"
  403.                     @Else
  404.                          @Cls
  405.            *** ERROR: VST_C.EXE not Found! Install VST PRODUCT FILES.
  406.                          @Pause
  407.                          @Abort
  408.                     @EndIf
  409.                @EndIf
  410.           @EndIf
  411.  
  412.           @ChDir "@OutDrive:\\@ORCADESP\\VST\\LIBRARY"
  413.                                   
  414.           @System "Cls"
  415.           @Cls
  416.  
  417.           @If (300 [= @Option)
  418.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO TTL.DSF"
  419.           @EndIf
  420.           @If (301 [= @Option)
  421.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO AC.DSF"
  422.           @EndIf
  423.           @If (302 [= @Option)
  424.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO AC11.DSF"
  425.           @EndIf
  426.           @If (303 [= @Option)
  427.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO ACT.DSF"
  428.           @EndIf
  429.           @If (304 [= @Option)
  430.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO AHCT.DSF"
  431.           @EndIf
  432.           @If (305 [= @Option)
  433.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO ALS.DSF"
  434.           @EndIf
  435.           @If (306 [= @Option)
  436.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO AS.DSF"
  437.           @EndIf
  438.           @If (307 [= @Option)
  439.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO F.DSF"
  440.           @EndIf
  441.           @If (308 [= @Option)
  442.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO FCT.DSF"
  443.           @EndIf
  444.           @If (309 [= @Option)
  445.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO HC.DSF"
  446.           @EndIf
  447.           @If (310 [= @Option)
  448.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO HCT.DSF"
  449.           @EndIf
  450.           @If (311 [= @Option)
  451.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO LS.DSF"
  452.           @EndIf
  453.           @If (312 [= @Option)
  454.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO S.DSF"
  455.           @EndIf
  456.           @If (313 [= @Option)
  457.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO CMOS.DSF"
  458.           @EndIf
  459.           @If (314 [= @Option)
  460.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO ECL.DSF"
  461.           @EndIf
  462.           @If (315 [= @Option)
  463.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO ALTERA_M.DSF"
  464.           @EndIf
  465.           @If (316 [= @Option)
  466.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO ALTERA_P.DSF"
  467.           @EndIf
  468.           @If (317 [= @Option)
  469.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO INTEL_M.DSF"
  470.           @EndIf
  471.           @If (318 [= @Option)
  472.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO INTEL_P.DSF"
  473.           @EndIf
  474.           @If (319 [= @Option)
  475.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO RAM.DSF"
  476.           @EndIf
  477.           @If (320 [= @Option)
  478.                @System "@OutDrive:\\@ORCADEXE\\MODELPRO ROM.DSF"
  479.           @EndIf
  480.  
  481.           @System "Cls"
  482.           @Cls
  483.  
  484.           @If (1 [= @Option)
  485.                @Cls
  486.  
  487.  
  488.  
  489.                      OrCAD Digital Simulation Tools
  490.  
  491.  
  492.                          Installation Complete
  493.  
  494.  
  495.  
  496.            Remember to send in the registration card to receive the
  497.                OrCAD Pointer newsletter and product updates.
  498.         
  499.                @Pause
  500.           @EndIf
  501.      @EndIf
  502.  
  503.      @ChDir "@OutDrive:\\@ORCADPROJ\\TEMPLATE"
  504.  
  505.      @If (2 [= @Option || 3 [= @Option || 4 [= @Option)
  506.           @Cls
  507.  
  508.  
  509.  
  510.                      OrCAD Digital Simulation Tools
  511.  
  512.  
  513.                     Reinstallation process complete
  514.  
  515.  
  516.  
  517.  
  518.  
  519.  
  520.         
  521.           @Pause
  522.      @EndIf
  523.  
  524. @EndFinish   
  525.