/* Copyright (c) Oracle Corporation 1992, 1996.  All Rights Reserved */
/*****************************************************************************
  NAME
    appc23.ins

  DESCRIPTION
    This script performs the installation tasks for the Windows 32 APPC
    product.

  OWNER


  MODIFIED    DD-MMM-YY  Reason
    mhclau    22-SEP-97  Copy NLS resource.
    rxfernan  09/97      OCSM Compliance
    ewang     07-MAR-97  Created

*****************************************************************************/
{
  if (doit)
  {
    ins_ratchet = "2.3.4.0.0";

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

    ui_product(product_label);

    ui_action(instantiate(net2_install_script));
    copy(deinstl, nls_abbreviation);

    ui_action(instantiate(net2_install_dll));
    {
      copy(dll);

      if( platform() == "nt")
      {
         if (doSmartStart)
            ss_decrypt_file(product_key,
                            "%s_location%v7/NET23/APPC/NTLNT.DLL",
                            "%oracle_home%\bin\NTLNT.DLL");
      } /* NT */
    }
    ['WRITE_ERROR:{
            information_dialog(instantiate(app_prompt),
                               app_content,
                               instantiate(app_help));
            signal('FAILURE,instantiate(nls("Installation terminated.  Please stop all Oracle applications that are using %%product_label%%.")));
            }
    ]

    /* Register Product and Dependencies */

    ui_action(instantiate(net2_register));
    register(current_product);

    if(member(selected_products,current_product))
      reference(current_product);

        /* OCSM Compliance */
        { Win32_register_OCSM_product(); }
        [ 'default: win32_ocsm_register_product(); ]

        /* Register the groups in the map file and specify which should get
           copied over under the three OCSM installation modes. */
        win32_register_ocsm_group(deinstl,   nls_abbreviation,  'MAXMODE);
        win32_register_ocsm_group(dll,                          'MAXMODE);

        win32_register_ocsm_group(deinstl,   nls_abbreviation,  'MEDMODE);
        win32_register_ocsm_group(dll,                          'MEDMODE);

        win32_register_ocsm_group(deinstl,   nls_abbreviation,  'MINMODE);
        win32_register_ocsm_group(dll,                          'MINMODE);

        /* End OCSM Compliance */
  }
}
