/* Copyright (c) Oracle Corporation 1997.  All Rights Reserved */
/*****************************************************************************
  NAME
    ott80.ins - NT V3 installation script for OTT 8.0.5.0.0 for NT.

  DESCRIPTION
    This script performs the installation tasks for OTT 8.0.5.0.0 for NT.

  OWNER
    Kiminari Akiyama

  MODIFIED    MM/DD/YY  Reason

  kpotter     3/98       version update for 805 EE
    kakiyama  05/13/97  Added Intype File Assistant
    kakiyama  04/25/97  Created.
*****************************************************************************/

{
/*****************************************************************************
   Start main logic ...
*****************************************************************************/
  if (doit)
  {

    /* modify variables in oracle configuration file */
    ins_ratchet = "8.0.5.0.0";
    execute("%installer_home%\%operating_system%.ins");

    install(w32rsf80);

    install(w32jre11);

    install(jsf803);

    install(jdbc);

    permit_retry_operations = TRUE;

    ui_product(product_label);

    ui_action(instantiate(ott_install_env_var));

    /* modify the registery */
    modify("OTT_DFLT", "OTT80",ora_config);
    modify("OTT80","%ORACLE_HOME%\OTT80",ora_config);
    modify("PRO80","%ORACLE_HOME%\PRO80",ora_config);

    /* copy files */
    ui_action(instantiate(ott_install_scripts));
    copy(deinstl,nls_abbreviation);

    ui_action(instantiate(ott_install_exec));
    copy(exec);
    copy(stub);

    ui_action(instantiate(ott_install_ifa));
    copy(ifaw);

    ui_action(instantiate(ott_install_help));
    copy(help, nls_abbreviation);

    if (not(exists("%OTT80%\OTTCFG.CFG")))
    {
      ui_action(instantiate(ott_install_config));
      copy(config);
    }

    ui_action(instantiate(ott_install_msg));
    copy(msg, nls_abbreviation);
    copy(msgpgo, nls_abbreviation);

    permit_retry_operations = FALSE;


/*****************************************************************************
   Register the product ...
*****************************************************************************/
    permit_retry_operations = TRUE;

    ui_action(instantiate(ott_register_label));
    register(current_product);

    reference(current_product);

    reference(w32rsf80,current_product);

    reference(w32jre11, current_product);
    reference(jsf803, current_product);

    permit_retry_operations = FALSE;
  }
}
