home *** CD-ROM | disk | FTP | other *** search
/ Monster Media 1993 #2 / Image.iso / clipper / 52cus.zip / INSTALL.DAT < prev    next >
Text File  |  1993-08-06  |  12KB  |  406 lines

  1. /****************************************************************/
  2. /*  INSTALL.DAT                                                 */
  3. /*                                                              */
  4. /*  Copyright (c) 1993 Computer Associates International        */
  5. /*  All Rights Reserved                                         */
  6. /*                                                              */
  7. /*  Last revision:   07/30/93                                   */
  8. /****************************************************************/
  9.  
  10. @DefineProject
  11.    @Group     = "A"
  12.    @Requires  @HardDisk
  13.    @Name      = "CA-Clipper 5.2c"
  14.    @Version   = "5.2c"
  15.    @OutDrive  = C
  16.    @Subdir    = "\\CLIPPER5"
  17. @EndProject
  18.  
  19. @DefineVars
  20.    @Integer @InDisk  = 0      /* change for proper input disk type */
  21.    @Dir @Bin         = "@SubDir\\BIN"
  22.    @Dir @Include     = "@SubDir\\INCLUDE"
  23.    @Dir @Lib         = "@SubDir\\LIB"
  24.    @Dir @Obj         = "@SubDir\\OBJ"
  25.    @Dir @Dbu         = "@SubDir\\SOURCE\\DBU"
  26.    @Dir @Rl          = "@SubDir\\SOURCE\\RL"
  27.    @Dir @Sys         = "@SubDir\\SOURCE\\SYS"
  28.    @Dir @Sample      = "@SubDir\\SOURCE\\SAMPLE"
  29.    @Dir @Ng          = "\\NG"
  30.    @Qstring @NewLine = "\n"
  31.    @Qstring @Pkbkp     = "/O"  
  32.    @Qstring @Patchbkp  = "/NOBACKUP"  
  33.    
  34. @EndVars
  35.  
  36. @Display
  37. @Cls
  38.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Patch 
  39.   █ Computer        █
  40.   █  Associates     █     This program will upgrade the CA-Clipper   
  41.   █   International █     version 5.20, 5.2a or 5.2b files on your 
  42.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█     computer system to 5.2c. The basic steps in 
  43.        ▄▄▄▄▄▄▄▄▄          the procedure are as follows:
  44.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄    
  45.    
  46.                           ■ Specify backup options
  47.                           ■ Specify target directories
  48.                           ■ Install patch files to hard disk
  49.                           ■ Execute patch files
  50.  
  51.                   Press Esc at any time to stop the installation.
  52.  
  53.                                        @Pause
  54.  
  55. @EndDisplay
  56. @GetOption
  57. @LocalWindow(9,38)
  58. @Cls
  59.  
  60. @Cls
  61.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Installation
  62.   █ Computer        █
  63.   █  Associates     █     
  64.   █   International █     Specify Patch option:
  65.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█     
  66.        ▄▄▄▄▄▄▄▄▄         
  67.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  68.  
  69.                             @Option 10 = "No Backup" 
  70.                             @Option 11 = "Backup" 
  71.  
  72. @Newline
  73.  
  74.       Select the Patch option which causes PATCH to make backup copies
  75.       of any files affected by the updating process. If BACKUP directory
  76.       does not exist, PATCH will create it. 
  77.  
  78.  
  79.          NOTE: If there is insufficient space for backup files,
  80.                PATCH will NOT apply any patches.
  81. @EndOption
  82.  
  83. DrivePick:
  84. @GetOutDrive
  85. @Suppress A
  86. @Suppress B
  87. @LocalWindow(11,36)
  88. @Cls
  89.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Installation
  90.   █ Computer        █
  91.   █  Associates     █     Select Clipper 5.2 Drive:
  92.   █   International █
  93.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
  94.        ▄▄▄▄▄▄▄▄▄
  95.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.      Use  and  to highlight the drive where CLIPPER 5.2 is installed, 
  106.      then press ─┘ to continue. Press Esc to exit.  
  107.  
  108. @EndOutDrive
  109.  
  110. @GetSubdir
  111. @LocalWindow(6,56)
  112. @Cls
  113.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Installation
  114.   █ Computer        █
  115.   █  Associates     █     Select Clipper 5.2 Directory:
  116.   █   International █
  117.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█
  118.        ▄▄▄▄▄▄▄▄▄
  119.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
  120.  
  121.  
  122.  
  123.          
  124.      Type the directory name where CLIPPER 5.2 is installed, then
  125.      press ─┘ to continue. Press Esc to exit.  
  126.  
  127. @EndSubdir
  128.  
  129. @GetOption
  130. @LocalWindow(7,38)
  131. @Cls
  132.  
  133. @Cls
  134.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Installation
  135.   █ Computer        █
  136.   █  Associates     █     Patch files in the following directories?
  137.   █   International █
  138.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█     
  139.        ▄▄▄▄▄▄▄▄▄         
  140.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄         @Option 101 = "  Yes  " 
  141.                             @Option 102 = "  No   " 
  142. @Newline
  143.                          Executables  =>  @Subdir\BIN
  144.                          Libraries    =>  @Subdir\LIB
  145.                          Header files =>  @SubDir\INCLUDE
  146.                          Obj files    =>  @SubDir\OBJ
  147.                          Dbu files    =>  @Subdir\SOURCE\DBU
  148.                          RL files     =>  @Subdir\SOURCE\RL
  149.                          Sys files    =>  @Subdir\SOURCE\SYS
  150.                          Sample files =>  @Subdir\SOURCE\SAMPLE
  151.                          Norton guide =>  \NG
  152.  
  153.       Select 'Yes' to proceed with patch installation using directories 
  154.       shown above.  If you select 'No', you will be prompted for each
  155.       of the above directories.
  156. @EndOption
  157.  
  158. @Bin = "@Subdir\\Bin"
  159. @Lib = "@Subdir\\Lib"
  160. @Include = "@Subdir\\Include"
  161. @Obj = "@Subdir\\Obj"
  162. @Dbu = "@Subdir\\Source\\Dbu"
  163. @Rl = "@Subdir\\Source\\Rl"
  164. @Sys = "@Subdir\\Source\\Sys"
  165. @Sample = "@Subdir\\Source\\Sample"
  166. @Ng = "\\NG"
  167.  
  168. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Bin" ) ) )
  169. GetBinPath:
  170.   @GetSubdir @Bin
  171.   @LocalWindow(9,48)
  172.   @Move(12,1)
  173.                 Enter the path to the BIN directory, then
  174.                 press ─┘ to continue.  Press Esc to exit.  
  175.  
  176.   @EndSubdir
  177.  
  178.   @If ( ! @DirExists( "@OutDrive:@Bin" ) )
  179.     @Display
  180.     @Move( 12, ( 60 - @StrLen( "@OutDrive:@Bin" ) ) / 2, "@OutDrive:@Bin DIRECTORY NOT FOUND" )
  181.     @Move( 16, 10 )
  182.                                        @Pause
  183.     @EndDisplay
  184.     @Goto GetBinPath
  185.   @Endif
  186. @Endif
  187.  
  188. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Lib" ) ) )
  189. GetLibPath:
  190.   @GetSubdir @Lib
  191.   @LocalWindow(9,48)
  192.   @Move(12,1)
  193.                 Enter the path to the LIB directory, then
  194.                 press ─┘ to continue.  Press Esc to exit.  
  195.   @EndSubdir
  196.  
  197.   @If ( ! @DirExists( "@OutDrive:@Lib" ) )
  198.     @Display
  199.     @Move( 12, ( 60 - @StrLen( "@OutDrive:@Lib" ) ) / 2, "@OutDrive:@Lib DIRECTORY NOT FOUND" )
  200.     @Move( 16, 10 )
  201.                                        @Pause
  202.     @EndDisplay
  203.     @Goto GetLibPath
  204.   @Endif
  205. @Endif
  206.  
  207. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Include" ) ) )
  208. GetIncludePath:
  209.   @GetSubdir @Include
  210.   @LocalWindow(9,48)
  211.   @Move(12,1) 
  212.                 Enter the path to the INCLUDE directory, then
  213.                 press ─┘ to continue.  Press Esc to exit.  
  214.   @EndSubdir
  215.  
  216.   @If ( ! @DirExists( "@OutDrive:@Include" ) )
  217.     @Display
  218.     @Move( 12, ( 60 - @StrLen( "@OutDrive:@Include" ) ) / 2, "@OutDrive:@Include DIRECTORY NOT FOUND" )
  219.     @Move( 16, 10 )
  220.                                        @Pause
  221.     @EndDisplay
  222.     @Goto GetIncludePath
  223.   @Endif
  224. @Endif
  225.  
  226. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Obj" ) ) )
  227. GetObjPath:
  228.   @GetSubdir @Obj
  229.   @LocalWindow(9,48)
  230.   @Move(12,1)
  231.                 Enter the path to the OBJ directory, then
  232.                 press ─┘ to continue.  Press Esc to exit.  
  233.   @EndSubdir
  234.  
  235.   @If ( ! @DirExists( "@OutDrive:@Obj" ) )
  236.     @Display
  237.     @Move( 12, ( 60 - @StrLen( "@OutDrive:@Obj" ) ) / 2, "@OutDrive:@Obj DIRECTORY NOT FOUND" )
  238.     @Move( 16, 10 )
  239.                                        @Pause
  240.     @EndDisplay
  241.     @Goto GetObjPath
  242.   @Endif
  243. @Endif
  244.  
  245. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Dbu" ) ) )
  246. GetDbuPath:
  247.   @GetSubdir @Dbu
  248.   @LocalWindow(9,48)
  249.   @Move(12,1)
  250.                 Enter the path to the DBU directory, then
  251.                 press ─┘ to continue.  Press Esc to exit.  
  252.   @EndSubdir
  253.  
  254.   @If ( ! @DirExists( "@OutDrive:@Dbu" ) )
  255.     @Display
  256.     @Move( 12, ( 60 - @StrLen( "@OutDrive:@Dbu" ) ) / 2, "@OutDrive:@Dbu DIRECTORY NOT FOUND" )
  257.     @Move( 16, 10 )
  258.                                        @Pause
  259.     @EndDisplay
  260.     @Goto GetDbuPath
  261.   @Endif
  262. @Endif
  263.  
  264. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Rl" ) ) )
  265. GetRlPath:
  266.   @GetSubdir @Rl
  267.   @LocalWindow(9,48)
  268.   @Move(12,1)
  269.                 Enter the path to the RL directory, then
  270.                 press ─┘ to continue.  Press Esc to exit.  
  271.   @EndSubdir
  272.  
  273.   @If ( ! @DirExists( "@OutDrive:@Rl" ) )
  274.     @Display
  275.     @Move( 12, ( 60 - @StrLen( "@OutDrive:@Rl" ) ) / 2, "@OutDrive:@Rl DIRECTORY NOT FOUND" )
  276.     @Move( 16, 10 )
  277.                                        @Pause
  278.     @EndDisplay
  279.     @Goto GetRlPath
  280.   @Endif
  281. @Endif
  282.  
  283. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Sys" ) ) )
  284. GetSysPath:
  285.   @GetSubdir @Sys
  286.   @LocalWindow(9,48)
  287.   @Move(12,1)
  288.                 Enter the path to the SYS directory, then
  289.                 press ─┘ to continue.  Press Esc to exit.  
  290.   @EndSubdir
  291.  
  292.   @If ( ! @DirExists( "@OutDrive:@Sys" ) )
  293.     @Display
  294.     @Move( 12, ( 60 - @StrLen( "@OutDrive:@Sys" ) ) / 2, "@OutDrive:@Sys DIRECTORY NOT FOUND" )
  295.     @Move( 16, 10 )
  296.                                        @Pause
  297.     @EndDisplay
  298.     @Goto GetSysPath
  299.   @Endif
  300. @Endif
  301.  
  302. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Sample" ) ) )
  303. GetSamplePath:
  304.   @GetSubdir @Sample
  305.   @LocalWindow(9,48)
  306.   @Move(12,1)
  307.                 Enter the path to the SAMPLE directory, then
  308.                 press ─┘ to continue.  Press Esc to exit.  
  309.   @EndSubdir
  310.  
  311.   @If ( ! @DirExists( "@OutDrive:@Sample" ) )
  312.     @Display
  313.     @Move( 12, ( 60 - @StrLen( "@OutDrive:@Sample" ) ) / 2, "@OutDrive:@Sample DIRECTORY NOT FOUND" )
  314.     @Move( 16, 10 )
  315.                                        @Pause
  316.     @EndDisplay
  317.     @Goto GetSamplePath
  318.   @Endif
  319. @Endif
  320.  
  321. @If ( ( 102 [= @Option ) || ( ! @DirExists( "@OutDrive:@Ng" ) ) )
  322. GetNgPath:
  323.   @GetSubdir @Ng
  324.   @LocalWindow(9,48)
  325.   @Move(12,1)
  326.                 Enter the path to the NG directory, then
  327.                 press ─┘ to continue.  Press Esc to exit.  
  328.   @EndSubdir
  329.  
  330.   @If ( ! @DirExists( "@OutDrive:@Ng" ) )
  331.     @Display
  332.     @Move( 12, ( 60 - @StrLen( "@OutDrive:@Ng" ) ) / 2, "@OutDrive:@Ng DIRECTORY NOT FOUND" )
  333.     @Move( 16, 10 )
  334.                                        @Pause
  335.     @EndDisplay
  336.     @Goto GetNgPath
  337.   @Endif
  338. @EndIf
  339.  
  340.   @DefineDisk
  341.      @Label = "Update Disk"
  342.    
  343.      @BeginLib 52COBJ.LIF
  344.        @FILE *.* @Out @OutDrive:@Obj
  345.      @EndLib
  346.  
  347.      @BeginLib 52CRL.LIF
  348.        @FILE *.* @Out @OutDrive:@Rl
  349.      @EndLib
  350.  
  351.      @BeginLib 52CDBU.LIF
  352.        @FILE *.* @Out @OutDrive:@Dbu
  353.      @EndLib
  354.  
  355.      @BeginLib 52CSAMPL.LIF
  356.        @FILE *.* @Out @OutDrive:@Sample
  357.      @EndLib
  358.  
  359.      @BeginLib 52CSYS.LIF
  360.        @FILE *.* @Out @OutDrive:@Sys
  361.      @EndLib
  362.  
  363.   @EndDisk
  364.  
  365. @Finish
  366. @Cls
  367. @ChDrive(@StartUpDrive)   
  368.  
  369.   @If (10 [= @Option)                                         
  370.  
  371.      @SPAWN("PATCH @OutDrive:@Bin CLP52BIN @patchbkp")
  372.                                        @Pause
  373.      @SPAWN("PATCH @OutDrive:@Lib CLP52LIB @patchbkp")
  374.                                        @Pause
  375.      @SPAWN("PATCH @OutDrive:@Include CLP52INC @patchbkp")
  376.                                        @Pause
  377.      @SPAWN("PATCH @OutDrive:@Ng CLP52NG @patchbkp")
  378.                                        @Pause
  379.   @Endif                                                      
  380.                                                               
  381.   @If (11 [= @Option)                                         
  382.      @SPAWN("PATCH @OutDrive:@Bin CLP52BIN")
  383.                                             @Pause
  384.      @SPAWN("PATCH @OutDrive:@Lib CLP52LIB")
  385.                                        @Pause
  386.      @SPAWN("PATCH @OutDrive:@Include CLP52INC")
  387.                                        @Pause
  388.      @SPAWN("PATCH @OutDrive:@Ng CLP52NG")
  389.                                        @Pause
  390.   @Endif                                                      
  391.  
  392.   @Cls
  393.   █▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀█     @Name Installation
  394.   █ Computer        █
  395.   █  Associates     █     CA-Clipper 5.2c has been successfully installed
  396.   █   International █     on your computer. Before using the product,
  397.   █▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄█     view the README file located in the @SubDir
  398.        ▄▄▄▄▄▄▄▄▄          directory using your word processor or the DOS
  399.     ▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄       TYPE command. This file contains the latest
  400.                           product information.
  401.  
  402.  
  403.  
  404. @Pause
  405. @EndFinish  
  406.