/* Copyright (c) Oracle Corporation <year>.  All Rights Reserved */
/***************************************************************
 NAME
        dbmig.ins

 DESCRIPTION
        installation script for data migration utility

 OWNER
        Ramesh Uppala

 MODIFIED       MM/DD/YY        Reason
  ruppala       05/20/97        created
****************************************************************/

{
 /*** The doit variable is set by the %os%.vrf script, indicating whether installation should proceed.
      The body of this script is enclosed within this "if" statement. ***/
 if(doit)
   {
    /*** Set the INS script ratchet variable and call the %os%.ins script,
         guaranteeing a match between VRF and INS version numbers. ***/

    ins_ratchet = "8.0.5.0.0";



  /* 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,   'MAXMODE);
  win32_register_ocsm_group(dll,       'MAXMODE);
  win32_register_ocsm_group(exec,      'MAXMODE);
  win32_register_ocsm_group(html,      'MAXMODE);
  win32_register_ocsm_group(image,     'MAXMODE);
  win32_register_ocsm_group(other,     'MAXMODE);

  win32_register_ocsm_group(deinstl,   'MEDMODE);
  win32_register_ocsm_group(dll,       'MEDMODE);
  win32_register_ocsm_group(exec,      'MEDMODE);
  win32_register_ocsm_group(html,      'MEDMODE);
  win32_register_ocsm_group(image,     'MEDMODE);
  win32_register_ocsm_group(other,     'MEDMODE);

  win32_register_ocsm_group(deinstl,   'MINMODE);
  win32_register_ocsm_group(dll,       'MINMODE);
  win32_register_ocsm_group(exec,      'MINMODE);
  win32_register_ocsm_group(html,      'MINMODE);
  win32_register_ocsm_group(image,     'MINMODE);
  win32_register_ocsm_group(other,     'MINMODE);

  /* Register any variables in the map file that are not Installer variables. */
 /* win32_register_map_variable("oracle_group_name");   */

  /* This call registers a given variable or key registry setting with the installer.
     It associated with a call to: modify("NET80"... later on. */
  /*  win32_register_key("$ORACLE", "", "NET80");   */

  /* End OCSM Compliance */

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

    /*** Install any dependent products here... ***/

    permit_retry_operations = FALSE;  /*** Suppress dialogs for file operation failures. ***/

    install(w32jre11);
    install(jsf803);
    install(W32netclt80);


    permit_retry_operations = TRUE;   /*** Allow dialogs for file operation failures. ***/

    /*** Install the product: copy the necessary groups and subgroups listed in the MAP script.
         These groups must be represented in the sum() function from the VRF script for size accuracy. ***/

    ui_action(instantiate(installing_scripts));
    copy(deinstl, nls_abbreviation);
    ui_action(instantiate(installing_dll));
    copy(dll);
    ui_action(instantiate(installing_exec));
    copy(exec);
    ui_action(instantiate(installing_html));
    copy(html, nls_abbreviation);
    ui_action(instantiate(installing_image));
    copy(image);
    copy(other);


     /* Logic to remove N8SW.exe from registry for Windows 98 Fix */
     /* Remove Bad App key in registry for 98 */

     {win32_delete_key("HKEY_LOCAL_MACHINE", "SYSTEM\CurrentControlSet\Control\SessionManager\CheckBadApps400\N8SW.exe"); }
            [ 'INVALID_KEY, 'FILE_NOT_FOUND, 'PERMISSION_DENIED, 'OS_ERROR: continue(); ]

    /* end Windows 98 Fix */

    /*** Modify configuration variables ***/

   /* ui_action(instantiate(modifying_variables));
    modify(variable, binding, ora_config, delimeter);
   */
    /*** Register Product ***/

    ui_product(product_label);
    ui_action(instantiate(registering_product));
    register(current_product);

    /*** Reference Product and Dependent Product ***/

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

      reference(w32jre11, current_product);
      reference(jsf803, current_product);
      reference(W32netclt80, current_product);

    permit_retry_operations = FALSE;  /*** Suppress dialogs for file operation failures. ***/
   }
}
