/* Copyright (c) Oracle Corporation 1993.  All Rights Reserved */
/*****************************************************************************
  NAME
    rsql60.ins - V3 installation script for Windows Reports Database tables

  DESCRIPTION
    This script copies the main scripts, creates the program items for each of
    the Database Tables adminstration script

  MODIFIED    MM/DD/YY    Reason
*****************************************************************************/
{
    if (doit)
    {
        /*****************************
        Set the VRF-INS script ratchet
        ******************************/
        ins_ratchet = "6.0.8.10.0";

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

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

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

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

        ui_action(instantiate(install_files));
        copy(sql);
        /******************/

        permit_retry_operations = FALSE;

        /*************
        Install Parent
        **************/
        if(install_parent)                                                  /* Install parent first, if necessary */
            install(product_parent(current_product));
        /*************/
        /*******************
         Install dependencies
        ********************/
        EXECUTE_SCRIPT = "INSTALL_DEPENDENCIES";
        execute("%installer_home%%dir_separator%d2kr2ins.usr");
        /*******************/

        permit_retry_operations = TRUE;

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

        /****************************
         Registering map file groups
        *****************************/
        win32_register_OCSM_group(deinst,'MINMODE);
        win32_register_OCSM_group(sql,'MAXMODE);

        /*********************************
        Register and Reference the product
        **********************************/

        EXECUTE_SCRIPT = "REGISTER_REFERENCE_PRODUCT";
        execute("%installer_home%%dir_separator%d2kr2ins.usr");

        /*********************************
        Reference Dependencies
        *********************************/
        {reference(current_product,product_parent(current_product));}     /* reference parent */
        ['UNREGISTERED_PRODUCT: continue();]

        permit_retry_operations = FALSE;


    } /*end doit*/


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