/* Copyright (c) Oracle Corporation 1992. All Rights Reserved */ /***************************************************************************** NAME deshlp72.ins - V3.1.2 installation script for Oracle Designer/2000 Help Files 6.0.10.0.0 DESCRIPTION This script installs Oracle Designer/2000 Help Files 6.0.10.0.0 OWNER Jeremy Williams MODIFIED DD-MMM-YY Reason jewillia 07-NOV-94 Created *****************************************************************************/ { { start_ins_list = list(current_script, 'DEBUG_DESHLP72, "deshlp72.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 = "deshlp72.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); } else if (not(case_registry_only_install)) { ui_action(instantiate(installing_help)); if (language_subgroup == "JA") { /* test language subgroup to see if CD supports language as files may not be on CD. copy all of group as subgroup field not use for language */ copy(help_ja); } else { copy(help); } ui_action(instantiate(installing_cnt)); if (language_subgroup == "JA") { /* test language subgroup to see if CD supports language as files may not be on CD. copy all of group as subgroup field not use for language */ copy(cnt_ja); } else { copy(cnt); } ui_action(instantiate(installing_cuecards)); copy(cuecards); ui_action(instantiate(installing_main)); if (DESIGNER2000_RELEASE || DESIGNER_HELP_RELEASE) { copy(main,"des2k"); } else if (DATAMART_DESIGNER_RELEASE) { copy(main,"dmd"); copy(datamart); } copy(msgs,"%language_subgroup%"); copy(msgs_ja,"%language_subgroup%"); ui_action(instantiate(installing_desinsgd)); copy(desinsgd,language_subgroup); copy(desinsgd_ja,language_subgroup); ui_action(instantiate(installing_oddinsgd)); copy(oddinsgd); ui_action(instantiate(installing_relnotes)); copy(relnotes,language_subgroup); copy(relnotes_ja,language_subgroup); ui_action(instantiate(installing_prodover)); copy(prodover); ui_action(instantiate(installing_ref)); copy(ref); } } 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_GROUP", "", ora_config, ini_section)); add(case_modify_list,list("DES2K_BULLETINS", "", ora_config, ini_section)); /* new variables */ add(case_modify_list,list("DESHLP72", "%DESHLP72%", ora_config, ini_section, 'INI_SECTION, 'TOP_LEVEL)); /* These are set in the user.avf */ add(case_modify_list,list("DES2K_R61_GROUP", "%DES2K_R61_GROUP%", ora_config, ini_section, 'INI_SECTION, 'TOP_LEVEL)); add(case_modify_list,list("DES2K_R61_BULLETINS", "%DES2K_R61_BULLETINS%", ora_config, ini_section, 'INI_SECTION, 'TOP_LEVEL)); if (DESIGNER_HELP_RELEASE) { add(case_modify_list,list("DESIGNER_HELP_RELEASE", ins_ratchet, ora_config, ini_section)); } EXECUTE_SCRIPT = "MODIFY_VARIABLES.CMN"; execute("%product_home%\des2k_72.ins"); } { /* execute_variables */ case_execute_list = list(); /* Error message Help file */ /* add(case_execute_list,list("HELP72_DES_ERROR", "des2err", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); */ /* Front Panel */ add(case_execute_list,list("HELP72_FRONT_PANEL", "des2k61", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* Systems Modeller */ add(case_execute_list,list("HELP72_DF_DIAGRAMMER", "awd", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_ER_DIAGRAMMER", "awe", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_FH_DIAGRAMMER", "awf", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_BPR_DIAGRAMMER", "bpw", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_ADW", "sma", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_DDW", "smd", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_TAB2ENT_RETROFIT", "cwt20", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* Design Editor */ add(case_execute_list,list("HELP72_DESIGN_EDITOR", "dwfde61", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_DESIGN_EDITOR_PROPERTIES_PALETTE", "dwfde61", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* add(case_execute_list,list("HELP72_MODULE_STRUCT_DIAGRAMMER", "dwm", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); */ /* Server Generator */ add(case_execute_list,list("HELP72_SERVER_GENERATOR", "cds20", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* Form Generator */ add(case_execute_list,list("HELP72_FORMS_GENERATOR", "cf_32", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* Library Generator */ add(case_execute_list,list("HELP72_LIBRARY_GENERATOR", "cl_32", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* Report Generator etc */ /* add(case_execute_list,list("HELP70_GRAPHICS_GENERATOR", "ggg30", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); */ add(case_execute_list,list("HELP72_REPORTS_GENERATOR", "crr30", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* add(case_execute_list,list("HELP70_SQL_PLUS_GENERATOR", "crs30", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); */ /* Low End Generators */ add(case_execute_list,list("HELP72_VB_GENERATOR", "cvvbg20", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* add(case_execute_list,list("HELP70_PO_GENERATOR", "cppog20", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); */ add(case_execute_list,list("HELP72_WS_GENERATOR", "cvwsg20", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_HELP_GENERATOR", "cvhpg20", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* Batch Utility */ add(case_execute_list,list("HELP72_BATCH_UTILITY", "dwz", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* Stand Alone Data Diagrammer */ /* add(case_execute_list,list("HELP72_SM_DIAGRAMMER", "dwfdd20", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); */ /* Batch Utility */ add(case_execute_list,list("HELP72_BATCH_UTILITY", "dwz", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* Show Keys Help file */ add(case_execute_list,list("HELP72_ER_DIAGRAMMER_SHOW_KEYS", "bpw", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_DF_DIAGRAMMER_SHOW_KEYS", "bpw", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_FH_DIAGRAMMER_SHOW_KEYS", "bpw", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_BPR_DIAGRAMMER_SHOW_KEYS", "bpw", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); add(case_execute_list,list("HELP72_DESIGN_EDITOR_SHOW_KEYS", "dwfde61" help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); /* C++ Object layer Generator */ /* add(case_execute_list,list("HELP72_CGENC61_HELP", "cgenc61", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); */ /* ODD */ /* add(case_execute_list,list("HELP72_OBJECT_DESIGNER", "odd", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); */ /* add(case_execute_list,list("HELP72_OBJECT_DESIGNER_PROPERTIES_PALETTE", "odd", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); */ /* Show Keys Help file */ /* add(case_execute_list,list("HELP72_OBJECT_DESIGNER_SHOW_KEYS", "odd", help, ora_config, ini_section, 'INI_SECTION, 'CHELP72_SECTION)); */ EXECUTE_SCRIPT = "MODIFY_EXECUTE.INS"; execute("%product_home%\des2k_72.ins"); } { help_engine_list = group_files(help); while(not(empty(help_engine_list))) { next_help_file = first(help_engine_list); help_engine_list = rest(help_engine_list); modify_key = "HKEY_LOCAL_MACHINE"; modify_subkey = "SOFTWARE\Microsoft\Windows\Help"; modify_variable = file_name(next_help_file); modify_value = directory_name(next_help_file); { /* make sure key exists */ win32_create_key(modify_key, modify_subkey); /* set the value */ win32_set_value(modify_key, modify_subkey, modify_variable, modify_value); } ['FILE_NOT_FOUND(A,B,C,D): { if (not(modify_value == "")) { skip = yesno_dialog("%B%%carriage_return%%carriage_return%Skip error and continue?"); if (not(skip)) signal(A,B); } } ] /* a fix for a reports builder help file which we reference */ { translate_key = "HKEY_LOCAL_MACHINE"; translate_subkey = "SOFTWARE\Microsoft\Windows\Help"; translate_variable = "r30dus32.hlp"; translate_value = win32_get_value(translate_key, translate_subkey, translate_variable); } ['FILE_NOT_FOUND(A,B,C,D): {translate_value = "%oracle_home%\tools\doc20"; } ] { modify_key = "HKEY_LOCAL_MACHINE"; modify_subkey = "SOFTWARE\Microsoft\Windows\Help"; modify_variable = "r30dus.hlp"; modify_value = translate_value; win32_set_value(modify_key, modify_subkey, modify_variable, modify_value); win32_register_key(modify_key,modify_subkey,modify_variable); } ['FILE_NOT_FOUND(A,B,C,D): { continue(); } ] } } ui_action(instantiate(registering_product)); EXECUTE_SCRIPT = "DES2_REF.INS"; execute("%product_home%\des2k_72.ins"); case_graphics_file = "deshlp72.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"); }