/* Copyright (c) Oracle Corporation 1992.  All Rights Reserved */
/*****************************************************************************
  NAME
    rssisb61.ins - V3.1.2 installation script for
                   Oracle Repository Manager

  DESCRIPTION
    This script installs Oracle Repository Manager

  OWNER
    Jeremy Williams

  MODIFIED    DD-MMM-YY  Reason
    jewillia  07-NOV-94  Created

*****************************************************************************/
{
  {
  start_ins_list = list(current_script, 'DEBUG_rssisb61, "rssisb61.bmp");
  EXECUTE_SCRIPT = "START.INS";
  execute("%product_home%\des2k_72.ins");

  if (doit)
    {
      ui_product(product_label);
      ui_action(instantiate(installing_product));

      ins_ratchet = "7.2.96.5.6";

      EXECUTE_SCRIPT = "INSTALL_DEPENDENCIES.INS";
      execute("%product_home%\des2k_72.ins");

      case_graphics_file = "rssisb61.bmp";
      EXECUTE_SCRIPT = "DES2_BB.DIS";
      execute("%product_home%\des2k_72.ins");

      EXECUTE_SCRIPT = "DES2_START_COPY.INS";
      execute("%product_home%\des2k_72.ins");

      ui_action(instantiate(removing_old));
      EXECUTE_SCRIPT = "DES2_OLD.INS";
      execute("%product_home%\des2k_72.ins");

      if (case_install_files)
        {
          ui_action(instantiate(installing_deinstl));
          copy(deinstl,nls_abbreviation);
          copy(product);

          if (patch_installation)
            {
              ui_action(instantiate(installing_patchset));
              copy(patchset);
              copy(bin);
              copy(ldll,"%language_subgroup%");
            }
          else if (not(case_registry_only_install))
            {
              ui_action(instantiate(installing_msb));
              copy(msb);

              ui_action(instantiate(installing_bin));
              copy(bin);
              copy(ldll,"%language_subgroup%");

              ui_action(instantiate(installing_main));
              copy(main);

              ui_action(instantiate(installing_nls));
              copy(nlsstuff,"%language_subgroup%");

              ui_action(instantiate(installing_api));
              copy(eps);
              copy(ops1);
              copy(ops2);
              copy(ops3);
              copy(ops4);
              copy(hps1);
              copy(hps2);
              copy(hps4);
              copy(opb1);
              copy(opb2);
              copy(opb3);
              copy(opb4);
              copy(ins);
              copy(ipb);
              copy(ips);
              copy(hpb1);
              copy(hpb2);
              copy(hpb4);
              copy(mpb);
              copy(mps);
              copy(rpb);
              copy(rps);
              copy(epb);
              copy(pkb);
              copy(pkh);
              copy(sqlapi);

              ui_action(instantiate(installing_ins));
              copy(ins);

              ui_action(instantiate(installing_jin));
              copy(jin);

              ui_action(instantiate(installing_utl));
              copy(utl);

              ui_action(instantiate(installing_sql));
              copy(sql);

              ui_action(instantiate(installing_cnv));
              copy(cnv);

              ui_action(instantiate(installing_upg));
              copy(upg);

              ui_action(instantiate(installing_cpa));
              copy(cpa);

              ui_action(instantiate(installing_ddl));
              copy(ddl);
              copy(ddl_ja,language_subgroup);
            }
        }

      if (case_install_patch_files)
        {
          EXECUTE_SCRIPT = "INSPATCH.INS";
          execute("%product_home%\des2k_72.ins");
        }

      EXECUTE_SCRIPT = "DES2_END_COPY.INS";
      execute("%product_home%\des2k_72.ins");

      EXECUTE_SCRIPT = "INSTALL_CHILDREN.INS";
      execute("%product_home%\des2k_72.ins");

      ui_action(instantiate(modify_environment));
      ini_section = product_filename(current_product);

      {
        /* simple variable modification */
        case_modify_list = list();

        /* remove old variables */
        add(case_modify_list,list("DES2K_BULLETINS",                "", ora_config, ini_section));

        /* new variables */

        add(case_modify_list,list("rssisb61",                       "%rssisb61%",                    ora_config, ini_section, 'INI_SECTION, 'TOP_LEVEL));

        /* These are set in the user.avf */
        add(case_modify_list,list("REPOS_R10_BULLETINS",            "%REPOS_R10_BULLETINS%",             ora_config, ini_section, 'INI_SECTION, 'TOP_LEVEL));

        /* if (REPOSITORY_RELEASE || DESIGNER2000_RELEASE) */
          {
            add(case_modify_list,list("Designer_Repository_Option", "Designer Repository Install Scripts Available",  ora_config, ini_section, 'INI_SECTION, 'REPMAN61_SECTION));
          }

        EXECUTE_SCRIPT = "MODIFY_VARIABLES.CMN";
        execute("%product_home%\des2k_72.ins");
      }

      {
        /* execute_variables */
        case_execute_list = list();

        EXECUTE_SCRIPT = "MODIFY_EXECUTE.INS";
        execute("%product_home%\des2k_72.ins");
      }

      ui_action(instantiate(registering_product));
      EXECUTE_SCRIPT = "DES2_REF.INS";
      execute("%product_home%\des2k_72.ins");

      case_graphics_file = "rssisb61.bmp";
      EXECUTE_SCRIPT = "DES2_BB.REM";
      execute("%product_home%\des2k_72.ins");

    }

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

  EXECUTE_SCRIPT = "END.INS";
  execute("%product_home%\des2k_72.ins");

}
