/* Copyright (c) Oracle Corporation 1996.  All Rights Reserved */
/*****************************************************************************
  NAME
    NN60.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.8.13.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_dll));
        copy(dll);
        copy(deinstl);


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

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

        permit_retry_operations = FALSE;


         /*********************************
          Register and Reference the product
         **********************************/
         ui_product(instantiate(display_product_label));
         ui_action( instantiate(install_register) );

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

        remove(delold);                                                    /* remove any outdated files if install was successful */

        permit_retry_operations = TRUE;


        /*********************
        Reference dependencies
        **********************/
        ui_product(instantiate(display_product_label));
        ui_action(instantiate(reference_dependencies));
        reference(current_product);
        /*********************/

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