/* Copyright (c) Oracle Corporation 1994.  All Rights Reserved */

/****************************************************************************
  NAME
    d2la.ins - installation script for Oracle JInitiator.

  DESCRIPTION
    This script installs Load Balancer.

  OWNER
    Thomas C. Jose

  MODIFIED  MM/DD/YY   Reason
  tjose     6/8/99   Created
*****************************************************************************/

{
    if (doit)
    {

        /*****************************
        Set the VRF-INS script ratchet
        ******************************/
        ins_ratchet = "6.0.0.0.0";

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

        permit_retry_operations  = TRUE;
        permit_ignore_operations = TRUE;
        permit_process_operations= TRUE;

        /******************
        Install the product
        *******************/
        ui_product(instantiate(display_product_label));

        ui_action(instantiate(install_files));
        copy(deinst);

        ui_action(instantiate(install_exe));
	  copy(dll);

 
        /******************/

/*
        permit_retry_operations = TRUE;

        modify("ORACLE_D2LA", ORACLE_D2LA, ora_config, product_filename(current_product));
        win32_register_key("$ORACLE","","ORACLE_D2LA",'REPLICATE);
*/

        /*********************************
        Register and Reference the product
        and remove delold
        **********************************/
        EXECUTE_SCRIPT = "REGISTER_REFERENCE_PRODUCT";
        execute("%installer_home%%dir_separator%d2kr2ins.usr");

        permit_retry_operations = FALSE;

    } 

        [
            'UNREGISTERED_PRODUCT: continue();
            'CANCEL: signal('FAILURE, instantiate(halt_installation));
        ]


}
