/* Copyright (c) Oracle Corporation 1996.  All Rights Reserved */
/*****************************************************************************
  NAME
    vgs60.ins - V3 installation script for the Tools Utilities 6.0

  DESCRIPTION
    This script installs the Tools Utilities 6.0

  MODIFIED    MM/DD/YY   Reason
*****************************************************************************/
{
    if (doit)
    {
        /*****************************
        Set the VRF-INS script ratchet
        ******************************/
        ins_ratchet = "6.0.5.37.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));


        copy(deinstl);

        ui_action(instantiate(install_res));
        copy(vgs);

        ui_action(instantiate(install_dll));
        copy(dll);

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

        permit_retry_operations = FALSE;

        /**************************
        Modify Config Variables....
        ***************************/
        ui_action(instantiate(modify_variables));

        /* Add vgs60 in Registry */

        if (set_vgs60)
        {
            modify("VGS60", VGS60, ora_config, product_filename(current_product));     /* add vgs60 in Registry */
            win32_register_key("$ORACLE","","VGS60",'REPLICATE);
        }


         /*************
        Install Parent
        **************/
        if(install_parent)                                                  /* Install parent first, if necessary */
            install(product_parent(current_product));
        /*************/

        /***************************************************************
         Registering map variables except Installer_home and oracle_home
        ****************************************************************/
        win32_register_map_variable("VGS60");

        /****************************
         Registering map file groups
        *****************************/
         /*********************************
          Register and Reference the product
         **********************************/
         ui_product(instantiate(display_product_label));
         ui_action( instantiate(install_register) );

         register(current_product);
         reference(current_product);
         /*********************************/

        remove(delold);

        permit_retry_operations = TRUE;
        permit_retry_operations = FALSE;
    }
    [
        'UNREGISTERED_PRODUCT: continue();
        'CANCEL: signal('FAILURE, instantiate(halt_installation));
    ]
}
