home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 February / PCWK0296.iso / po7_win / object10 / object10.vrf < prev    next >
Text File  |  1995-04-14  |  5KB  |  115 lines

  1. /* Copyright (c) Oracle Corporation 1992.  All Rights Reserved */
  2. /*****************************************************************************
  3.   NAME
  4.     object10.vrf - Windows V3 installation verification script for the
  5.                   Personal Oracle RDBMS.
  6.  
  7.   DESCRIPTION
  8.     This script checks dependencies and environment settings for installation
  9.     of the OO4W product and prompts the user for different options.
  10.  
  11.   OWNER
  12.     Biju Albert
  13.  
  14.   MODIFIED    DD-MMM-YY Reason
  15.     balbert  01-DEC-94 Created.
  16. *****************************************************************************/
  17. {
  18.   /**********************************************************************
  19.     Bind default variables...
  20.    ***********************************************************************/
  21.  
  22.   { install_type = install_type; }
  23.   ['UNBOUND_VARIABLE: install_type =  nls("install_type_custom","Custom Install");]
  24.  
  25.   { bundle_name = bundle_name; }
  26.   ['UNBOUND_VARIABLE: bundle_name = "";]
  27.  
  28.   { doit = execute("%installer_home%\windows.vrf"); }
  29.   [
  30.     'UNBOUND_VARIABLE:
  31.       {
  32.         required_version = product_version(windowsinstver);
  33.         temp = explode(required_version,".");
  34.         required_version = implode(list(first(temp),first(rest(temp)),
  35.                                         first(rest(rest(temp))),
  36.                                         first(rest(rest(rest(temp))))),".");
  37.         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.")));
  38.       }
  39.   ]
  40.  
  41.   if (doit)
  42.     {
  43.       /***********************************************************************
  44.           Set the VRF-INS script "ratchet"
  45.        ***********************************************************************/
  46.       vrf_ratchet = "1.0.55.0.0";
  47.  
  48.       {
  49.         set_mshelp = FALSE;
  50.         mshelp = v7_translate("MSHELP");
  51.  
  52.         if (not(exists(mshelp)))
  53.           signal('UNBOUND_ENVIRONMENT_VARIABLE);
  54.       }
  55.         [ 'OS_ERROR,'INVALID_FILE_NAME,
  56.           'PERMISSION_DENIED,'UNBOUND_ENVIRONMENT_VARIABLE:
  57.           {
  58.             mshelp = "%oracle_home%\MSHELP";
  59.             set_mshelp = TRUE;
  60.           }
  61.         ]
  62.  
  63.     windir = windows_directory();
  64.     winsys = windows_system_directory();
  65.  
  66.       /***********************************************************************
  67.          Bind string variables & prompt strings...
  68.       ***********************************************************************/
  69.  
  70.       installing_scripts = nls("installing_scripts",
  71.                                "Installing %%product_label%% Scripts...");
  72.       installing_msg = nls("installing_msg",
  73.                                "Installing %%product_label%% Message Files...");
  74.       installing_executables = nls("installing_executables",
  75.                                "Installing %%product_label%% Executables...");
  76.       installing_dlls = nls("installing_dlls",
  77.                                "Installing %%product_label%% Dynamic Link Libraries...");
  78.       installing_doc = nls("installing_doc",
  79.                                "Installing %%product_label%% Informational Files...");
  80.  
  81.       installing_class_library = nls("installing_class_library",
  82.                                "Installing C++ Class Library Files...");
  83.       installing_object_server = nls("installing_object_server",
  84.                                "Installing Oracle Object Server Files...");
  85.       installing_ole_libraries = nls("installing_ole_libraries",
  86.                                "Installing Microsoft OLE 2.0 Library Files...");
  87.       installing_vb_vba = nls("installing_vb_vba",
  88.                                "Installing VB and VBA Support Files...");
  89.  
  90.       modifying_config = nls("modifying_config",
  91.                                "Modifying Environment Variables...");
  92.       registering = nls("registering","Registering %%product_label%%...");
  93.  
  94.  
  95. /*****************************************************************************
  96.    Start processing ...
  97. *****************************************************************************/
  98.       ui_product(product_label);
  99.  
  100.       return(verify(winrsf71) + sum(deinstl, CPPBMFCEMPEDIT , CPPBMFCEMPEDITRES ,
  101. CPPBMFCH , CPPBMFCLIB , CPPBMFCLIBD , CPPBMFCSRC , CPPBOWL , CPPBOWLEMPEDIT ,
  102. CPPBOWLH , CPPBOWLLIB , CPPBOWLLIBD , CPPBOWLSRC , CPPDOC , CPPH , CPPMFCBIN ,
  103. CPPMFCBIND , CPPMFCLIB , CPPOWLBIN , CPPOWLBIND , CPPOWLLIB , CPPSRC ,
  104. CPPWORK , CPPWORKBOUNDVAL , CPPWORKEMPEDT , CPPWORKEMPEDTRES , CPPWORKLOGDLG ,
  105. CPPWORKPOSADV , CPPDEMOSQL,/*Files ,*/ OIPBIN , OIPSRV, OIPDOC ,OO4W , OO4WREL,
  106. /*OLEBIN , OLEREG*/VBDEPT , VBEMP , VBLOGIN , VBMSG , VBOBJ , VBPARM , VBQUOTE ,
  107. VBRAISE , VBSQL , XSAMP ));
  108.     }
  109.   else
  110.     {
  111.       refresh_map_file = FALSE;
  112.       return(0);
  113.     }
  114. }
  115.