/* Copyright (c) Oracle Corporation 1997. All Rights Reserved */ /***************************************************************************** NAME win32.zoo - Windows 32-bit V3 Installation Environment Initialization File for V7 Oracle products DESCRIPTION This script bootstraps the Windows environment for the installation of Oracle V7 products. It is always read first by ORAINST for Windows. CREATED Siddhartha Agarwal, July 10, 1996 MODIFIED MM/DD/YY REASON zzerhoun 05/19/99 Added orainst_dir; used to execute "y2krdbms.vrf" to satisfy y2k-compliance issues with the v7.3.4 and v8.0.5 RDBMS scripts, as per mmckerley's initial scripts.. zzerhoun 05/18/98 Added backup marker code zzerhoun 10/28/97 Added MOH support njagathe 02/20/97 Defined variables like reboot, remind_list, reboot_prompt1, reboot_prompt2 etc to ensure correct behavior in shd script njagathe 02/20/97 Changed path modification in switch homes to be similar to stp functionality vrajkuma 12/26/96 Suport for 32 bit OCSM and switching homes. *****************************************************************************/ { /****************************************************************************/ /* */ /* INITIALIZE VARIABLES USED BY STP SCRIPTS */ /* Bootstrap variables */ /* System variables */ /* os_name, system_root_drive, default_drive, admin_user */ /* Control variables */ /* NLS variables */ /* */ /****************************************************************************/ product_label = nls("product_label","Oracle Installer"); action_label = nls("action_label","Preparing for Setup..."); ui_action(action_label); ui_product(product_label); /* Bootstrap variables */ bootstrap = FALSE; distribution = FALSE; welcome = TRUE; /* Control Variables */ multiple_home_aware = TRUE; doSmartstart = FALSE; permit_retry_operations = FALSE; overwrite_mode = 'ALWAYS; ora_config = "$ORACLE"; problem_reboot = FALSE; autoexec_reboot = FALSE; reboot = list(); reboot_hints = list(); remind_list = list(); remind_helps = list(); machine_key = "HKEY_LOCAL_MACHINE"; /* System Variables */ os_name = platform(); orainst_dir = current_directory(); if (directory_name(orainst_dir) == orainst_dir) orainst_dir = implode(explode(orainst_dir,"\",'STRINGSONLY),"\"); windows_dir = windows_directory(); if (directory_name(windows_dir) == windows_dir) windows_dir = implode(explode(windows_dir,"\",'STRINGSONLY),"\"); windows_sys_dir = windows_system_directory(); if (directory_name(windows_sys_dir) == windows_sys_dir) windows_sys_dir = implode(explode(windows_sys_dir,"\",'STRINGSONLY),"\"); win_ini_dir = "%windows_dir%\win.ini"; { SystemRoot = win32_system_root(); } ['default : systemRoot = windows_sys_dir;] system_root_drive = first(explode(SystemRoot,":",'STRINGSONLY)); { local_drive = ""; local_space = 0; drive_list = dos_mapped_drives(); subtract(drive_list,list("A","B")); while (not(empty(drive_list))) { drive = first(drive_list); drive = "%drive%:"; { space = free_space(drive); type = dos_file_system_type(drive); if ((type != 'REMOTE) && ((type == 'FAT) || (type == 'NTFS))) if (space > local_space) { local_drive = drive; local_space = space; } } ['next_drive: continue(); ] drive_list = rest(drive_list); } }['default: continue();] if (local_space == 0) default_drive = system_root_drive; else default_drive = local_drive; default_drive = first(explode(default_drive,":")); default_drive = "%default_drive%:"; admin_user = TRUE; if(os_name == "nt") { pathval = translate("PATH", "$",'STRINGSONLY); modify("PATH", pathval, "$"); } [ 'PERMISSION_DENIED : { admin_user = FALSE; continue(); } 'FILE_NOT_FOUND : { modify("PATH", "", "$"); continue(); } ['PERMISSION_DENIED : { admin_user = FALSE; continue(); } ] 'DEFAULT: { admin_user = FALSE; continue(); } ] /* NLS Variables */ nt_group_name = nls("nt_group_name", "Oracle for Windows NT"); win95_group_name = nls("win95_group_name", "Oracle for Windows 95"); if (os_name == "nt") oracle_group_name = nt_group_name; else oracle_group_name = win95_group_name; /* nls strings for ui_action messages */ default_language_string = nls("default_language_string", "Looking for a Default Language..."); installation_language = nls("installation_language", "Setting Installation Language..."); check_environment = nls("check_environment", "Checking the Environment..."); set_customer = nls("set_customer","Setting Company Information..."); locate_home = nls("locate_home","Locating Oracle Home..."); update_path = nls("update_path","Updating System PATH Variable..."); prepare_installation = nls("prepare_to_install","Preparing to Install..."); cancel_prompt01 = nls("cancel_prompt01", "Installation terminated at user request."); /****************************************************************************/ /* */ /* NLS STRINGS FOR MAKEDIR.VRF */ /* */ /****************************************************************************/ /* choose directory dialog messages */ makedir_select_dir_prompt = nls("makedir_select_dir_prompt", "Where would you like to install %%current_product%%?"); makedir_content = nls("makedir_content","Directory Selection"); makedir_help = nls("makedir_help","Please Select a Directory where to install %%current_product%%"); /* bad drives */ makedir_specify_drive = nls("makedir_specify_drive","The path that you have entered, %quotation_mark%%%makedir_path_to_check%%%quotation_mark%, is not a valid path because it does not specify a drive."); makedir_bad_drive = nls("makedir_bad_drive", "The path, %quotation_mark%%%makedir_path_to_check%%%quotation_mark%, is not valid because the drive '%%makedir_drive%%:' does not exist."); /* invalid path string */ makedir_no_dir = nls("makedir_no_dir", "%quotation_mark%%%makedir_path_to_check%%%quotation_mark% does not specify a directory. Please specify a directory name in your path."); makedir_invalid_path = nls("makedir_invalid_path", "%quotation_mark%%%makedir_path_to_check%%%quotation_mark% is not a valid path."); makedir_absolute_path = nls("makedir_absolute_path", "%quotation_mark%%%makedir_path_to_check%%%quotation_mark% is not an absolute path."); makedir_illegal_char = nls("makedir_illegal_char", "%quotation_mark%%%makedir_path_to_check%%%quotation_mark% is not a valid path because it contains the illegal character '%%makedir_bad_char%%'."); makedir_name_too_long = nls("makedir_name_too_long","The directory, '%%makedir_name%%', of the path %quotation_mark%%%makedir_path_to_check%%%quotation_mark% is too long."); makedir_illegal_name = nls("makedir_illegal_name","The directory, '%%makedir_name%%', of the path %quotation_mark%%%makedir_path_to_check%%%quotation_mark% is not a legal name."); makedir_long_basename = nls("makedir_long_basename","The directory, '%%makedir_name%%', of the path, %quotation_mark%%%makedir_path_to_check%%%quotation_mark%, is not legal because the basename '%%makedir_base%%' contains more than 8 characters."); makedir_long_extension = nls("makedir_long_extension","The directory, '%%makedir_name%%', of the path, %quotation_mark%%%makedir_path_to_check%%%quotation_mark%, is not legal because the extension '%%makedir_ext%%' contains more than 3 characters."); makedir_has_white_space = nls("makedir_has_white_space","The directory, '%%makedir_name%%', of the path, %quotation_mark%%%makedir_path_to_check%%%quotation_mark%, contains a space or tab character. Please enter a directory which does not contain any whitespace characters."); /* bad location */ makedir_other_os_home = nls("makedir_other_os_home", "The location specified, %quotation_mark%%%makedir_path_to_check%%%quotation_mark%, is already used as an Oracle home for '%%extra_os%%'.%carriage_return%It cannot be used as an Oracle home for '%%makedir_os_for_home%%'."); /* bad permissions */ makedir_dir_not_accessible = nls("makedir_dir_not_accessible","The directory, '%%makedir_current_path%%', is not accessible."); makedir_cant_create_dir = nls("makedir_cant_create_dir","The Installer could not create the directory '%%makedir_current_path%%' : %%makedir_signal%%"); makedir_not_enough_space = nls("makedir_not_enough_space", "%%makedir_drive%%:\ does not have enough space for setting up an Oracle home. Please free up space and try again."); makedir_cannot_get_freespace = nls("makedir_cannot_get_freespace", "The Installer was unable to obtain the available free space in %%makedir_drive%%:\."); /* root directory */ makedir_root_message = nls("root_directory_message", "%quotation_mark%%%makedir_path_to_check%%%quotation_mark% is a root directory. Oracle products cannot be installed to a root directory. Please choose a different directory."); makedir_root_content = nls("root_directory_content","Top-Level Directory"); makedir_root_help = nls("makedir_root_help", "%quotation_mark%%%makedir_path_to_check%%%quotation_mark% is a root directory. Oracle products cannot be installed to a root directory. Please choose a directory such as %%makedir_path_to_check%%ORAWIN95."); /* No Oracle Home in Windows directory */ windows_dir_message = nls("windows_dir_message", "The specified Oracle home, %quotation_mark%%%makedir_path_to_check%%%quotation_mark%, points to a location within the Windows directory. Products are not allowed to be installed in the Windows directory. Please select a different location for the Oracle home."); windows_dir_content = nls("windows_dir_content", "Installing to the Windows directory"); windows_dir_help = nls("windows_dir_help", "It is not recommended to install products within the Windows directory. The selection that was made for the Windows 32-bit Oracle home coincides with a location at or within the Windows directory."); makedir_bad_tree_list = list(windows_dir); makedir_bad_tree_message_list = list(windows_dir_message); makedir_bad_tree_content_list = list(windows_dir_content); makedir_bad_tree_help_list = list(windows_dir_help); /* Do not allow running of an installer installed under NT, to be run under Windows 95, and vice versa. The existence of the .rgs file determines what kind of home currently exists. This can only happen if a user physically runs the orainst.exe in the ORANT\BIN directory or the OCSM agent on the client runs the NT installer on the host while being on windows 95 or vice versa */ preexisting_home = false; wrong_platform_message1 = nls("wrong_platform_message1", "Your machine is currently running the %%os_current%% Operating System. You cannot run the %%os_exists%% Installer on %%os_current%%."); wrong_platform_message2 = nls("wrong_platform_message2", "Your machine is currently running the %%os_current%% Operating System and the OCSM Host you want to register with is running the %%os_exists%% Operating System. You can only register with a Host running the %%os_current%% Operating System."); /*******************************************************************/ /* HLPTXT.VRF SCRIPT COMMON STRINGS */ /*******************************************************************/ help_text_c95 = nls("help_text_c95", "Select ‘Oracle8 Client’ to install the complete suite of products to allow you to connect to and administer your Oracle database from a client machine. This suite includes networking services, utilities, and support files required for the most common client/server configurations. If this option is selected, you will be asked to choose between an Application User installation or a Database Administrator installation. For a list of components, select ‘Oracle8 Client’ and click [OK]. Then, click [Help] when the Select Oracle8 Client Configuration dialog box appears. Select ‘Custom Installation’ to choose individual components to install or de-install. For complete component listings, refer to the CD insert or the Software Asset Manager in Custom Installation. Although this CD contains many Oracle products, you may install and use only those products for which you have purchased licenses. Technical support is not provided for products where licenses have not been purchased. For additional licensing information, refer to the Global License Terms booklet."); install_type_ee = nls("install_type_ee", "Select ‘Oracle8 Enterprise Edition’ to install a starter database, networking services, utilities, and support files for an Oracle database server. The following components are included with this option: Oracle Installer Oracle8 Enterprise Edition Oracle8 Enterprise Edition Cartridges and Options Oracle8 Utilities Oracle8 Performance Utility Oracle Enterprise Manager Oracle Intelligent Agent Oracle Call Interface Oracle Objects for OLE Oracle8 ODBC Driver SQL*Plus Oracle Web Publishing Assistant Oracle Database Assistant Oracle Data Migration Assistant Oracle Migration Assistant for Microsoft Access Oracle Net8 Server Oracle Net8 Client Oracle Net8 Assistant Oracle Protocol Adapters Oracle Documentation Select ‘Oracle8 Client’ to install the complete suite of products to allow you to connect to and administer your Oracle database from a client machine. This suite includes networking services, utilities, and support files required for the most common client/server configurations. If this option is selected, you will be asked to choose between an Application User installation or a Database Administrator installation. For a list of components, select ‘Oracle8 Client’ and click [OK]. Then, click [Help] when the Select Oracle8 Client Configuration dialog box appears. Select ‘Custom Installation’ to choose individual components to install or de-install. For complete component listings, refer to the CD insert or the Software Asset Manager in Custom Installation. Although this CD contains many Oracle products, you may install and use only those products for which you have purchased licenses. Technical support is not provided for products where licenses have not been purchased. For additional licensing information, refer to the Global License Terms booklet."); help_text_o8 = nls("help_text_o8", "Select ‘Oracle8’ to install a starter database, networking services, utilities, and support files for an Oracle database server. The following components are included with this option: Oracle Installer Oracle8 Oracle8 Utilities Oracle8 Performance Utility Oracle8 ConText Cartridge Oracle Enterprise Manager Oracle Intelligent Agent Oracle Call Interface Oracle Objects for OLE Oracle8 ODBC Driver SQL*Plus Oracle Web Publishing Assistant Oracle Database Assistant Oracle Data Migration Assistant Oracle Migration Assistant for Microsoft Access Oracle Net8 Server Oracle Net8 Client Oracle Net8 Assistant Oracle Protocol Adapters Oracle Documentation Select ‘Oracle8 Client’ to install the complete suite of products to allow you to connect to and administer your Oracle database from a client machine. This suite includes networking services, utilities, and support files required for the most common client/server configurations. If this option is selected, you will be asked to choose between an Application User installation or a Database Administrator installation. For a list of components, select ‘Oracle8 Client’ and click [OK]. Then, click [Help] when the Select Oracle8 Client Configuration dialog box appears. Select ‘Custom Installation’ to choose individual components to install or de-install. For complete component listings, refer to the CD insert or the Software Asset Manager in Custom Installation. Although this CD contains many Oracle products, you may install and use only those products for which you have purchased licenses. Technical support is not provided for products where licenses have not been purchased. For additional licensing information, refer to the Global License Terms booklet."); help_text_client = nls("help_text_client", "Select ‘Oracle8 Client’ to install networking services, utilities, and support files required for the most common client/server configurations. If this option is selected, you will be asked to choose between an ‘Application User’ installation or an ‘Database Administrator’ installation based upon the primary function you will be performing. For a list of components, click [Help] after selecting ‘Oracle8 Client’. Select ‘Programmer/2000’ to install products that are used to create applications that access the Oracle database: Oracle Call Interface Oracle8 ODBC Driver Oracle Objects for OLE Pro*C/C++ Pro*COBOL Oracle8 JDBC Drivers Oracle Net8 Oracle Documentation Select ‘SQL*Plus’ to install SQL*Plus and its dependent products that interface with Oracle databases: SQL*Plus Oracle Net8 Oracle Documentation Select ‘Custom Installation’ to choose individual components to install or to de-install products. For complete component listings, refer to the CD insert or the Software Asset Manager in Custom Installation. Although this CD contains many Oracle products, you may install and use only those products for which you have purchased licenses. Technical support is not provided for products where licenses have not been purchased. For additional licensing information, refer to the Global License Terms booklet."); help_text_po8nt = nls("help_text_po8nt", ""); help_text_po895 = nls("help_text_po895", ""); /*******************************************************************/ /* SHOWNMOH.VRF SCRIPT COMMON STRINGS */ /*******************************************************************/ non_moh_msg = nls("non_moh_msg", "The following products have previously been installed in another Oracle home:%carriage_return%%carriage_return%%non_moh_prods%%carriage_return%%carriage_return%These products can only be installed in one Oracle home. Click [OK] to continue installation without installing the products listed above. Click [Cancel] to exit Oracle Installer. Click [Help] for more information."); non_moh_content = nls("non_moh_content", "Non Multiple Oracle Homes Enabled Products"); non_moh_help = nls("non_moh_help", "Review the Getting Started guide included with this release for more information on Multiple Oracle homes. If you want to install any of the products listed into a new Oracle home you must first deinstall them from their current Oracle home using the Installer from the home in which they reside. After deinstallation run the Installer provided with this release to install the products into a new Oracle home. Individual products can be selected for installation through Custom Installation. Clicking [OK] continues the installation without installing the products listed. If desired, the products can be deinstalled from their current Oracle home and then installed into the new Oracle home as described above. Clicking [Cancel] will abort the current installation and exit the Installer."); /*******************************************************************/ /* Y2KRDBMS.VRF SCRIPT COMMON STRINGS */ /*******************************************************************/ local_install_type_custom = nls("local_install_type_custom","Custom Installation"); localLSM_Install_Failed_Content = nls("localLSM_Install_Failed_Content", "Legato Storage Manager installation failed. Please perform a manual installation of the product after the Oracle Installer exits."); localLSM_Install_Failed_Title = nls("localLSM_Install_Failed_Title", "Legato Storage Manager Installation"); localLSM_Install_Failed_Help = nls("localLSM_Install_Failed_Help", "If Legato Storage Manager installation has failed, you can manually install the product by double-clicking the setup.exe icon located in the \Legato\ directory of this CD-ROM. Please do not run the setup program until the Oracle Installer has exited."); localInstalling_Legato = nls("localInstalling_Legato", "Installing Legato Storage Manager...Please Wait..."); localLegato_install_complete = nls("localLegato_install_complete", "Legato Storage Manager installation completed"); y2krdbms_failure = nls("y2krdbms_failure", "There was a fatal error in the install."); if( installation_mode == 'local ) if( (user_action == 'install) || (user_action == 'deinstall) ) { invalid_action = nls("invalid_action","Your current Oracle home %%oracle_home%% is an OCSM client installation managed by your system administrator. You may not install or remove products in this home."); signal('FAILURE, instantiate(invalid_action)); } /********************************************************************************/ /*** Here we execute the script "y2krdbms.vrf", which dynamically sets and *** *** defines the variable "bundle_name", and defines an additional set of *** *** global variables that do not vary with bundle_name. We intentionally *** *** do not execute this script until after the execution of the "user.stp". *** *** This script is needed in order to run the y2k-compliant installer with *** *** the NT RDBMS scripts v7.3.4 and v8.0.5. ***/ /*** First we look in %installer_home% for this script. If the script is not *** *** there, then the installer has not been installed. And we look look in *** *** the install engine directory. The variable engineDirectory is set in *** *** STP phase using the current_directory() function. ***/ { execute("%installer_home%\y2krdbms.vrf"); } /* Is script installed? */ [ 'FILE_NOT_FOUND: { execute("%orainst_dir%\y2krdbms.vrf"); } /* Is script with current Installer? */ [ 'FILE_NOT_FOUND: { execute("%orainst_dir%\y2krdbms.vrf"); }/* Is script in staging area? */ [ 'FILE_NOT_FOUND: continue(); ] ] ] /********************************************************************************/ /****************************************************************************/ /* */ /* GET GLOBAL CLIENT INSTALLATION SETTINGS VARIABLES */ /* CREATE CLIENT HOME */ /* CREATE CLIENT REGISTRY */ /* */ /****************************************************************************/ if (installation_mode == 'bootstrap) { /* set up NLS messages */ config_environment = nls("config_environment","Setting Up Local Environment..."); upgrading_env = nls("upgrading_env", "Upgrading Environment..."); /* NLS Error Messages */ unable_to_map_clients_dir = nls("unable_to_map_clients_dir", "The Oracle Installer was unable to map a drive to the clients directory on the OCSM host machine.%%carriage_return%%%%carriage_return%%Please make sure the system administrator has properly shared that location on %%host_machine%% as \\%%host_machine%%\%%clients_share%%."); shared_installation_corrupted = nls("shared_installation_corrupted", "The Oracle Installer was unable to access global Registry settings. The installation on the Oracle Client Software Manager host has been corrupted. Please contact your system administrator to correct the problem."); hname_default = nls("hname_default","DEFAULT_HOME"); local_vs_shared_message = nls("local_vs_shared_message","You cannot install local products in the same location as shared products."); local_vs_shared_content = nls("local_vs_shared_content","Local Home Vs. Shared Home"); local_vs_shared_help = nls("local_vs_shared_help","The path '%%makedir_path_to_check%%' is in the shared Oracle home, '%%shared_oracle_home%%'. Local client Oracle Homes cannot be set within the shared Oracle home. Only the Oracle Client Software Manager's administrator is allowed to modify the shared Oracle home."); unknown_username = nls("unknown_username",""); must_be_specified = nls("must_be_specified",""); username_label = nls("username_label","Client Username"); username_prompt = nls("username_prompt","Please enter the username for the Oracle user of this system."); username_content = nls("username_content","Client Username"); username_help = nls("username_help","You are being asked to enter your username. This information is used to track what products you are permitted to use and what products you are already using. Other users cannot change this information."); username_prompt1 = nls("username_prompt1", "The client username must be specified and cannot be empty. Please enter a valid Client username.%carriage_return%%carriage_return%A valid client username can only contain alphanumeric characters and cannot be more than eight characters long."); username_prompt2 = nls("username_prompt2", "The client username %%selected_username%% is already registered with the OCSM host. Please use a different name.%carriage_return%%carriage_return%A valid client username can only contain alphanumeric characters and cannot be more than eight characters long."); home_label = nls("home_label","Oracle Home"); home_prompt = nls("home_prompt","Please enter the location where you would like to install Oracle products."); home_default = "%%hpath_default%%"; home_help = nls("home_help","You are being asked to enter the location where you would like to install Oracle products."); home_inuse = nls("home_inuse", "The Oracle Installer has detected that %%selected_home_path%% is already a registered Oracle home. You cannot overwrite it. Please choose a different home."); configure_settings_content = nls("configure_settings_content", "Oracle Client Configuration Settings"); configure_settings_prompt = nls("configure_settings_prompt", "Please enter the following Oracle client configuration settings:"); oracle_products = nls("oracle_products","Oracle Products"); sub_write_error_prompt = nls("sub_write_error_prompt","It was not possible to create the directory '%%subdirectory%%'. This could have been caused by not having the write permissions needed to create the specified directory. Please correct the problem or choose another directory."); sub_file_not_found_prompt = nls("sub_file_not_found_prompt","The directory, '%%subdirectory%%', is not valid. Please choose another directory."); sub_os_error_prompt = nls("sub_os_error_prompt","The directory, '%%subdirectory%%', could not be created. This could have been due to the fact that a file already exists by that name. Please correct the problem or choose another directory."); path_update_accept = nls("path_update_accept", "Accept Path Change"); path_update_modify = nls("path_update_modify", "Edit Path"); path_update_refuse = nls("path_update_refuse", "Leave Path Unchanged"); path_update_content = nls("path_update_content", "Path Update"); path_update_prompt = nls("path_update_prompt", "The Oracle home that you have created %oracle_home% is not in the current path. For some products to function correctly, you must add %new_path_addition% to the system path."); path_update_help = nls("path_update_help", "For some Oracle products to function properly, you must add '%new_path_addition%' to your system path. %carriage_return%%carriage_return%If you want the Oracle Installer to make this change, choose '%path_update_accept%'. If you want to make this change yourself, choose '%path_update_modify%' to manually change your system path.%carriage_return%%carriage_return%If you want to proceed without changing to your system path, choose '%path_update_refuse%'."); path_edit_content = nls("path_edit_content", "Path Changes"); path_edit_prompt = nls("path_edit_prompt", "Please enter the new value for your system path."); path_edit_help = nls("path_edit_help", "In order for some Oracle products to function correctly, you must add '%new_path_addition%' to your system path. You have selected to make the change yourself. In order for this installation session to succeed, add '%oracle_home_path%\bin' to the beginning of your path.%carriage_return%%carriage_return%Choose 'Back' to return to the addition specified by the Installer."); path_update_warn = nls("path_update_warn", "In order for some Oracle products to function correctly, the system PATH variable needs to include %oracle_home%\bin. Please remember to modify your path accordingly."); path_update_overflow = nls("path_update_overflow", "The Oracle Installer cannot update the system path variable to %new_path% because it is too long. Please restrict your system path to %max_binding_length% characters and make sure %oracle_home%\bin is included in your path."); /* call the script */ execute("..\orainst\win32.cfg"); current_product = unbound_variable(); /* Set up global variables */ installation_mode = 'configuration; } /****************************************************************************/ /* */ /* GET GLOBAL INSTALLATION SETTINGS VARIABLES */ /* ORACLE_HOME_INFO */ /* ORACLE_HOME_NAME */ /* ORACLE_HOME_PATH */ /* ORACLE_HOME_KEY */ /* ORACLE_HOME_ID */ /* */ /* DEFAULT_HOME_INFO */ /* DEFAULT_HOME_NAME */ /* DEFAULT_HOME_PATH */ /* DEFAULT_HOME_KEY */ /* DEFAULT_HOME_ID */ /* */ /* ORACLE_GROUP_NAME */ /* NLS_LANGUAGE */ /* INSTALLATION_MODE */ /* */ /* ORACLE_HOME */ /* SHARED_ORACLE_HOME */ /* INSTALLER_HOME */ /* SHARED_INSTALLER_HOME */ /* MSHELP */ /* SHARED_DLL */ /* */ /****************************************************************************/ /* 331: Need to find a way to get current client home in the case of 'configuration if ((installation_mode == 'stand_alone) || (installation_mode == 'local)) */ { current_dir = current_directory(); change_directory(".."); oracle_home = current_directory(); oracle_home = implode(explode(oracle_home,"\",'STRINGSONLY),"\"); { shared_oracle_home = stringify(oracle_home,FALSE); } ['default: continue(); ] change_directory(current_dir); } { { oracle_home_info = home_info(oracle_home,'path); } ['HOME_NOT_FOUND: { /* This is only valid if running from Client home. */ /* 1. Loop through all homes on client machine */ /* 2. Match shared_oracle_home with oracle_home */ /* 3. Get actual client home path */ /* 4. Get home info of that new path */ all_client_homes = all_homes(); done_iteration = empty(all_client_homes); while(not(done_iteration)) { current_client_path = home_path(first(all_client_homes)); current_client_key = home_key(first(all_client_homes)); multiple_home_aware = FALSE; current_host_path = translate("shared_oracle_home", "$ORACLE\%current_client_key%", 'STRINGSONLY); if (current_host_path == oracle_home) { oracle_home = current_client_path; oracle_home_info = home_info(oracle_home,'path); done_iteration = TRUE; } else { all_client_homes = rest(all_client_homes); done_iteration = empty(all_client_homes); } } if (current_client_path != oracle_home) signal('home_not_found); else continue(); } ] } ['DEFAULT: { oracle_home_not_exists = nls("oracle_home_not_exists", "Oracle Installer is being run from a location %current_dir% which does not correspond to a valid Oracle Home. Please run Oracle Installer from distribution media in order to correct your installation."); signal('failure, oracle_home_not_exists); } ] multiple_home_aware = TRUE; oracle_home_id = home_id(oracle_home_info); oracle_home_name = home_name(oracle_home_info); oracle_home_path = home_path(oracle_home_info); oracle_home_key = home_key(oracle_home_info); oracle_home = oracle_home_path; { default_home_info = get_default_home(); } [ 'HOME_NOT_FOUND: { default_home_not_exists = nls("default_home_not_exists", "Oracle Installer could not find the default home. Your installation may have been corrupted. Please run Oracle Installer from distribution media in order to correct your installation."); signal('failure, default_home_not_exists); } ] default_home_id = home_id(default_home_info); default_home_name = home_name(default_home_info); default_home_path = home_path(default_home_info); default_home_key = home_key(default_home_info); { shared_oracle_home = translate("shared_oracle_home","$ORACLE",'STRINGSONLY); pathify(shared_oracle_home); shared_oracle_home = implode(explode(shared_oracle_home,"\",'STRINGSONLY),"\"); oracle_home_name = translate("oracle_home_name","$ORACLE",'STRINGSONLY); nls_language = default_language(); } ['UNBOUND_ENVIRONMENT_VARIABLE(a,b,c,d): { variable_name = first(reverse(explode(b,"'",'STRINGSONLY))); variable_not_exists = nls("variable_not_exists", "Oracle Installer could not find global setting for '%variable_name%' in the registry. Your installation may have been corrupted. Please run Oracle Installer from distribution media in order to correct your installation."); signal('failure, variable_not_exists); } ] if (oracle_home_info == default_home_info) { oracle_home_service = ""; oracle_home_group = ""; } else { oracle_home_service = oracle_home_name; oracle_home_group = " - %oracle_home_name%"; } oracle_group_name = "%oracle_group_name%%oracle_home_group%"; mshelp = "%oracle_home%\mshelp"; installer_home = "%oracle_home%\orainst"; shared_installer_home = "%shared_oracle_home%\orainst"; shared_dll = "%shared_oracle_home%\shrdll"; if(installation_mode == 'stand_alone) if (oracle_home != shared_oracle_home) installation_mode = 'local; if (installation_mode == 'configuration) { /* get Global Registry Vars from machine_name */ host_machine = translate("HOST_MACHINE", "%shared_installer_home%\ocsm.ini", "ORACLE", 'STRINGSONLY); host_backup = translate("BACKUP", "%shared_installer_home%\ocsm.ini", "ORACLE", 'STRINGSONLY); shared_oracle_key = translate("SOFTWARE", "%shared_oracle_home%\bin\oracle.key","\", 'STRINGSONLY); shared_oracle_key = "software\%shared_oracle_key%"; host_oracle_home = win32_get_value(machine_key, SHARED_ORACLE_KEY, "ORACLE_HOME", host_machine); nls_language = win32_get_value(machine_key, SHARED_ORACLE_KEY, "NLS_LANG", host_machine); company_name = win32_get_value(machine_key, SHARED_ORACLE_KEY, "COMPANY_NAME", host_machine); product_home = "%shared_oracle_home%\sharagt"; selected_products = list("w32sharagt"); bootstrap = TRUE; } { current_username = translate("CLIENTNAME","$ORACLE",'STRINGSONLY); } ['default: { current_username = ""; continue(); } ] /****************************************************************************/ /* */ /* VERIFY ORACLE HOME FILE SYSTEM STRUCTURE */ /* CHECK SUBDIRECTORIES */ /* CHECK ORACLE HOME DIRECTORY */ /* CHECK REGISTRATION FILES */ /* */ /****************************************************************************/ { /* Is everything there? */ if (not(exists("%oracle_home%\bin")) || not(exists("%oracle_home%\dbs")) || not(exists("%oracle_home%\orainst")) || ((os_name == "nt") && not(exists("%oracle_home%\orainst\nt.rgs"))) || ((os_name == "win95") && not(exists("%oracle_home%\orainst\win95.rgs")))) signal('UNBOUND_ENVIRONMENT_VARIABLE); } ['UNBOUND_ENVIRONMENT_VARIABLE: signal('FAILURE,nls("installation_corrupted","This installation of Oracle needs to be corrected. To do this, you must run the Oracle Installer from distribution media.")); ] if (oracle_home_info == default_home_info) oracle_home_rgs = "%oracle_home_name%.rgs33"; else oracle_home_rgs = "%oracle_home_name%.rgs"; convert_registrations("%installer_home%\%os_name%.rgs", "%installer_home%\%oracle_home_rgs%", "%installer_home%\%oracle_home_rgs%", 'RGS33); convert_registrations("%installer_home%\%os_name%.rgs", "%installer_home%\%oracle_home_rgs%", "%installer_home%\%os_name%.rgs", 'RGS33); /* makedir verification */ makedir_check_invalid_home = TRUE; makedir_signal_error = TRUE; makedir_skip_pass = TRUE; makedir_path_to_check = oracle_home; makedir_default_dir = ""; makedir_required_space = 0; makedir_os_for_home = os_name; makedir_valid_rgs = list(os_name,oracle_home_name); { oracle_products = nls("oracle_products","Oracle Products"); current_product = oracle_products; oracle_home = execute("makedir.vrf"); directorify(oracle_home); current_product = unbound_variable(); makedir_signal_error = FALSE; } [ 'makedir_invalid_path: { if (silent_mode) signal('FAILURE, makedir_failure_signal_string); } ] /* create log file */ { { copy_file("%oracle_home%\orainst\orainst.log", "%oracle_home%\orainst\orainst.olg"); } [ 'default: continue(); ] create_log("%ORACLE_HOME%\ORAINST\ORAINST.LOG",FALSE); } [ 'default: continue(); ] /* log the windows NT env */ log_state(); win32_log_state(); /****************************************************************************/ /* */ /* RESET BACKUP DIRECTORY, IF NECESSARY */ /* */ /**************************************************************************** /* Make sure all Oracle Installer global files exist. */ copy_list = list("WIN32.AVF", "WIN32.VRF", "WIN32.PVF", "WIN32.INS", "WIN32.DEI", "WIN32.PIN", "WIN32.SHD","WIN32.RSP", "%OS_NAME%.AVF", "%OS_NAME%.VRF", "%OS_NAME%.PVF", "%OS_NAME%.INS", "%OS_NAME%.DEI", "%OS_NAME%.PIN", "%OS_NAME%.SHD","%OS_NAME%.RSP", "%OS_NAME%.US","%OS_NAME%.%nls_abbreviation%", "MOHCVRT.VRF","MAKEDIR.VRF"); if (os_name == "nt") { add(copy_list,"SERVICES.VRF"); add(copy_list,"STOPSRVC.VRF"); } else add(copy_list,"PATH.VRF"); /* save files to backup if not already backed up*/ backup_dir = "%installer_home%\backup"; backup_marker = "%installer_home%\backup.mk"; if (exists(backup_marker)) { if (exists(backup_dir)) { a_list = copy_list; while (not(empty(a_list))) { the_file = first(a_list); a_list = rest(a_list); { copy_file("%backup_dir%\%the_file%","%installer_home%\"); } [ 'default: continue(); ] } a_list = copy_list; while (not(empty(a_list))) { the_file = first(a_list); a_list = rest(a_list); { remove_file("%backup_dir%\%the_file%"); } [ 'default: continue(); ] } remove_directory(backup_dir); } /* backup is done, clear marker */ remove_file(backup_marker); } /****************************************************************************/ /* */ /* CUSTOMIZE FOR PRODUCT & BUNDLE INSTALLATION SCRIPTS */ /* */ /****************************************************************************/ product_label = unbound_variable(); identifying_boot_drive = nls("identifying_boot_drive", "Identifying the Boot Drive..."); boot_drive_prompt = nls("boot_drive_prompt","Please select the drive from which you boot your computer:"); boot_drive_content = nls("boot_drive_content","Boot Drive"); boot_drive_help = nls("boot_drive_help","You are being asked to identify the drive from which you boot your computer."); reinstall_prompt01 = nls("reinstall_prompt01","Would you like to update %%product_label%%, version %%installed_version%%, with the available release of %%product_label%%, version %%current_version%%?"); reinstall_content01 = nls("reinstall_content01","Update"); reinstall_help01 = nls("reinstall_help01","The currently installed version of %%product_label%%, %%installed_version%%, is out of date. The available version is %%current_version%%. It is recommended that you update %%product_label%% to the newer version, %%current_version%%. Choose 'Yes' to update %%product_label%% to %%current_version%%. Choose 'No' if you are sure you want to keep the installed version, %%installed_version%%, intact."); reinstall_prompt02 = nls("reinstall_prompt02","WARNING: Not installing the latest version of %%product_label%%, %%current_version%%, may cause other Oracle products to work improperly."); reinstall_content02 = nls("reinstall_content02","Necessary Update"); reinstall_help02 = nls("reinstall_help02","You are in the process of installing Oracle products which depend on version %%current_version%% of %%product_label%%. It is therefore recommended that you update %%product_label%% to %%current_version%%. You have chosen not to do so so, which may cause certain Oracle products to work improperly."); reinstall_prompt03 = nls("reinstall_prompt03","WARNING: The currently installed version of %%product_label%%, %%installed_version%%, is up to date. Are you sure you want to install the old version, %%current_version%%? Doing so may cause other Oracle products to work improperly."); reinstall_content03 = nls("reinstall_content03","Old Version"); reinstall_help03 = nls("reinstall_help03","You are attempting to install an older version of %%product_label%%, %%current_version%%, although version %%installed_version%% is already installed. Installing an older version of %%product_label%% may cause other Oracle products to work improperly. Choose 'No' to leave the current version of %%product_label%%, %%installed_version%%, intact. Choose 'Yes' if you are sure you want to replace it with version %%current_version%%."); reinstall_prompt04 = nls("reinstall_prompt04","Version %%installed_version%% of %%product_label%% has already been installed and is up to date. Would you like to reinstall it?"); reinstall_content04 = nls("reinstall_content04","Up To Date"); reinstall_help04 = nls("reinstall_help04","Version %%installed_version%% of %%product_label%% has already been installed and is up to date. There is no need to reinstall %%product_label%% unless the installation has been damaged. Choose 'No' to skip the reinstallation of %%product_label%%. Choose 'Yes' if you are sure you want to reinstall it."); deinstall_prompt01 = nls("deinstall_prompt01","WARNING: Other products are dependent on %%registry_label%%. Removing it may cause other products to work improperly. Are you sure you want to remove it?"); deinstall_content01 = nls("deinstall_content01","Dependencies"); deinstall_help01 = nls("deinstall_help01","Other products are dependent on %%registry_label%%. Removing it may cause them to work improperly. It is therefore recommended that you do not remove %%registry_label%%. Choose 'No' to leave %%registry_label%% intact. Choose 'Yes' if you are sure you want to remove it."); deinstall_prompt02 = nls("deinstall_prompt02","It was not possible to find a value for the variable, '%%variable%%', in '%%ora_config%%'. It is therefore not possible to remove %%registry_label%%. Please restore the binding for '%%variable%%' in '%%ora_config%%' in order to remove %%registry_label%%."); deinstall_content02 = nls("deinstall_content02","Variables"); deinstall_help02 = nls("deinstall_help02","It was not possible to find a value for the variable, '%%variable%%', in '%%ora_config%%'. '%%variable%%' is used to determine in what directory %%registry_label%% was installed. It is therefore not possible to remove %%registry_label%%. Please restore the binding for '%%variable%%' by adding a line that begins with '%%variable%%=' in '%%ora_config%%'. If %%registry_label%% is installed in '%%oracle_home%%', you need to add the line '%%variable%%=%%oracle_home%%' to correct the problem. When you have corrected the problem, you can remove %%registry_label%%."); unbound_message = nls("unbound_message","The versions of the products you are installing require a separate installation procedure. Please choose 'OK' to quit this installation, leave the disk labeled '%%product_label%% 1' in your drive, and then choose 'From'. When the %%product_label%% installation is complete, please resume installing the products you originally selected for installation."); unbound_content = nls("unbound_content","Separate Installation Procedure"); unbound_help = nls("unbound_help","The product you are currently installing was created with a different version of %%product_label%%. Proceeding with the current installation may result in installation errors. To avoid these errors and to successfully complete your installation, please choose 'OK' to quit this installation, insert the disk labeled '%%product_label%% 1' in your drive, and choose 'From'. When the installation is complete, install the other products you originally selected for installation."); instver_too_early = nls("instver_too_early","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."); version_string = nls("version_string","%%prodlab%% version %%ver%%"); cancel_prompt01 = nls("cancel_prompt01","Installation terminated at user request."); registering_product = nls("registering_product", "Registering %%product_label%%..."); create_dir_prompt = nls("create_dir_prompt","Creating %%dest_dir%% ..."); copying_file = nls("copying_file","Copying %%file_to_copy%% ..."); remind_content = nls("remind_content","Installation Notes"); reboot_prompt1 = nls("reboot_prompt1","Please reboot your computer after you exit the Installer in order for changes to the following file(s) to take effect:%carriage_return%%carriage_return%"); reboot_prompt2 = nls("reboot_prompt2","Please reboot your computer after you exit the Installer."); reboot_content = nls("reboot_content","Reboot Needed"); reboot_help = nls("reboot_help","The product(s) you have just installed may not function correctly until you reboot."); remind_content = nls("remind_content","Installation Notes"); ui_setting_up = nls("ui_setting_up", "Setting up..."); ui_analyzing_dependencies = nls("ui_analyzing_dependencies", "Analyzing Dependencies..."); ui_installing = nls("ui_installing", "Installing..."); ui_deinstalling = nls("ui_deinstalling", "Removing..."); ui_cancelling = nls("ui_cancelling", "Cancelling..."); ui_configuring = nls("ui_configuring","Configuring..."); OH_empty_path_content = nls("OH_empty_path_content", "Oracle Home not Specified"); OH_empty_path_prompt = nls("OH_empty_path_prompt", "You have not selected an Oracle home. Choose BACK to enter a valid location. Choose OK to accept the default location, %oracle_home%."); notify_groups_signal = nls("notify_groups_signal", "The following product(s) are still configured for the following groups of users. These have not been removed because users may be currently accessing them.%carriage_return%%carriage_return%Please run the Oracle Client Configuration Manager to retract access to the products, and try again.%carriage_return%%carriage_return%%shared_product_string%"); /*******************************************************************/ /*******************************************************************/ /* PRODUCT SCRIPT COMMON STRINGS */ /* Service Operations */ create_service = nls("create_service", "Creating %%product_label%% Windows NT Service..."); stoppe_product_service = nls("stop_product_service", "Stopping %%product_label%% Windows NT Service..."); delete_product_service = nls("delete_product_service", "Deleting %%product_label%% Windows NT Service..."); stop_registry_service = nls("stop_registry_service", "Stopping %%registry_label%% Windows NT Service..."); delete_registry_service = nls("delete_registry_service", "Deleting %%registry_label%% Windows NT Service..."); servicesDialogTitle = nls("servicesDialogTitle", "Oracle Service Detection"); servicesDialogPrompt = nls("servicesDialogPrompt", "There are currently Windows NT Services running in the Oracle Home in which you have chosen to install your products. As such, the Oracle Installer will encounter difficulties in installing certain products.%carriage_return%%carriage_return%Would you like the Oracle Installer to shut down these services before continuing with the installation?"); servicesDialogHelp = nls("servicesDialogHelp", "The Oracle Installer has detected Windows NT services running in the Oracle Home in which you have chosen to install your products. This will cause problems in copying certain files to your machine if those files are in use.%carriage_return%%carriage_return%You can allow the Oracle Installer to shut down these services automatically or you can shut down the services manually."); couldNotStopTitle = nls("couldNotStopTitle", "Error Stopping Oracle Services"); couldNotStopMessage = nls("couldNotStopMessage", "The Oracle Installer was unable to stop all of the Oracle Services running in the Oracle Home in which you have chosen to install your products.%carriage_return%%carriage_return%Stop these services manually before continuing with the installation."); couldNotStopHelp = nls("couldNotStopHelp", "The Oracle Installer has encountered difficulties in stopping some of the Oracle Services running in your selected Oracle Home. To eliminate any subsequent difficulites in copying files to your machine, you should stop these services manually before continuing with the installation.%carriage_return%%carriage_return%Click [OK] once you have stopped these services, or click [Cancel] to exit the Oracle Installer."); stopServicesMessage = nls("stopServicesMessage", "Shutting down %service%..."); /* File Operations */ create_directory = nls("create_directory", "Creating %%product_label%% Directory Structure..."); install_admin = nls("install_admin", "Installing %%product_label%% Administration Files..."); install_demo = nls("install_demo", "Installing %%product_label%% Demonstration Files..."); install_data = nls("install_data", "Installing %%product_label%% Data Files..."); install_system = nls("install_system", "Installing %%product_label%% Microsoft System DLLs..."); install_nls = nls("install_nls", "Installing %%product_label%% NLS Files..."); install_oci = nls("install_oci", "Installing %%product_label%% OCI Files..."); install_readme = nls("install_readme", "Installing %%product_label%% Readme Files..."); /*******************************************************************/ /* WIN32.VRF/DEI SCRIPT COMMON STRINGS */ /*******************************************************************/ analyze_depend = nls("analyze_depend", "Analyzing %%product_label%% Dependencies..."); analyze_deinstall_depend = nls("analyze_deinstall_depend", "Analyzing %%registry_label%% Dependencies..."); configured_on_client = nls("configured_on_client", "The product %%chosen_product%% has been configured on the following clients:%carriage_return%%%prod_clients%%%carriage_return%It cannot be removed from the Host until it is de-configured on all the specified clients. This will happen the next time the specified clients log in."); cancel_install = nls("cancel_install", "Cancelling Installation of %%product_label%%..."); moh_invalid_home = nls("moh_invalid_home", "%product_label% does not support multiple installations, and therefore cannot be installed on '%oracle_home_name%'. It can only be installed on '%default_home_name%'.%carriage_return%In order to install %product_label%, please run the Oracle Installer again, and select '%default_home_name%' as the target location."); { ui_graphics(); }['default: continue();] }