home *** CD-ROM | disk | FTP | other *** search
/ Oracle Video Server 3.0.3.1 / OVS_3031_NT.iso / win32 / sqlnet / net23 / net23.vrf < prev    next >
Encoding:
Text File  |  1997-08-20  |  2.8 KB  |  84 lines

  1. /* Copyright (c) Oracle Corporation 1997.  All Rights Reserved */
  2. /***************************************************************
  3.  NAME
  4.         net23.vrf
  5.  
  6.  DESCRIPTION
  7.         Verify script for Oracle Networking pseudo-product.
  8.  
  9.  OWNER
  10.         NT SQL*Net Group within Server Technologies.
  11.  
  12.  MODIFIED       MM/DD/YY        Reason
  13.   nevans        05/30/97        Created.
  14. ****************************************************************/
  15.  
  16. {
  17.    /*** First, execute the <operating_system>.vrf script, which returns a boolean, doit,
  18.         indicating whether installation should proceed or not. ***/
  19.    {
  20.       doit = execute("%installer_home%\%operating_system%.vrf");
  21.    }
  22.    [
  23.       'UNBOUND_VARIABLE:
  24.       {
  25.          required_version = product_version(osinstver);
  26.          temp = explode(required_version,".");
  27.          required_version = implode(list(first(temp),first(rest(temp)),
  28.                                       first(rest(rest(temp))),
  29.                                       first(rest(rest(rest(temp))))),".");
  30.          signal('failure,instantiate(nls("instver_too_early1","The version of the Installer currently running is %%installer_version%%. The installation you have chosen requires version %%required_version%% or later. Please run version %%required_version%% or later in order to perform this installation.")));
  31.       }
  32.    ]
  33.  
  34.    /*** The body of this script is contained within this "if" statement. ***/
  35.    if(doit)
  36.    {
  37.       /*** Set the VRF script ratchet variable, guaranteeing a match between VRF and INS version numbers. ***/
  38.  
  39.       vrf_ratchet = "2.3.4.0.0";
  40.  
  41.       /*** Compute and return size requirements for the current product and its dependent products.
  42.            The verify() function calls the .vrf script for the given product, returning its size.  ***/
  43.  
  44.       total_size = 0;
  45.  
  46.  
  47.       /*** NT installs SQL*Net Server, Oracle Names Server, and SQL*Net Client (Adapters autodetected by client)
  48.            Windows 95 installs SQL*Net Client (Adapters will be autodetected) ***/
  49.       if(platform() == "nt")
  50.       {
  51.          {
  52.             total_size = total_size + verify(ntnetsrv23);
  53.          }
  54.          [ 'DEFAULT: continue(); ]
  55.  
  56.          {
  57.             total_size = total_size + verify(w32netclt23);
  58.          }
  59.          [ 'DEFAULT: continue(); ]
  60.  
  61.          {
  62.          total_size = total_size + verify(ntnames20);
  63.          }
  64.          [ 'DEFAULT: continue(); ]
  65.  
  66.          return(total_size);
  67.       }
  68.       else /* win95 */
  69.       {
  70.          {
  71.             total_size = total_size + verify(w32netclt23);
  72.          }
  73.          [ 'DEFAULT: continue(); ]
  74.  
  75.          return(total_size);
  76.       }
  77.    }
  78.    else
  79.    {
  80.       refresh_map_file = FALSE;  /*** Don't bother checking MAP file, as installation will not proceed. ***/
  81.       return(0);
  82.    }
  83. }
  84.