/* Copyright (c) Oracle Corporation 1992.  All Rights Reserved */
/*****************************************************************************
  NAME
    Tracesvr.vrf - Windows NT V3 installation verification script for
    Windows NT Oracle Trace Server

  DESCRIPTION
    This script checks dependencies and environment settings for installation
    of the Windows NT Oracle Trace Server product.

  OWNER
    Oracle Trace Server

  MODIFIED    MM/DD/YY  Reason
  JMR         02/15/96  Beta 5
*****************************************************************************/
{

    vrf_ratchet="7.3.4";

    { doit = execute("%installer_home%\%operating_system%.vrf"); }
  [
    'UNBOUND_VARIABLE:
      {
        required_version = product_version(ntinstver);
        temp = explode(required_version, ".");
        required_version = implode(list(first(temp),first(rest(temp)),
                                        first(rest(rest(temp))),
                                        first(rest(rest(rest(temp))))),".");
        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.")));
      }
  ]

/*****************************************************************************
   Set up strings for NLS ...
*****************************************************************************/

  TRACE_analyze_comment = nls("TRACE_analyze_comment","Analyzing %%product_label%% Dependencies...");
  TRACE_install_scripts = nls("TRACE_install_scripts","Installing %%product_label%% Installation Scripts...");
  TRACE_install_executables = nls("TRACE_install_executables","Installing %%product_label%% Executables...");
  TRACE_register_label = nls("TRACE_register_label","Registering %%product_label%%...");
  TRACE_install_reg = nls("TRACE_install_reg","Installing %%product_label%% OLE2 Registry Files");
  TRACE_install_sql = nls("TRACE_install_sql","Installing %%product_label%% SQL Files");
  TRACE_install_register = nls("TRACE_install_register", "The installer is going to register OLE registry files.  Please select OK after each registration.");
  TRACE_install_other = nls("TRACE_install_other","Installing %%product_label%% other dependent files");
  TRACE_install_ini = nls("TRACE_install_ini","Installing %%product_label%% ini files");


/*****************************************************************************
   Start main logic ...
*****************************************************************************/
  product = w32traceSvr;
  product_label = product_interface_label(product);

  ui_product(product_label);
  ui_action(instantiate(TRACE_analyze_comment));


/*****************************************************************************
   Return the total size of files to be installed ...
*****************************************************************************/
  if (doit)
    {

     return(sum(exe,ini,mesg,nls_abbreviation,sql,deinstl,nls_abbreviation));
    }
  else
   {
     refresh_map_file = FALSE;
     return(0);
    }
}
