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

/*****************************************************************************
  NAME
    rccsnd60.ins - V3 installation script for Windows Reports 6.0 Cue Card
                   Sound Files

  DESCRIPTION
    This script installs Windows Reports 6.0 Cue Card Sound Files.

  MODIFIED      MM/DD/YY        REASON
   pgupta    11/07/97   created.
******************************************************************************/

{
    if (doit)
    {
        /*****************************
        Set the VRF-INS script ratchet
        ******************************/
        ins_ratchet = "6.0.0.0.1";

        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);
        copy(reports,"us");
        copy(reports,nls_abbreviation);
        /******************/

        permit_retry_operations = FALSE;

        ui_product(instantiate(display_product_label));

        /************************************
        Install Reports Designer, if required
        *************************************/
        if(child_in_control)
            if(install_designer)
                install(DESIGNER_PRODUCT);
        /************************************/

        /***********************************
        Install Reports Language Supplement
        ************************************/
        if(child_in_control)
        {
            install_rcuesnd=TRUE;
            install(w32repl60);
        }
        permit_retry_operations = TRUE;

        /***************************************************************
         Registering map variables except Installer_home and oracle_home
        ****************************************************************/
         win32_register_map_variable("DOC60");
        /****************************
         Registering map file groups
        *****************************/
         win32_register_OCSM_group(deinst,'MINMODE);
         win32_register_OCSM_group(reports,'MAXMODE);

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

        /*********************
        Reference Dependencies
        **********************/
        ui_action(instantiate(reference_dependencies));

        {reference(DESIGNER_PRODUCT, current_product);}                 /* reference Designer */
        [ 'UNREGISTERED_PRODUCT: continue(); ]

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

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