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

/****************************************************************************
  NAME
    acrobat.ins - installation script for Adobe Acrobat Reader

  DESCRIPTION
    This script installs the Adobe Acrobat Reader.

  OWNER
    Amanda Harrison

  MODIFIED  MM/DD/YY    Reason
   aharriso 06/1396    Created
*****************************************************************************/

{
    if (doit)
    {

        /*****************************
        Set the VRF-INS script ratchet
        ******************************/
        ins_ratchet = "3.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_files));
        copy(deinst);

        ui_action(instantiate(install_exe));
        copy(exe);
        /******************/

        permit_retry_operations = TRUE;

        { add(case_remind_list,instantiate(acro_installation_msg)); }
        ['UNBOUND_VARIABLE:
          {
            /* the case implementation of this has not been defined so use the global version instead */
            add(remind_list,instantiate(acro_installation_msg));
          }
        ]

        /*********************************
        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 acrobat.ins*/
