/* Copyright (c) Oracle Corporation 1994, 1996. All Rights Reserved */ /***************************************************************************** NAME netc80.vrf DESCRIPTION This script checks dependencies and environment settings for installation of the Windows 32 SQL*Net product. OWNER Etna Flores MODIFIED DD-MMM-YY Reason kpotter 3/98 version update for 805 EE cganesh 02/09/98 Change version to 8.0.4.0.2 for PO8 8.0.4.0.0 cganesh 02/04/98 Change version to 8.0.4.0.1 dstiefel 05-AUG-96 Update for net30 dstiefel 22-FEB-96 Merge NT/95 for 2.3.2 ljiang 9/95 Modified for Easy Configuration dlau 07-AUG-95 Modified for SQLNET 2.2 *****************************************************************************/ { { /* OS variables */ if (platform() == "nt") { prefix = "nt"; instver_name = "ntinstver"; install_name = "ntinstall"; } else { prefix = "w95"; instver_name = "w95instver"; install_name = "w95install"; } instver_prod = evaluate("instver_name"); install_prod = evaluate("install_name"); doit = execute("%installer_home%\%operating_system%.vrf"); } [ 'UNBOUND_VARIABLE: { required_version = product_version(instver_prod); 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."))); } ] /************* CONNECTION TO V7 DATABASE IN CURRENT HOME *******************************/ /* This fix is to ensure that when o8pe804 is installed over a po7 in the same home, */ /* that the Oracle8 Client can connect to the Oracle7 Database after installation */ /***************************************************************************************/ /* Initially, we assume that no RDBMS or SQLNet products are registered. */ rgstd_734 = false; /* RDBMS 7.3.4 */ rgstd_234 = false; /* SQLNet 2.3.4 */ /* Get Default Home: only home v7 installed in since pre MOH */ {dflt_home = get_default_home();} [ 'HOME_NOT_FOUND: continue();] /* Determine if RDBMS 7.3.4.0.0 exists in DEFAULT_HOME */ if(registered("ntrdbms73", dflt_home) || registered("w95rdbms73", dflt_home)) { /* For the rdbms73 case, we need to check its version. */ if (platform() == "nt") { temp_reg = registration("ntrdbms73", dflt_home); } else { temp_reg = registration("w95rdbms73", dflt_home); } full_version = registry_version(temp_reg); version_num_list = explode(full_version, "."); if(first(rest(rest(version_num_list))) == 4) { /* It is a 7.3.4 RDBMS */ rgstd_734 = true; } } /* If home of install is the DEFAULT_HOME where po7 resides, determine if SQLNet AddOn/Server exists. If SQLNet AddOn/Server doesn't exist, install SQLNet AddOn 2.3.4. If SQLNet AddOn/Serer exists, determine its version. If version isn't 2.3.4, install 2.3.4 version.*/ if("%ORACLE_HOME_NAME%" == "%DEFAULT_HOME_NAME%") { if (rgstd_734) { if(registered("w32netclt23", dflt_home)) { /* For the sqlnet23 case, we need to check its version. */ temp_reg = registration("w32netclt23", dflt_home); full_version = registry_version(temp_reg); version_num_list = explode(full_version, "."); if (full_version == "2.3.4.0.2") { /* SQLNet Client on machine matches CD */ rgstd_234 = true; } else { /* SQLNet Client on machine != CD, need to install it */ rgstd_234 = false; } } /* end if SQLNet Client 2.3.x registered */ } /*end if 734 database registered */ } /*end if current home of install is default home */ /***************************************************************************************/ if (doit) { vrf_ratchet = "8.0.5.0.0"; /* Bind string constants, help strings, & prompt strings .. */ modifying_config = nls("modifying_config","Modifying NT Registry..."); net2_register = nls("net2_register","Registering %%product_label%%..."); net2_install_script = nls("net2_install_script","Installing %%product_label%% Installation Scripts..."); net2_install_message = nls("net2_install_message","Installing %%product_label%% Message Files..."); net2_install_sample = nls("net2_install_sample","Installing %%product_label%% Sample Files..."); net2_install_tns = nls("net2_install_tns","Installing %%product_label%% Executables..."); net2_install_easycfg = nls("net2_install_easycfg","Installing SQL*Net Easy Configuration Files..."); net2_install_ncfg = nls("net2_install_ncfg","Installing Oracle Network Configuration Wizard Files..."); net2_install_tnsapi = nls("net2_install_tnsapi","Installing Oracle TNSAPI Files..."); app_prompt = nls("app_prompt","You must stop all Oracle Services and Applications using Net8 for the Net8 installation to be successful.%carriage_return%%carriage_return%Press OK to continue the installation once the services and applications have been stopped, or press Cancel to abort the installation."); app_content = nls("app_content","Stop Oracle Applications"); app_help = nls("app_help","SQL*Net is being used. Please stop Oracle applications and services before continuing to install."); netc_inst_term = instantiate(nls("netc_inst_term", "%%product_label%% installation terminated.")); use_inst_from_media = nls("use_inst_from_media","SQL*Net Easy Configuration depends on the Oracle Installer. The Oracle Installer you are currently using is not compatible to run SQL*Net Easy Configuration. Please run the Oracle Installer from the release media in order to install the latest version of Oracle Installer and %product_label%."); use_inst_from_media_label = nls("use_inst_from_media_label","Oracle Installer Not Compatible"); use_inst_from_media_help_term = nls("use_inst_from_media_help_term","SQL*Net Easy Configuration is installed together with %product_label%. SQL*Net Easy Configuration is dependent on the Oracle Installer. Your current Oracle Installer is not compatible with this version of SQL*Net Easy Configuration. Please run the Oracle Installer from the release media in order to install the latest version of Oracle Installer and %product_label%. OK or CANCEL terminates the installation of %product_label% . "); use_inst_from_media_help_cont = nls("use_inst_from_media_help_cont","SQL*Net Easy Configuration is installed together with %product_label%. SQL*Net Easy Configuration is dependent on the Oracle Installer. Your current Oracle Installer is not compatible with this version of SQL*Net Easy Configuration. Please run the Oracle Installer from the release media in order to install the latest version of Oracle Installer and %product_label%. OK continues with the installation of other products. CANCEL terminates the installation of %product_label%. "); /* from Win 95 */ new_stack_prompt = nls("new_stack_prompt","Select the network protocols for which you want Oracle SQL*Net support. SQL*Net allows you to access remote databases on your network. For each protocol you select, an Oracle SQL*Net Protocol Adapter will be installed. If possible, the Installer detects the network protocols installed to your Windows 95 system and selects them for you."); new_stack_label = nls("new_stack_label","Oracle SQL*Net Adapter Selection"); new_stack_help = nls("new_stack_help","SQL*Net allows you to access remote databases on your network. Select the network protocols for which you want Oracle SQL*Net support. If possible, the Installer detects the network protocols installed to your Windows 95 system and selects them for you. The TCP/IP network protocol enables data transfer on Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet. The SPX network protocol enables data transfer in a Novell Netware environment. The Named Pipes network protocol enables data transfer in a Microsoft Network environment or LAN Manager environment. If you are not familiar with network transport protocols, please contact your network administrator. . "); installation_terminated = nls("installation_terminated","Installation terminated. Please stop all Oracle applications that are using %%product_label%%."); reinstall_prompt = nls("reinstall_prompt","Oracle SQL*Net is currently installed to your machine. Would you like to:"); reinstall_label = nls("reinstall_label","Oracle SQL*Net Network Support"); reinstall_help = nls("reinstall_help","The Installer has examined your machine and found that SQL*Net is already installed. To configure access to additional remote databases (add a Database Alias) please select the first checkbox. To reinstall SQL*Net or add support for additional network protocols (add a SQL*Net Protocol Adapter) please select the second checkbox. Press OK to continue or CANCEL to terminate this installation. "); netc22_expl = nls("netc22_expl", "A %%product_label%% DLL (NTNT.DLL) is being used on this machine. Please stop all Oracle applications that are using %%product_label%% before installing %%product_label%%. Silent mode installation of %%product_label%% terminated."); netc22_inst = instantiate(nls("netc22_inst", "A %%product_label%% DLL (NTNT.DLL) is being used on this machine. Please stop all Oracle applications that are using %%product_label%% 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%%. ")); netc22_inst_term = instantiate(nls("netc22_inst_term", "%%product_label%% installation terminated.")); netc22_inst_content = instantiate(nls("netc22_inst_content", "%%product_label%% DLL Used")); netc22_inst_help = instantiate(nls("netc22_inst_help", "The Oracle Installer has detected that a %%product_label%% DLL (NTNT.DLL) is being used on this machine. Please stop all Oracle applications that are using %%product_label%% 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%%. ")); none_selected = nls("none_selected","No Oracle SQL*Net Protocol Adapter was selected for installation."); none_selected_label = nls("none_selected_label","None Selected"); none_selected_help_term = nls("none_selected_help_term","No Oracle SQL*Net Protocol Adapter was selected for installation. You need to select at least one network protocol in order to install %product_label%. BACK returns to %new_stack_label% dialog box to make a selection. OK or CANCEL terminates the installation of %product_label% . "); none_selected_help_cont = nls("none_selected_help_cont","No Oracle SQL*Net Protocol Adapter was selected for installation. You need to select at least one network protocol in order to install %product_label%. BACK returns to %new_stack_label% dialog box to make a selection. OK continues with the installation of other products. CANCEL terminates the installation of %product_label%. "); no_protocol = nls("no_protocol","The Oracle Installer did not detect TCP/IP, SPX or Named Pipes protocols on your machine. Before installing SQL*Net, you must install either TCP/IP, SPX or Named Pipes."); no_protocol_label = nls("no_protocol_label","No Protocol Detected"); no_protocol_help = nls("no_protocol_help","The Oracle Installer did not detect TCP/IP, SPX or Named Pipes protocols on your machine. Before installing SQL*Net, you must install either TCP/IP, SPX or Named Pipes. The TCP/IP network protocol enables data transfer on Local Area Networks (LANs), Wide Area Networks (WANs), and the Internet. The SPX network protocol enables data transfer in a Novell Netware environment. The Named Pipes network protocol enables data transfer in a Microsoft Network environment or LAN Manager environment. If you are not familiar with network transport protocols, please contact your network administrator."); netc80_newservice_fail = nls("netc80_newservice_fail","Failed to create service for Net8 Client."); /*** First stop services by executing stopServices.vrf script ***/ if(platform() == "nt") { { execute("%product_home%\stopsrvc.vrf"); } [ 'DEFAULT: continue(); ] } /* The variable "available_sid" is defined by a sequence of code in user.avf. This code is essential for choosing the appropriate SID for database installation. It is in the global script because both RDBMS and Net8 require the sid value. If undefined, we are defaulting to ORCL. However, this is no longer a safe default with Multiple Oracle Homes. */ { available_sid = available_sid; } [ 'DEFAULT: available_sid = "ORCL"; ] /* Be sure that there is a value for run_db_builder. This variable is true if the database assistant is going to be executed after the installation. */ { run_db_builder = run_db_builder; } [ 'DEFAULT: run_db_builder = false; ] /* Be sure that there is a value for run_db_migration. This variable is true if the database migration assistant is going to be executed after the installation. */ { run_db_migration = run_db_migration; } [ 'DEFAULT: run_db_migration = false; ] /* Variables and Logic */ netclt_prod = w32netclt80; tcp_prod = w32tcp80; spx_prod = w32spx80; nmp_prod = w32nmp80; if (platform() == "nt") appc_prod = w32appc80; install_tcp = FALSE; /* We'll autodetect for this protocol */ install_spx = FALSE; /* We'll autodetect for this protocol */ install_appc = FALSE; /* Never install this one */ install_nmp = TRUE; /* Always install this one */ total = 0; /*** Force install the RSF. RSF will force intall Trace ***/ total = total + verify(w32rsf80); total = total + verify(nmp_prod); /* Always gets installed */ if (platform() == "nt") { /* Attempt to AUTO-DETECT TCP and SPX protocols */ if(win32_key_exists("HKEY_LOCAL_MACHINE", "System\CurrentControlSet\Services\TCPIP")) { install_tcp = TRUE; total = total + verify(tcp_prod); } if((win32_key_exists("HKEY_LOCAL_MACHINE","System\CurrentControlSet\Services\NwlnkIpx")) || (win32_key_exists("HKEY_LOCAL_MACHINE","Software\Novell\IpxSpx")) ) { /* Novell NDS Client */ install_spx = TRUE; total = total + verify(spx_prod); } /************* CONNECTION TO V7 DATABASE IN CURRENT HOME *******************************/ /* verify SQLNet AddOn product and add to total size */ if (not(rgstd_234) && ("%ORACLE_HOME_NAME%" == "%DEFAULT_HOME_NAME%")) { total = total + verify(w32netclt23); } /***************************************************************************************/ } /* NT */ else /* Win 95 */ { /* This loop performs protocol auto-detection for win95; TCP and SPX protocols only. */ increment = 0; while (increment < 100) { if (increment > 9) increment_string = "%increment%"; else increment_string = "0%increment%"; temp_string = win32_get_value("HKEY_LOCAL_MACHINE", "System\CurrentControlSet\Services\Class\NetTrans\00%increment_string%", "DeviceVxDs"); temp_list = explode(temp_string,",", 'STRINGSONLY); if (member(temp_list, "vtcp.386")) install_tcp = TRUE; else if (member(temp_list, "nwlink.vxd") || member(temp_list, "nios.vxd")) install_spx = TRUE; increment = increment + 1; } ['INVALID_KEY, 'FILE_NOT_FOUND, 'OS_ERROR: increment = increment + 1;] { /* Novell's stack */ if( not(install_spx) && (win32_key_exists("HKEY_LOCAL_MACHINE","Network\Novell\ProtocolIPX"))) install_spx = TRUE; } [ 'default: continue();] if (install_tcp) total = total + verify(tcp_prod); if (install_spx) total = total + verify(spx_prod); /************* CONNECTION TO V7 DATABASE IN CURRENT HOME *******************************/ /* verify SQLNet AddOn product and add to total size */ if (not(rgstd_234) && ("%ORACLE_HOME_NAME%" == "%DEFAULT_HOME_NAME%")) { total = total + verify(w32netclt23); } /***************************************************************************************/ } /* win 95 */ return(total + sum(tns,ostns,sample,docs,tnsapi,msb,nls_abbreviation,deinstl)); } else { refresh_map_file = FALSE; return(0); } }