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

/*****************************************************************************
  NAME
    qtl60.ins - V3 installation script for Developer - Quick Tour Language
                Supplement

  DESCRIPTION
    This script installs Quick Tour Language Supplement.

  MODIFIED      MM/DD/YY        REASON
  Jmadhavi      01/31/00        created
*****************************************************************************/

{
    if(not(doit))
    {
       if(member(selected_products, w32fql60))
       {
          information_dialog("Language Supplement Files are not required if English is chosen");
       }
    }
    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;

        /****************************************************************
         Set the install variable in Registry
        *****************************************************************/

        /* Using the existing registry entries */

         if(child_in_control)
            if(install_parent)
                install(product_parent(current_product));



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

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

        ui_action(instantiate(install_files));
                copy(qtour, nls_abbreviation);
                win32_register_OCSM_group(qtour,"nls_abbreviation",'MEDMODE);
		if (exists("%doc60%%dir_separator%\%nls_abbreviation%\d2q60.exe"))
		{
                 {
            	   win32_asynchronous_spawn("%doc60%%dir_separator%\%nls_abbreviation%\d2q60.exe -o -d %doc60%\%nls_abbreviation%");
	         }
                 ['NO_RESPONSE, 'FILE_NOT_FOUND, 'MEMORY_ERROR: continue();]
		}


        /************************************************************************
        Register and Reference the product and remove delold
        *************************************************************************/

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

        permit_retry_operations = TRUE;


        /************************************************************************
        Reference dependencies
        *************************************************************************/

        ui_action(instantiate(reference_dependencies));

        {reference(current_product);}
        ['UNREGISTERED_PRODUCT: continue();]


        /**************************************************************************/
        permit_retry_operations = FALSE;

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