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

/****************************************************************************
  NAME
    acrobat.ins - installation script for JDK Applet Viewer Version 1.1

  DESCRIPTION
    This script installs the JDK Applet Viewer.

  OWNER
    Amanda Harrison

  MODIFIED  MM/DD/YY   Reason
    rbchen  04/07/97   Modified for JDK
  aharriso  06/1396    Created
   JMADHAVI	12/08/99   Modified for domestic & export versions
*****************************************************************************/

{
    if (doit)
    {

        /*****************************
        Set the VRF-INS script ratchet
        ******************************/
        ins_ratchet = "1.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);

        ui_action(instantiate(install_exe));
        copy(exe);
        
        temp_var=current_directory();
        change_directory("%ORACLE_HOME%");
        /* win32_asynchronous_*/
        {win32_asynchronous_spawn("jdk.exe -auto .");} 

        change_directory("%temp_var%");


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

        permit_retry_operations = TRUE;

/*	This code has changed to jdk.vrf ********/
/*      modify("ORACLE_JDK", ORACLE_JDK, ora_config, product_filename(current_product));
        win32_register_key("$ORACLE","","ORACLE_JDK",'REPLICATE); */
        /****************************
         Registering map file groups
        *****************************/
         win32_register_OCSM_group(exe,'MEDMODE);
         win32_register_OCSM_group(deinst,'MINMODE);
        /*********************************
        Register and Reference the product
        and remove delold
        **********************************/
        EXECUTE_SCRIPT = "REGISTER_REFERENCE_PRODUCT";
        execute("%installer_home%%dir_separator%d2kr2ins.usr");

        permit_retry_operations = FALSE;

    } /*END if doit*/

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


} /*END jdk.ins*/
