home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1992. All Rights Reserved */ /***************************************************************************** NAME util72.vrf - Windows 95 V3 installation verification script for database utilities. DESCRIPTION This script checks dependencies and environment settings for installation of the ORACLE database utilities. OWNER Tony Rodgers MODIFIED DD-MMM-YY Reason LMurphy 06/01/95 - Modified for Windows 95 and 7.2 syau 07/01/94 - 7.1.3 Hartenstine 04/20/93 - WIN_NT: Adapt for Windows NT kschrait 02/19/93 - Added dialog to ask whether 16 bit or 32 bit executables are needed trodgers 01-APR-92 Created. *****************************************************************************/ { { doit = execute("%installer_home%\win95.vrf"); } [ 'UNBOUND_VARIABLE: { required_version = product_version(w95instver); temp = explode(required_version,"."); required_version = implode(list(first(temp),first(rest(temp)), first(rest(rest(temp))), first(rest(rest(rest(temp))))),"."); signal('failure,instantiate(nls("instver_too_early1","The version of the Installer currently running is %%installer_version%%. The installation you have chosen requires version %%required_version%% or later. Please run version %%required_version%% or later in order to perform this installation."))); } ] if (not(doit) && (version_status == 'reinstall)) { if(member(selected_products, current_product) || member(selected_products, product_parent(current_product))) doit = TRUE; } if (doit) { /*********************************************************************** Set the VRF-INS script "ratchet" ***********************************************************************/ vrf_ratchet = "7.2.2.3.1"; permit_retry_operations = FALSE; /*********************************************************************** Bind path variables... ************************************************************************/ { set_rdbms72 = FALSE; rdbms72 = v7_translate("RDBMS72"); if (not(exists(rdbms72))) signal('UNBOUND_ENVIRONMENT_VARIABLE); } [ 'OS_ERROR,'INVALID_FILE_NAME, 'PERMISSION_DENIED,'UNBOUND_ENVIRONMENT_VARIABLE: { rdbms72 = "%oracle_home%\RDBMS72"; set_rdbms72 = TRUE; } ] { set_plsql22 = FALSE; plsql22 = v7_translate("PLSQL22"); if (not(exists(plsql22))) signal('UNBOUND_ENVIRONMENT_VARIABLE); } [ 'OS_ERROR,'INVALID_FILE_NAME, 'PERMISSION_DENIED,'UNBOUND_ENVIRONMENT_VARIABLE: { plsql22 = "%oracle_home%\PLSQL22"; set_plsql22 = TRUE; } ] /*********************************************************************** Bind string variables & prompt strings... ***********************************************************************/ installing_scripts = nls("installing_scripts", "Installing %%product_label%% Scripts..."); installing_executables = nls("installing_executables", "Installing %%product_label%% Executables..."); installing_dlls = nls("installing_dlls", "Installing %%product_label%% DLLs..."); installing_msbs = nls("installing_msbs", "Installing %%product_label%% Message Files..."); installing_resource = nls("installing_resource", "Installing %%product_label%% Resource Files..."); installing_init = nls("installing_init", "Installing ORACLE7 Initialization File..."); installing_sql = nls("installing_sql", "Installing %%product_label%% SQL Scripts..."); installing_demo = nls("installing_demo", "Installing %%product_label%% Demonstration Files..."); installing_sys = nls("installing_sys", "Installing %%product_label%% System Files..."); modifying_config = nls("modifying_config", "Modifying Windows 95 Registry..."); registering = nls("registering","Registering %%product_label%%..."); util72_expl = nls("util72_expl", "Some %%product_label%% components are currently running on this machine. Please close these applications before installing %%product_label%%. Silent mode installation of %%product_label%% terminated."); util72_inst = instantiate(nls("util72_inst", "Some %%product_label%% components are currently running on this machine. Please close these applications before installing %%product_label%%. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%. Choose CANCEL to terminate the installation of %%product_label%%. ")); util72_inst_term = instantiate(nls("util72_inst_term", "%%product_label%% installation terminated.")); util72_inst_content = instantiate(nls("util72_inst_content", "%%product_label%% Components Running")); util72_inst_help = instantiate(nls("util72_inst_help", "The Oracle Installer has detected that some %%product_label%% components are currently running on this machine. Please close these applications before installing %%product_label%%. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%. Choose CANCEL to terminate the installation of %%product_label%%. ")); win95_sys_dir = windows_system_directory(); win95_dir = windows_directory(); /* check to see if util72 components are closed */ done = FALSE; while(not(done)) { move_file("%ORACLE_HOME%\bin\sqldba72.exe", "%ORACLE_HOME%\bin\sqldba72.exe"); move_file("%ORACLE_HOME%\bin\exp72.exe", "%ORACLE_HOME%\bin\exp72.exe"); move_file("%ORACLE_HOME%\bin\imp72.exe", "%ORACLE_HOME%\bin\imp72.exe"); move_file("%ORACLE_HOME%\bin\ocopy72.exe", "%ORACLE_HOME%\bin\ocopy72.exe"); move_file("%ORACLE_HOME%\bin\sqlldr72.exe", "%ORACLE_HOME%\bin\sqlldr72.exe"); move_file("%ORACLE_HOME%\bin\tkprof72.exe", "%ORACLE_HOME%\bin\tkprof72.exe"); done = TRUE; } [ 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'OS_ERROR, 'WRITE_ERROR: { if (silent_mode) signal('FAILURE, instantiate(util72_expl)); else information_dialog(instantiate(util72_inst), util72_inst_content, instantiate(util72_inst_help)); } 'FILE_NOT_FOUND: done = TRUE; ] install_parent = FALSE; if (member(selected_products, current_product)) install_parent = TRUE; total_sum = 0; if (install_parent) { /******************************************** Determine sibling products to be co-installed *********************************************/ sibling_products = all_child_products(product_parent(current_product)); extract(sibling_products, current_product); /* ALWAYS verify all siblings before parent */ while(not(empty(sibling_products))) { if (member(selected_products, first(sibling_products))) total_sum = total_sum + verify(first(sibling_products)); sibling_products = rest(sibling_products); } total_sum = total_sum + verify(product_parent(current_product)); } /********************* Check if system files already exist or if they are old before installing them. **********************/ return(verify(w95rsf72) + sum(deinstl,exec,msg,nls_abbreviation,init,sql,demo) + total_sum); } else { refresh_map_file = FALSE; return(0); } }