home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p070 / 2.ddi / INSTALL.DAT < prev    next >
Encoding:
INSTALL Professional project  |  1992-06-26  |  15.1 KB  |  519 lines

  1. @DefineProject
  2.     @Name       = "OrCAD/ESP"
  3.     @Version    = "V4.20"
  4.     @OutDrive   = C
  5.     @SubDir     = "\\ORCADESP\\"
  6. @EndProject
  7.  
  8. @DefineVars
  9.     @Dir @ORCADPROJ = "\\ORCAD"
  10.     @Dir @ORCADEXE = "\\ORCADEXE"
  11.     @Dir @ORCADESP = "\\ORCADESP"
  12.     @QString @DefaultVideo = "EGA16E.DRV"
  13.     @QString @DefaultEditorPath = "@OutDrive:@ORCADEXE"
  14.     @QString @DefaultEditor = "M2EDIT.EXE"
  15. @EndVars
  16.  
  17. @If (@Exists "@OutDrive:@ORCADEXE\\ESPMAIN.EXE"
  18. &&   @Exists "@OutDrive:@ORCADPROJ\\TEMPLATE\\ESP.CFG")
  19.     @DefineVars
  20.         @Integer @ESPFlag = 1
  21.     @EndVars
  22. @Else
  23.     @DefineVars
  24.         @Integer @ESPFlag = 0
  25.     @EndVars
  26. @EndIf
  27.  
  28. @If (@ESPFlag == 0)
  29.     @GetOption
  30.         @CheckBox
  31.         @Cls
  32.       It appears that the ESP design environment isn't installed or wasn't 
  33.                installed using OrCAD's default directory structure.
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.         Note: Selecting YES assumes you are installing the ESP design
  42.               environment for the first time. Selecting NO assumes that
  43.               you already have ESP installed but not in the following
  44.               directories: @OutDrive:@ORCADEXE or at @OutDrive:@ORCADPROJ\TEMPLATE.
  45.  
  46.  
  47.  
  48.         The SPACE BAR toggles the selection between yes and no. 
  49.         'Y' sets entry to YES, 'N' sets entry to NO.
  50.         Press <ENTER> when you have finished selecting.
  51.         @Option 4 = "Is this a new installation of the ESP design environment?"
  52.     @EndOption
  53.  
  54.     @GetOption
  55.         @CheckBox
  56.         @Cls
  57.         Do you want to modify ONE or MORE of the following items?
  58.                       CURRENT INSTALLATION PARAMETERS
  59.  
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.         The SPACE BAR toggles the selection between yes and no. 
  73.         The arrow keys and PGUP/PGDN keys move the selection up and down.
  74.         'Y' sets all entries to YES, 'N' sets all to NO.
  75.         Press <ENTER> when you have finished selecting.
  76.         @Option 10 = "Change Target Harddrive from:              @OutDrive:"
  77.         @Option 15 = "Change Main Driver/Library directory from: @ORCADESP "
  78.         @Option 11 = "Change Executable program directory from:  @ORCADEXE "
  79.         @Option 12 = "Change Project directory from:             @ORCADPROJ"
  80.         @If ( 4 [= @Option )     /*Changes not allowed in custom installation*/
  81.             @Option 13 = "Change default video driver from:          @DefaultVideo"
  82.             @Option 14 = "Change default editor from: @DefaultEditorPath\\@DefaultEditor"
  83.         @EndIf
  84.     @EndOption
  85. @Else   /* ESP was found on default drive and directories */
  86.     @GetOption
  87.     @Cls
  88.    Do you want ALL of the ORCADESP.DAT files in your project sub-directories
  89.    updated to @Version?
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.       NOTE: This installation procedure assumes that your program directory
  99.             at @ORCADEXE and TEMPLATE project directory at @ORCADPROJ are
  100.             on the same drive (@OutDrive:). If your projects are on a separate 
  101.             drive select NO and manually update your ORCADESP.DAT files by
  102.             following the directions in the READ.ME file on the diskette.
  103.  
  104.  
  105.           The arrow keys and PGUP/PGDN keys move the selection up and down.
  106.  
  107.           Press <ENTER> when you have finished selecting.
  108.           @Option 5 = "YES"
  109.           @Option 6 = " NO"
  110.     @EndOption
  111. @EndIf
  112.  
  113. @If ( 10 [= @Option )
  114.     @GetOutDrive
  115.         @CLS
  116.     On which disk drive will be the destination of this install?
  117.     @EndOutDrive
  118. @EndIf
  119.  
  120. @If ( 11 [= @Option )
  121.     @GetSubdir @ORCADEXE
  122.     The @ORCADEXE directory will contain the installation program as well
  123.     as the executables of any of the OrCAD EDA Tool sets.  The default name 
  124.     for this directory is @ORCADEXE
  125.         @Prompt = "What subdirectory for the executables ([Enter] = @ORCADEXE) ?"
  126.     @EndSubDir
  127. @EndIf
  128.  
  129. @If ( 12 [= @Option )
  130.     @GetSubdir @ORCADPROJ
  131.     The @ORCADPROJ directory contains a subdirectory for each design
  132.     that you will be working with. The default name for this directory
  133.     is @ORCADPROJ 
  134.         @Prompt = "ROOT directory for OrCAD designs ([Enter] = @ORCADPROJ) ?"
  135.     @EndSubDir
  136. @EndIf
  137.  
  138. @If ( 15 [= @Option )
  139.     @GetSubdir @ORCADESP  
  140.     The @ORCADESP directory contains a subdirectory for the display,
  141.     printer, and plotter drivers.  This directory also will contain
  142.     a subdirectory for each OrCAD Tool Set you install.
  143.         @Prompt = "What directory for ORCADESP ([Enter] = @ORCADESP) ?"
  144.     @EndSubDir
  145. @EndIf
  146.  
  147. @If ( 13 [= @Option )
  148.      @GetOption
  149.          @Cls
  150.      Please select your generic display adapter type for the ESP Design
  151.      Environment.
  152.     
  153.  
  154.  
  155.  
  156.  
  157.  
  158.  
  159.  
  160.  
  161.  
  162.  
  163.  
  164.           The arrow keys and PGUP/PGDN keys move the selection up and down.
  165.  
  166.           Press <ENTER> when you have finished selecting.
  167.           @Option 50 = "EGA  display adapter"
  168.           @Option 51 = "VGA  display adapter"
  169.           @Option 52 = "VESA display adapter"
  170.           @Option 53 = "Hercules  Monochrome"
  171.      @EndOption
  172. @EndIf
  173.  
  174. @If ( 14 [= @Option )
  175.     @GetString @DefaultEditorPath
  176.         @Default = "@OutDrive:@ORCADEXE"
  177.  
  178.         @Prompt = " Please enter the new editor path (ENTER = @DefaultEditorPath)"
  179.     @EndString
  180.  
  181.     @GetString @DefaultEditor
  182.         @Default = "M2EDIT.EXE"
  183.  
  184.         @Prompt = " Please enter the new editor  (ENTER = @DefaultEditor)"
  185.     @EndString
  186. @EndIf
  187.  
  188. @If ( (@ESPFlag == 0) && (4 [! @Option) )
  189.  
  190.     /*  This section of script checks for the presence of the ESP design 
  191.         environment after the user has modified items from the installation
  192.         menu. This section will only be executed if ESP wasn't found in the
  193.         default areas and the user indicated this wasn't a new installation.
  194.  
  195.         If the design environment still can't be found a message will be
  196.         displayed for the user informing him/her where the updated DAT file
  197.         will be located and to read the READ.ME on the diskkette for how to
  198.         update their designs.
  199.     */
  200.  
  201.     @If (@Exists "@OutDrive:@ORCADEXE\\ESPMAIN.EXE"
  202.     &&   @Exists "@OutDrive:@ORCADPROJ\\TEMPLATE\\ESP.CFG")
  203.         @DefineVars
  204.             @Integer @CustomESPFlag = 1
  205.         @EndVars
  206.     @Else
  207.         @DefineVars
  208.             @Integer @CustomESPFlag = 0
  209.         @EndVars
  210.     @EndIf
  211.  
  212.     @If ( @CustomESPFlag == 1 )
  213.         @GetOption
  214.             @Cls
  215.    Do you want ALL of the ORCADESP.DAT files in your project sub-directories
  216.    updated to the version on this diskette?
  217.  
  218.  
  219.  
  220.  
  221.  
  222.  
  223.  
  224.  
  225.       NOTE: This installation procedure assumes that your program directory
  226.             at @ORCADEXE and TEMPLATE project directory at @ORCADPROJ are
  227.             on the same drive (@OutDrive:). If your projects are on a separate 
  228.             drive select NO and manually update your ORCADESP.DAT files by
  229.             following the directions in the READ.ME file on the diskette.
  230.  
  231.  
  232.           The arrow keys and PGUP/PGDN keys move the selection up and down.
  233.  
  234.           Press <ENTER> when you have finished selecting.
  235.             @Option 7 = "YES"
  236.             @Option 8 = " NO"
  237.         @EndOption
  238.     @Else
  239.         @Display
  240.             @Cls
  241.  
  242.  
  243.         OrCAD ESP design environment files were not found! This procedure
  244.         scanned @ORCADEXE for ESPMAIN.EXE and @ORCADPROJ\TEMPLATE for
  245.         ESP.CFG.
  246.  
  247.         Since the design environment wasn't found this installation
  248.         procedure will put the updated DAT file (ORCADESP.NEW) in
  249.         @ORCADPROJ\TEMPLATE and the design environment program files
  250.         will be put into @ORCADEXE.
  251.  
  252.         Please read the READ.ME file on the diskette for how to use 
  253.         FIXDAT.EXE to update the ORCADESP.DAT files in your project
  254.         subdirectories or press the ESCAPE key to abort the installation.
  255.  
  256.  
  257.             @pause
  258.  
  259.         @EndDisplay
  260.  
  261.     @EndIf
  262. @Else
  263.     @DefineVars
  264.         @Integer @CustomESPFlag = 0
  265.     @EndVars
  266. @EndIF
  267.  
  268. @DefineDisk
  269.     @Label = "IBM ESP Framework Diskette"
  270.     @BeginLib ESP.PLB
  271.         @File        *.EXE
  272.             @Out0k \\@ORCADEXE\\*.EXE
  273.         @File      M2E.HLP
  274.             @Out0k  \\@ORCADEXE\\M2E.HLP
  275.         @File ORCADESP.HLP
  276.             @Out0k \\@ORCADESP\\ORCADESP.HLP    
  277.         @File  SUSPEND.BAT
  278.             @Out0k \\@ORCADEXE\\SUSPEND.BAT
  279.  
  280.         @If ( (@ESPFlag == 0) && (4 [= @Option) )
  281.             /*  This section of the script is only done if ESP wasn't
  282.                 found and the user indicates that this is a new installation.
  283.             */
  284.             @File ORCADESP.DAT
  285.                 @Out0k \\@ORCADPROJ\\TEMPLATE\\ORCADESP.DAT
  286.             @File  ESPCFG.DEF
  287.                 @Out0k \\@ORCADPROJ\\TEMPLATE\\ESPCFG.DEF
  288.             @File DESIGNS.LST
  289.                 @Out0k \\@ORCADPROJ\\DESIGNS.LST
  290.         @Else 
  291.             @File ORCADESP.DAT
  292.                 @Out0k \\@ORCADPROJ\\TEMPLATE\\ORCADESP.NEW
  293.         @EndIf
  294.     @EndLib
  295.     @File INSTALL2.DAT @Out0k  \\@ORCADEXE\\INSTALL.DAT
  296. @EndDisk
  297.  
  298. @Finish
  299.     
  300.     @ChDrive @OutDrive
  301.     @ChDir   "@ORCADPROJ\\TEMPLATE"
  302.     
  303.     @If ( @ESPFlag == 0 && (4 [= @Option) )
  304.  
  305.         /*
  306.             This section of Script is executed only if ESP wasn't found and
  307.             the user indicated that this was a new installation.
  308.         */
  309.  
  310.         @System "echo PDRV='@OutDrive:@ORCADESP\\DRV\\' > ESP.cfg"
  311.  
  312.         @If     ( 50 [= @Option )
  313.              @System "echo DD='EGA16E.DRV' >> ESP.cfg"
  314.         @ElseIf ( 51 [= @Option )
  315.              @System "echo DD='VGA640.DRV' >> ESP.cfg"
  316.         @ElseIf ( 52 [= @Option )
  317.              @System "echo DD='VESA800.DRV' >> ESP.cfg"
  318.         @ElseIf ( 53 [= @Option )
  319.              @System "echo DD='HGC2.DRV' >> ESP.cfg"
  320.         @Else
  321.              @System "echo DD='EGA16E.DRV' >> ESP.cfg"
  322.         @EndIf
  323.  
  324.         @If ( 14 [= @Option )
  325.             @If ( @Exists "@DefaultEditorPath\\@DefaultEditor" )
  326.                 @System "echo EDITOR='@DefaultEditorPath\\@DefaultEditor' >> ESP.cfg"
  327.             @Else
  328.                 @Cls
  329.   
  330.  
  331.  
  332.    *** ERROR: New PATH/EDITOR ( @DefaultEditorPath\@DefaultEditor )
  333.               Not Found!
  334.  
  335.               @OutDrive:@ORCADEXE\M2EDIT.EXE will be used instead.
  336.                 @System "echo EDITOR='@OutDrive:@ORCADEXE\\M2EDIT.EXE' >> ESP.cfg"
  337.                 @Pause
  338.             @EndIf
  339.         @Else
  340.             @System "echo EDITOR='@OutDrive:@ORCADEXE\\M2EDIT.EXE' >> ESP.cfg"
  341.         @EndIf
  342.  
  343.         @System "type ESPcfg.def >> ESP.cfg"
  344.         @System "If EXIST ESPcfg.def DEL ESPcfg.def"
  345.  
  346.         @Cls
  347.  
  348.  
  349.  
  350.  
  351.  
  352.                         OrCAD Design Environment
  353.  
  354.  
  355.  
  356.                          Installation Complete
  357.  
  358.  
  359.  
  360.            Remember to send in the registration card to receive the
  361.                OrCAD Pointer newsletter and product updates.
  362.  
  363.  
  364.  
  365.         @Pause
  366.     @EndIf
  367.     
  368.     @If ( (5 [= @Option) || (7 [= @Option) )
  369.  
  370.         /*  This section of script only gets executed if the user indicates
  371.             they wanted the update to be automatically. In turn the user can
  372.             only choose this if ESP was found in the default areas or was
  373.             found after the user modified the appropriate installation
  374.             choices from the installation menu.
  375.         */
  376.  
  377.         @Cls
  378.              
  379.              
  380.     You've opted to have the ORCADESP.DAT files in all of your project
  381.     subdirectories automatically updated. This process will update your
  382.     ORCADESP.DAT files to @Version. 
  383.              
  384.     If you choose to abort now by pressing the ESCAPE key please read
  385.     the READ.ME file on the diskette for instructions on how to use
  386.     FIXDAT.EXE to manually update the ORCADESP.DAT files in your project
  387.     sub-directories.
  388.              
  389.     The following procedure will first update the ORCADESP.DAT file in the
  390.     @OutDrive:@ORCADPROJ\TEMPLATE subdirectory and then use it to update
  391.     the remaining ORCADESP.DAT files found by using the ORCADPROJ
  392.     environment variable.
  393.              
  394.     Please note that you must manually update any ORCADESP.DAT files in
  395.     additional project sub-directories that you can define by changing the
  396.     ORCADPROJ environmental variable.
  397.  
  398.         @Pause
  399.         @If (@Exists "ORCADESP.DAT"
  400.           && @Exists "@OutDrive:@ORCADEXE\\FIXDAT.EXE"
  401.           && @Exists "ORCADESP.NEW")
  402.             @Cls
  403.  
  404.  
  405.  
  406.  
  407.  
  408.  
  409.  
  410.  
  411.  
  412.  
  413.             Updating ORCADESP.DAT files in project directories...
  414.  
  415.             @System "@OutDrive:@ORCADEXE\\FIXDAT ORCADESP.DAT ORCADESP.NEW /U > NUL"
  416.             @System "@OutDrive:@ORCADEXE\\FIXDAT /A/U > NUL"
  417.             @System "If EXIST ORCADESP.NEW Del ORCADESP.NEW"
  418.             @System "Cls"
  419.         @Else
  420.             @Cls
  421.  
  422.  
  423.  
  424.    *** ERROR: ORCADESP.DAT, ORCADESP.NEW or @OutDrive:@ORCADEXE\FIXDAT.EXE
  425.               Not Found!
  426.  
  427.  
  428.               @OutDrive:@ORCADPROJ\TEMPLATE may not be where you normally store
  429.               your project directories (they may be on another drive).
  430.               If this is true then this installation made a TEMPLATE
  431.               subdirectory on @OutDrive: where your executable files
  432.               are stored and you should have chosen to manually update
  433.               your ORCADESP.DAT files. Please use the ORCADESP.NEW
  434.               file located in the @OutDrive:@ORCADPROJ\TEMPLATE subdirectory
  435.               to update the files in your project subdirectories. The
  436.               READ.ME file on the diskette will tell you how to use 
  437.               FIXDAT.EXE to do update the ORCADESP.DAT files in your
  438.               project subdirectories.
  439.  
  440.             @Pause
  441.             @Abort
  442.         @EndIf
  443.     @EndIf
  444.  
  445.     @If ( ((@ESPFlag == 1) || (@CustomESPFlag == 1)) && (4 [! @Option) )
  446.  
  447.         @Cls
  448.  
  449.  
  450.  
  451.  
  452.  
  453.                         OrCAD Design Environment
  454.  
  455.  
  456.  
  457.                             Update Complete
  458.  
  459.  
  460.       Please read the READ.ME file for the latest information that didn't
  461.       make it into other documentation that you may have received.
  462.  
  463.  
  464.  
  465.       @Pause
  466.     @EndIf
  467.  
  468.     @If (@Exists "@OutDrive:@ORCADEXE\\VERSION.TXT")
  469.       @System "del @OutDrive:@ORCADEXE\\VERSION.TXT"
  470.     @EndIf
  471.  
  472.     @System "@OutDrive:@ORCADEXE\\ESPMAIN.EXE /V >NUL"
  473.     @System "Cls"
  474.     @If (@Exists "@OutDrive:@ORCADEXE\\VERSION.TXT")
  475.       @System "del @OutDrive:@ORCADEXE\\VERSION.TXT"
  476.       @Cls
  477.  
  478.       If you have third party software that integrates directly with
  479.       the ESP design environment, you need to perform these two steps
  480.       to provide a seemless interface:
  481.  
  482.       1.  Place the .VDT files provided by each third party
  483.           installation process in the @OutDrive:@ORCADESP
  484.           directory.
  485.  
  486.       2.  Enter @OutDrive:@ORCADEXE\ESPMAIN.EXE /A from
  487.           the command prompt.
  488.  
  489.       The VDT files contain button specific and logo information for
  490.       the third party software that must be merged with your existing 
  491.       ORCADESP.DAT files.  This is necessary for the successful operation
  492.       of both ESP and the third party software when both are integrated.
  493.  
  494.  
  495.  
  496.       @Pause
  497.     @Else
  498.       @Cls
  499.  
  500.  
  501.  
  502.  
  503.  
  504.  
  505.    *** WARNING: The version of @OutDrive:@ORCADEXE\ESPMAIN.EXE is older
  506.                 than V4.20.  This will prevent you from running
  507.                 third party applications seemlessly within the
  508.                 ESP framework.
  509.  
  510.  
  511.  
  512.  
  513.  
  514.  
  515.       @Pause
  516.     @EndIf
  517.  
  518. @EndFinish
  519.