/* Copyright (c) Oracle Corporation 1992. All Rights Reserved */ /***************************************************************************** NAME cdoc72.vrf - V3.1.2 version analysis/product configuration script for Oracle Designer API Documentation DESCRIPTION This script checks dependencies and environment settings for the installation of Oracle Designer API Documentation OWNER Jeremy Williams MODIFIED DD-MMM-YY Reason jewillia 03-NOV-94 Created *****************************************************************************/ { filename = current_script; start_vrf_list = list(filename, 'DEBUG_CDOC72); EXECUTE_SCRIPT = "START.VRF"; if (perform_start_vrf) execute("%product_home%\des2k_72.vrf"); /***************************************************************************** Check Installer and Product version *****************************************************************************/ /* sets the doit flag and calls .vrf */ patch_installation = PATCHSET_RELEASE; EXECUTE_SCRIPT = "INSTVER.VRF"; execute("%product_home%\des2k_72.vrf"); /***************************************************************************** Local variables... *****************************************************************************/ /* local install flags and variables */ total_size = 0; verify_list = list(); reference_list = list(); install_list = list(); children_install_list = list(); chelp_product_label = product_interface_label(chelp72_product); /***************************************************************************** Start main logic... *****************************************************************************/ if (doit) { /***************************************************************************** Dependencies and configuration variables *****************************************************************************/ /* verify_list = list(); */ verify_list = cdoc72_dependency_list; home_variable = "CDOC72"; home_variable_default = "%oracle_home%\CDOC72"; if (DATAMART_DESIGNER_RELEASE) { /* overwrite the default with a new one for data mart */ home_variable = "CDOC72"; home_variable_default = "%oracle_home%\doc\CDOC72"; /* if an upgrade then the old registry key may have an incorrect value (ie not point to the files) since the files were put into oracle_home\doc\cdoc72 and not oracle_home\cdoc72. Rectify this now so the correct value can be used later on. */ ini_section = product_filename(current_product); { case_translate_list = list(home_variable,ora_config,ini_section); EXECUTE_SCRIPT = "TRANSLATE_VARIABLES.CMN"; old_home_value = execute("%installer_home%\des2k_72.cmn"); /* registry entry exists, else UNBOUND_ENVIRONMENT_VARIABLE would have been signalled */ if (old_home_value != home_variable_default) { case_modify_list = list(); add(case_modify_list,list("CDOC72", home_variable_default, ora_config, ini_section, 'INI_SECTION, 'TOP_LEVEL)); EXECUTE_SCRIPT = "MODIFY_VARIABLES.CMN"; execute("%product_home%\des2k_72.ins"); move_file(old_home_value,home_variable_default); } } ['UNBOUND_ENVIRONMENT_VARIABLE, 'WRITE_ERROR, 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'FILE_NOT_FOUND, 'OS_ERROR: continue();] } case_map_variables = list('REPOS_R10_GROUP, 'REPOS_R10_BULLETINS); /***************************************************************************** NLS Prompt strings... *****************************************************************************/ display_product_label = nls("ui_product", "%product_label% Version %display_version%"); installing_product = nls("installing_product","Starting Installation of %%product_label%%"); installing_deinstl = nls("installing_deinstl","Installing %%product_label%% Installation scripts..."); installing_patchset = nls("installing_patchset","Installing %%product_label%% patchset file..."); installing_cuecards = nls("installing_cuecards","Installing %%product_label%% CueCard files..."); installing_main = nls("installing_main","Installing %%product_label%% Product files..."); installing_patches = nls("installing_patches","Installing %%product_label%% Patch files..."); installing_funspecs = nls("installing_funspecs","Installing %%product_label%% Function Specification files..."); installing_domdefs = nls("installing_domdefs","Installing %%product_label%% DOM Specification files..."); installing_eldefs = nls("installing_eldefs","Installing %%product_label%% Element Definition files..."); installing_objdefs = nls("installing_objdefs","Installing %%product_label%% Object Definition files..."); installing_changes = nls("installing_changes","Installing %%product_label%% Repository Changes Documentation..."); installing_wdelete = nls("installing_wdelete","Installing %%product_label%% Repository Delete Rules Documentation..."); installing_webocos = nls("installing_webocos","Installing %%product_label%% Repository Uniqueness Criteria Documentation..."); installing_langdefs = nls("installing_langdefs","Installing %%product_label%% Language Definition files..."); installing_ref = nls("installing_ref","Installing %%product_label%% Reference files..."); installing_relnotes = nls("installing_relnotes","Installing %%product_label%% Release Notes files..."); installing_concepts = nls("installing_concepts","Installing %%product_label%% Concepts files..."); installing_cli = nls("installing_cli","Installing %%product_label%% Command Line Interface files..."); removing_old = nls("removing_old","Removing obsolete files from previous versions of %%product_label%%..."); registering_product = nls("registering_product","Registering %%product_label%%..."); modify_environment = nls("modify_environment","Modifying %%product_label%% Environment Variables..."); analyze_variables = nls("analyze_variables","Analyzing installed product %%analyze_variables_label%%..."); analyze_verify = nls("analyze_verify","Analyzing %%product_label%% dependent products..."); analyze_children = nls("analyze_children","Analyzing %%product_label%% child products..."); analyze_paths = nls("analyze_paths","Analyzing %%product_label%% Install Paths..."); analyze_strategy = nls("analyze_strategy","Analyzing %%product_label%% Install Strategy..."); chelp_variable_prompt = nls("chelp_variable_prompt","Enter the path for the %%chelp_product_label%% files"); home_variable_prompt = nls("home_variable_prompt","Enter the path for the %%product_label%% files"); /***************************************************************************** Set the VRF-INS script ratchet *****************************************************************************/ vrf_ratchet = "7.2.96.5.6"; /***************************************************************************** Verify parents and dependencies (except children) *****************************************************************************/ EXECUTE_SCRIPT = "VERIFY_DEPENDENCIES.VRF"; execute("%product_home%\des2k_72.vrf"); /***************************************************************************** Install paths and configuration variables *****************************************************************************/ ui_product(product_label); ui_action(instantiate(analyze_paths)); case_home_list = list(instantiate(home_variable),instantiate(home_variable_default),instantiate(home_variable_prompt),case_accept_help_default); EXECUTE_SCRIPT = "DES2_HOME.VRF"; CDOC72 = execute("%product_home%\des2k_72.vrf"); /***************************************************************************** Verify children *****************************************************************************/ EXECUTE_SCRIPT = "VERIFY_CHILDREN.VRF"; if (not(empty(children_verify_list))) execute("%product_home%\des2k_72.vrf"); /***************************************************************************** Return sum including this prodct *****************************************************************************/ script_size = sum(deinstl,product); product_size = sum(main,funspecs,domdefs,domdefs2,eldefs,eldefs2,objdefs,changes,changes2,wdelete,wdelete2,webocos,langdefs,ref,relnotes,concepts,cli); patchset_size = sum(patchset); install_size = 0; install_size = install_size + script_size; if (patch_installation) { install_size = install_size + patchset_size; } else if (not(case_registry_only_install)) { install_size = install_size + product_size; } total_size = total_size + install_size; EXECUTE_SCRIPT = "END_VERIFY_DEPENDENCIES.VRF"; execute("%product_home%\des2k_72.vrf"); } /***************************************************************************** End main logic... *****************************************************************************/ EXECUTE_SCRIPT = "END.VRF"; if (perform_end_vrf) execute("%product_home%\des2k_72.vrf"); return(total_size); }