/* Copyright (c) Oracle Corporation 1995.  All Rights Reserved */
/*****************************************************************************
  NAME
    jdbc.ins - V3 installation script for Windows 95 and Windows NT JDBC

  DESCRIPTION
    This script installs Windows 95 and Windows NT JDBC

  MODIFIED    DD-MMM-YY  Reason
    mdevin    09-SEP-97  Creation (from mgresham Solaris scripts)

*****************************************************************************/
{
  /**************************************************************************
    Start main logic...
    **************************************************************************/

  if (doit)
  {
    ins_ratchet = "8.0.4.0.0";

    execute("%installer_home%\%operating_system%.ins");

    permit_retry_operations = TRUE;

    if (jdbc_oci)
    {
      install(w32rsf80);
    }

    ui_product(product_label);

    ui_action(instantiate(installing_instal));
    copy(instal, nls_abbreviation);

    ui_action(instantiate(installing_lib));
    copy(lib);

    if (jdbc_oci)
    {
      ui_action(instantiate(installing_oci));
      copy (oci);
    }

    if (jdbc_jdk102)
    {
      ui_action(instantiate(installing_jdk102));
      copy (jdk102);
    }

    if (jdbc_jdk111)
    {
      ui_action(instantiate(installing_jdk111));
      copy (jdk111);
    }

    ui_action(instantiate(installing_doc));
    copy(doc);

    ui_action(instantiate(installing_samples));
    copy(samples);

    permit_retry_operations = FALSE;

    ui_product(product_label);

    ui_action(instantiate(registering));

    permit_retry_operation = TRUE;

    register(current_product);
    if (jdbc_oci)
    {
      reference(w32rsf80, current_product);
    }

    permit_retry_operation = FALSE;
  }
}
