home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 13 / 13.iso / p / p078 / 10.img / INSTALL2.DAT < prev    next >
Encoding:
INSTALL Professional project  |  1991-10-14  |  7.2 KB  |  275 lines

  1. /* Installation for IBM OrCAD/Install */
  2.  
  3. @DefineProject
  4.     @Name       = "OrCAD/Install"
  5.     @Version    = "V1.20"
  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.     @DefineVars
  22.         @Integer @ProductFlag = 1
  23.     @EndVars
  24. @Else 
  25.     @DefineVars
  26.         @Integer @ProductFlag = 0
  27.     @EndVars
  28. @EndIf
  29.  
  30. @If (@ProductFlag == 0)
  31.     @GetOption
  32.         @CheckBox
  33.         @Cls
  34.              Select one or more tool sets to install onto your system.
  35.                                OrCAD TOOL SETS
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.         The SPACE BAR toggles the selection between yes and no. 
  48.         The arrow keys and PGUP/PGDN keys move the selection up and down.
  49.         'Y' sets all entries to YES, 'N' sets all to NO.
  50.         Press <ENTER> when you have finished selecting.
  51.         @Option 10 = "     OrCAD Schematic Design Tools    "
  52.         @Option 11 = "    OrCAD Digital Simulation Tools   "
  53.         @Option 12 = "      OrCAD PC Board Layout Tools    "
  54.         @Option 13 = "OrCAD Programmable Logic Device Tools"
  55.         @Option 14 = "         OrCAD Modeling Tools        "
  56.     @EndOption
  57. @Else
  58.     @GetOption
  59.         @CheckBox
  60.         @Cls
  61.         Select ONE or MORE items to install or update on your system.
  62.                                Available Items
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74.         The SPACE BAR toggles the selection between yes and no. 
  75.         The arrow keys and PGUP/PGDN keys move the selection up and down.
  76.         'Y' sets all entries to YES, 'N' sets all to NO.
  77.         Press <ENTER> when you have finished selecting.
  78.         @Option 15 = "   OrCAD Printer and Plotter Drivers   "
  79.         @Option 10 = "      OrCAD Schematic Design Tools     "
  80.         @Option 11 = "     OrCAD Digital Simulation Tools    "
  81.         @Option 12 = "       OrCAD PC Board Layout Tools     "
  82.         @Option 13 = " OrCAD Programmable Logic Device Tools "
  83.         @Option 14 = "          OrCAD Modeling Tools         "
  84.     @EndOption
  85. @EndIf
  86.  
  87. @If (@ProductFlag == 1)
  88.     @GetOption
  89.         @CheckBox
  90.         @Cls
  91.         Do you want to modify ONE or MORE of the following items?
  92.                       CURRENT INSTALLATION PARAMETERS
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.         The SPACE BAR toggles the selection between yes and no. 
  106.         The arrow keys and PGUP/PGDN keys move the selection up and down.
  107.         'Y' sets all entries to YES, 'N' sets all to NO.
  108.         Press <ENTER> when you have finished selecting.
  109.         @Option 1 = "Change Source Floppy Drive from:           @InDrive: "
  110.         @Option 2 = "Change Target Harddrive from:              @OutDrive:"
  111.         @Option 3 = "Change Main Driver/Library directory from: @ORCADESP "
  112.         @Option 4 = "Change Project directory from:             @ORCADPROJ"
  113.         @Option 5 = "Change Executable program directory from:  @ORCADEXE "
  114.         @Option 6 = "Check AUTOEXEC batch file:                           "
  115.     @EndOption
  116. @EndIf
  117.  
  118. @If (1 [= @Option
  119. ||   @ProductFlag == 0)
  120.  
  121.     @GetInDrive
  122.         @CLS
  123.  
  124.     Which disk drive will the floppy disk be?
  125.     @EndInDrive
  126. @EndIf
  127.  
  128. @If (2 [= @Option
  129. ||   @ProductFlag == 0)
  130.  
  131.     @GetOutDrive
  132.         @CLS
  133.  
  134.     Where do you want to install the software?
  135.     @EndOutDrive
  136. @EndIf
  137.  
  138. @If (3 [= @Option ||   @ProductFlag == 0)
  139.  
  140.     @GetSubdir @ORCADESP  
  141.     The @ORCADESP directory contains a subdirectory for each of the OrCAD
  142.     tools.  Those subdirectories contain files that are not particular
  143.     to a specific design, but are global in nature like libraries and
  144.     device models.  The default name for this directory is ORCADESP.
  145.         @Prompt = "What directory for ORCADESP ([Enter] = @ORCADESP) ?"
  146.     @EndSubDir
  147. @EndIf
  148.  
  149. @If (4 [= @Option ||   @ProductFlag == 0)
  150.  
  151.     @GetSubdir @ORCADPROJ
  152.     The @ORCADPROJ directory contains a subdirectory for each design
  153.     that you will be working with.  It will also contain the TEMPLATE
  154.     design directory.  The default name for this directory is @ORCADPROJ 
  155.         @Prompt = "What subdirectory for OrCAD designs ([Enter] = @ORCADPROJ) ?"
  156.     @EndSubDir
  157. @EndIf
  158.  
  159. @If (5 [= @Option ||   @ProductFlag == 0)
  160.  
  161.     @GetSubdir @ORCADEXE
  162.     The @ORCADEXE directory contains the executable files for every OrCAD
  163.     tool you have (or will have) installed.  The default name for this
  164.     directory is @ORCADEXE
  165.         @Prompt = "What subdirectory for ALL OrCAD executables ([Enter] = @ORCADEXE) ?"
  166.     @EndSubDir
  167. @EndIf
  168.  
  169. @If (6 [= @Option ||   @ProductFlag == 0)
  170.     @SetAutoexec
  171.         @AskOverwrite
  172.         @Verbatim "SET ORCADEXE=@OutDrive:@ORCADEXE\\"
  173.         @Verbatim "SET ORCADESP=@OutDrive:@ORCADESP\\"
  174.         @Verbatim "SET ORCADPROJ=@OutDrive:@ORCADPROJ\\"
  175.         @Verbatim "SET ORCADUSER=@OutDrive:@ORCADESP\\"
  176.         @Path "@OutDrive:@ORCADEXE"
  177.     @EndAutoexec
  178. @EndIf
  179.  
  180. @Display
  181.     @Cls
  182.     The items you have selected will be installed onto
  183.     your @OutDrive disk from your @InDrive diskette. @ORCADEXE will
  184.     contain the executable files.  The @ORCADPROJ directory
  185.     is where the design directories will be located.  The
  186.     files that are global in nature (like libraries) will be
  187.     installed in the @ORCADESP directory.  
  188.  
  189.     @If (6 [= @Option ||   @ProductFlag == 0)
  190.     NOTE:  This install process may update your AUTOEXEC.BAT file 
  191.            You must re-boot your system after the install is completed 
  192.            to make these changes take effect.
  193.     @EndIf
  194.  
  195.     Is this OK?
  196.  
  197.     @Pause
  198.     
  199. @EndDisplay
  200.  
  201. @If (6 [= @Option ||   @ProductFlag == 0)
  202.     @Display
  203.         @Cls
  204.     If your AUTOEXEC.BAT file needs to be updated, this installation
  205.     process can update it for you.  If you choose to update your
  206.     AUTOEXEC.BAT file yourself, this installation will show you 
  207.     what to add to the file.  If you choose to have the installation
  208.     update your AUTOEXEC.BAT file, a backup file AUTOEXEC.BAK will
  209.     be created before any changes are implemented.
  210.         @Pause
  211.     @EndDisplay
  212. @EndIf
  213.  
  214. @DefineDisk
  215.     @Label = "Install Master Disk"
  216.     @File   INSTALL.DAT @Option 999
  217. @EndDisk
  218.  
  219. @Finish
  220.     @ChDrive    @InDrive
  221.  
  222.     @Cls
  223.     @If (10 [= @Option)
  224.         @Install "OrCAD/SDT" "SDT Disk 1"
  225.     @EndIf
  226.  
  227.     @Cls
  228.     @If (11 [= @Option)
  229.         @Install "OrCAD/VST" "VST Disk 1"
  230.     @EndIf
  231.  
  232.     @Cls
  233.     @If (12 [= @Option)
  234.         @Install "OrCAD/PCB" "PCB Disk 1"
  235.     @EndIf
  236.     
  237.     @Cls
  238.     @If (13 [= @Option)
  239.         @Install "OrCAD/PLD" "PLD Disk 1"
  240.     @EndIf
  241.  
  242.     @Cls
  243.     @If (14 [= @Option)
  244.         @Install "OrCAD/MOD" "MOD Disk 1"
  245.     @EndIf
  246.  
  247.     @Cls
  248.     @If (15 [= @Option)
  249.         @Install "OrCAD/Install" "IBM Install Master Disk"
  250.     @EndIf
  251.  
  252.     @Cls
  253.  
  254.  
  255.  
  256.  
  257.  
  258.  
  259.                               Installation complete
  260.  
  261.  
  262.  
  263.  
  264.     @If (6 [= @Option ||   @ProductFlag == 0)
  265.     NOTE: If this installation updated your AUTOEXEC.BAT file, you must 
  266.           re-boot your machine to make those changes take effect.
  267.     @EndIf
  268.  
  269.  
  270.  
  271.  
  272.     @Pause 
  273.     
  274. @EndFinish
  275.