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

  1. /* Installation for IBM OrCAD/Install */
  2.  
  3. @DefineProject
  4.     @Name       = "OrCAD/Install"
  5.     @Version    = "V1.30"
  6.     @InDrive    = A
  7.     @OutDrive   = C
  8.     @SubDir     = "\\ORCADESP\\"
  9. @EndProject
  10.  
  11. @DefineVars
  12.     @Dir @ORCADPROJ = "\\ORCAD"
  13.     @Dir @ORCADEXE = "\\ORCADEXE"
  14.     @Dir @ORCADESP = "\\ORCADESP"
  15. @EndVars
  16.  
  17. @If ( (@Exists "@OutDrive:@ORCADEXE\\SDT_C.EXE"
  18. ||     @Exists "@OutDrive:@ORCADEXE\\VST_C.EXE"
  19. ||     @Exists "@OutDrive:@ORCADEXE\\PLD_C.EXE"
  20. ||     @Exists "@OutDrive:@ORCADEXE\\PCB_C.EXE")
  21. &&   ( @Exists "@OutDrive:@ORCADEXE\\ORINSTAL.EXE") )
  22.     @DefineVars
  23.         @Integer @ProductFlag = 1
  24.     @EndVars
  25. @Else 
  26.     @DefineVars
  27.         @Integer @ProductFlag = 0
  28.     @EndVars
  29. @EndIf
  30.  
  31. @If (@ProductFlag == 0)
  32.     @GetOption
  33.         @CheckBox
  34.         @Cls
  35.              Select one or more tool sets to install onto your system.
  36.                                OrCAD TOOL SETS
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.         The SPACE BAR toggles the selection between yes and no. 
  49.         The arrow keys and PGUP/PGDN keys move the selection up and down.
  50.         'Y' sets all entries to YES, 'N' sets all to NO.
  51.         Press <ENTER> when you have finished selecting.
  52.         @Option 10 = "     OrCAD ESP Design Environment    "
  53.         @Option 11 = "     OrCAD Schematic Design Tools    "
  54.         @Option 12 = "    OrCAD Digital Simulation Tools   "
  55.         @Option 13 = "      OrCAD PC Board Layout Tools    "
  56.         @Option 14 = "OrCAD Programmable Logic Design Tools"
  57.         @Option 15 = "         OrCAD Modeling Tools        "
  58.     @EndOption
  59. @Else
  60.     @GetOption
  61.         @CheckBox
  62.         @Cls
  63.         Select ONE or MORE items to install or update on your system.
  64.                                Available Items
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.  
  75.  
  76.         The SPACE BAR toggles the selection between yes and no. 
  77.         The arrow keys and PGUP/PGDN keys move the selection up and down.
  78.         'Y' sets all entries to YES, 'N' sets all to NO.
  79.         Press <ENTER> when you have finished selecting.
  80.         @Option 16 = "OrCAD Printer, Plotter and Display Drivers   "
  81.         @Option 10 = "       OrCAD ESP Design Environment          "
  82.         @Option 11 = "       OrCAD Schematic Design Tools          "
  83.         @Option 12 = "      OrCAD Digital Simulation Tools         "
  84.         @Option 13 = "        OrCAD PC Board Layout Tools          "
  85.         @Option 14 = "   OrCAD Programmable Logic Device Tools     "
  86.         @Option 15 = "           OrCAD Modeling Tools              "
  87.     @EndOption
  88. @EndIf
  89.  
  90. @If ( 10 [! @Option
  91. &&    11 [! @Option
  92. &&    12 [! @Option
  93. &&    13 [! @Option        /* If no products were chosen abort install */
  94. &&    14 [! @Option
  95. &&    15 [! @Option
  96. &&    16 [! @Option )
  97.  
  98.     @Display
  99.         @Cls
  100.  
  101.  
  102.  
  103.     *** ERROR - No installation options were chosen. INSTALL aborting...
  104.  
  105.  
  106.  
  107.  
  108.  
  109.         @Abort
  110.     @EndDisplay
  111.  
  112. @EndIf
  113.  
  114. @GetOption
  115.     @CheckBox
  116.     @Cls
  117.         Do you want to modify ONE or MORE of the following items?
  118.                       CURRENT INSTALLATION PARAMETERS
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.         The SPACE BAR toggles the selection between yes and no. 
  132.         The arrow keys and PGUP/PGDN keys move the selection up and down.
  133.         'Y' sets all entries to YES, 'N' sets all to NO.
  134.         Press <ENTER> when you have finished selecting.
  135.     @Option 1 = "Change Source Floppy Drive from:           @InDrive: "
  136.     @Option 2 = "Change Target Harddrive from:              @OutDrive:"
  137.     @Option 3 = "Change Main Driver/Library directory from: @ORCADESP "
  138.     @Option 4 = "Change Project directory from:             @ORCADPROJ"
  139.     @Option 5 = "Change Executable program directory from:  @ORCADEXE "
  140.     @Option 6 = "Check and/or modify AUTOEXEC batch file:             "
  141. @EndOption
  142.  
  143. @If ( 1 [= @Option )
  144.     @GetInDrive
  145.         @CLS
  146.  
  147.     Which disk drive will contain the floppy disk?
  148.     @EndInDrive
  149. @EndIf
  150.  
  151. @If ( 2 [= @Option )
  152.     @GetOutDrive
  153.         @CLS
  154.  
  155.     Where do you want to install the software?
  156.     @EndOutDrive
  157. @EndIf
  158.  
  159. @If ( 3 [= @Option )
  160.     @GetSubdir @ORCADESP  
  161.     The @ORCADESP directory contains a subdirectory for each of the OrCAD
  162.     tools.  Those subdirectories contain files that are not particular
  163.     to a specific design, but are global in nature like libraries and
  164.     device models.  The default name for this directory is @ORCADESP.
  165.         @Prompt = "What directory for ORCADESP ([Enter] = @ORCADESP) ?"
  166.     @EndSubDir
  167. @EndIf
  168.  
  169. @If ( 4 [= @Option )
  170.     @GetSubdir @ORCADPROJ
  171.     The @ORCADPROJ directory contains a subdirectory for each design
  172.     that you will be working with.  It will also contain the TEMPLATE
  173.     design directory.  The default name for this directory is @ORCADPROJ 
  174.         @Prompt = "What subdirectory for OrCAD designs ([Enter] = @ORCADPROJ) ?"
  175.     @EndSubDir
  176. @EndIf
  177.  
  178. @If ( 5 [= @Option )
  179.     @GetSubdir @ORCADEXE
  180.     The @ORCADEXE directory contains the executable files for every OrCAD
  181.     tool you have (or will have) installed.  The default name for this
  182.     directory is @ORCADEXE
  183.         @Prompt = "What subdirectory for ALL OrCAD executables ([Enter] = @ORCADEXE) ?"
  184.     @EndSubDir
  185. @EndIf
  186.  
  187. @If ( 6 [= @Option )
  188.     @Display
  189.         @Cls
  190.     If your AUTOEXEC.BAT file needs to be updated, this installation
  191.     process can update it for you.  If you choose to update your
  192.     AUTOEXEC.BAT file yourself, this installation will show you 
  193.     what to add to the file.  If you choose to have the installation
  194.     update your AUTOEXEC.BAT file, a backup file AUTOEXEC.BAK will
  195.     be created before any changes are implemented.
  196.         @Pause
  197.     @EndDisplay
  198.  
  199.     @SetAutoexec
  200.         @AskOverwrite
  201.         @Verbatim "SET ORCADEXE=@OutDrive:@ORCADEXE\\"
  202.         @Verbatim "SET ORCADESP=@OutDrive:@ORCADESP\\"
  203.         @Verbatim "SET ORCADPROJ=@OutDrive:@ORCADPROJ\\"
  204.         @Verbatim "SET ORCADUSER=@OutDrive:@ORCADESP\\"
  205.         @Path "@OutDrive:@ORCADEXE"
  206.     @EndAutoexec
  207. @EndIf
  208.  
  209. @If ( @Exists "@OutDrive:@ORCADEXE\\SDT_C.EXE"     /* SDT installed */
  210. ||    @Exists "@OutDrive:@ORCADEXE\\VST_C.EXE"     /* VST installed */
  211. ||    @Exists "@OutDrive:@ORCADEXE\\PLD_C.EXE"     /* PLD installed */
  212. ||    @Exists "@OutDrive:@ORCADEXE\\PCB_C.EXE"     /* PCB installed */
  213. ||    6 [= @Option                                 /* User selected check */
  214. ||    @Exists "@OutDrive:@ORCADEXE\\ORINSTAL.EXE"  /* INSTALL installed */
  215. ||   (@ProductFlag == 1) )                         /* Product previously
  216.                                                         found before menu
  217.                                                         choices */
  218.  
  219.     /*  Do nothing. The AUTOEXEC check has been done or an installation
  220.         was done previously and I'll assume it worked.
  221.     */
  222.  
  223. @Else
  224.     @Display
  225.         @Cls
  226.  
  227.     Be sure that the OrCAD environment variables are added to your 
  228.     AUTOEXEC.BAT file. To do this you must have a text editor available.
  229.     A typical set of variables will look as follows:
  230.  
  231.                    Set ORCADEXE=@OutDrive:@ORCADEXE\\
  232.                    Set ORCADESP=@OutDrive:@ORCADESP\\
  233.                    Set ORCADPROJ=@OutDrive:@ORCADPROJ\\
  234.  
  235.     To make the variables take effect, reboot your PC.
  236.  
  237.     Or if you'd prefer, run this installation again and change the
  238.     "Check and/or modify AUTOEXEC batch file" selection to yes.   
  239.  
  240.         @Pause
  241.     @EndDisplay
  242. @EndIf
  243.  
  244. @Display
  245.     @Cls
  246.     The items you have selected will be installed onto
  247.     your @OutDrive disk from your @InDrive diskette. @ORCADEXE will
  248.     contain the executable files.  The @ORCADPROJ directory
  249.     is where the design directories will be located.  The
  250.     files that are global in nature (like libraries) will be
  251.     installed in the @ORCADESP directory.  
  252.  
  253.     @If ( 6 [= @Option )
  254.     NOTE:  This install process may update your AUTOEXEC.BAT file 
  255.            You must re-boot your system after the install is completed 
  256.            to make these changes take effect.
  257.     @EndIf
  258.  
  259.  
  260.  
  261.     Press a key to continue or the ESCape key to abort the install.
  262.  
  263.  
  264.  
  265.     @Pause
  266.     
  267. @EndDisplay
  268.  
  269. @DefineDisk
  270.     @Label = "Install Master Disk"
  271.     @File   INSTALL.DAT @Option 999
  272. @EndDisk
  273.  
  274. @Finish
  275.     @ChDrive    @InDrive
  276.  
  277.     @Cls
  278.  
  279.     @If (10 [= @Option)
  280.         @Install "OrCAD/ESP" "IBM ESP Framework Diskette"
  281.     @EndIf
  282.  
  283.     @Cls
  284.     @If (11 [= @Option)
  285.         @Install "OrCAD/SDT" "SDT Disk 1"
  286.     @EndIf
  287.  
  288.     @Cls
  289.     @If (12 [= @Option)
  290.         @Install "OrCAD/VST" "VST Disk 1"
  291.     @EndIf
  292.  
  293.     @Cls
  294.     @If (13 [= @Option)
  295.         @Install "OrCAD/PCB" "PCB Disk 1"
  296.     @EndIf
  297.     
  298.     @Cls
  299.     @If (14 [= @Option)
  300.         @Install "OrCAD/PLD" "PLD Disk 1"
  301.     @EndIf
  302.  
  303.     @Cls
  304.     @If (15 [= @Option)
  305.         @Install "OrCAD/MOD" "MOD Disk 1"
  306.     @EndIf
  307.  
  308.     @Cls
  309.     @If (16 [= @Option)
  310.         @Install "OrCAD/Install" "IBM Install Master Disk"
  311.     @EndIf
  312.  
  313.     @Cls
  314.  
  315.  
  316.  
  317.  
  318.  
  319.  
  320.                               Installation complete
  321.  
  322.  
  323.  
  324.  
  325.     @If ( 6 [= @Option )
  326.     NOTE: If this installation updated your AUTOEXEC.BAT file, you must 
  327.           re-boot your machine to make those changes take effect.
  328.     @EndIf
  329.  
  330.  
  331.     @Pause
  332.  
  333. @EndFinish
  334.