/* Copyright (c) Oracle Corporation 1997. All Rights Reserved */ /***************************************************************************** NAME win32.stp - 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 15, 1996 MODIFIED MM/DD/YY REASON TJOSE 01/24/99 Thai support:- This is not supported by installer team. Just added this workaround becuase apps needs it. No further support is provided for this workaround from Team Tao group. ZZERHOUN 11/15/99 rollback 8/16 changes. Don't overwrite oracle.key file if it already exists. ZZERHOUN 08/16/99 always include home key offset in oracle.key file. ZZERHOUN 07/19/99 Update software\oracle\oracle_homes tree for 3.2.x compat. Changed logic for path updates to fix Win95 bugs 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 05/05/98 Create sharedll directory zzerhoun 12/07/97 Added stopservices messages zzerhoun 09/22/97 Added MOH support vrajkuma 12/26/96 Suport for 32 bit OCSM and switching homes. njagathe 12/24/96 Changed behaviour for NT non-admin user (cannot create or switch homes). njagathe 11/24/96 Added dialog about DLL search path correction. njagathe 08/08/96 Change to use ability of makedir.vrf to weed out invalid Oracle home path choices *****************************************************************************/ { { ui_graphics("USRST%nls_abbreviation%.BMP");} ['default: {ui_graphics("START%nls_abbreviation%.BMP"); } ['default: { ui_graphics("STARTUS.BMP"); } ['default: continue(); ] ] ] /****************************************************************************/ /* */ /* 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 = TRUE; welcome = TRUE; /* Control Variables */ multiple_home_aware = FALSE; 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(); /* 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."); directory_prompt = nls("directory_prompt","Please enter the location where Oracle products should be installed:"); /****************************************************************************/ /* */ /* INITIALIZE NLS VARIABLES */ /* LANGUAGE_DEFAULT_PAIR, LANGUAGE_DEFAULT_NM, LANGUAGE_DEFAULT_CS */ /* LANGUAGE_OPTIONS */ /* LANGUAGE_CONTENT */ /* LANGUAGE_LABEL */ /* LANGUAGE_PROMPT */ /* LANGUAGE_HELP */ /* */ /****************************************************************************/ ui_action(default_language_string); /* language_list */ english = list("English","AMERICAN_AMERICA.WE8ISO8859P1"); arabic = list("Arabic", "ARABIC_UNITED ARAB EMIRATES.AR8MSWIN1256"); brazilian_portuguese = list("Brazilian Portuguese", "BRAZILIAN PORTUGUESE_BRAZIL.WE8ISO8859P1"); catalan = list("Catalan", "CATALAN_CATALONIA.WE8ISO8859P1"); croatian = list("Croatian", "CROATIAN_CROATIA.EE8MSWIN1250"); czech = list("Czech","CZECH_CZECH REPUBLIC.EE8MSWIN1250"); danish = list("Danish","DANISH_DENMARK.WE8ISO8859P1"); dutch = list("Dutch","DUTCH_THE NETHERLANDS.WE8ISO8859P1"); finnish = list("Finnish","FINNISH_FINLAND.WE8ISO8859P1"); french = list("French","FRENCH_FRANCE.WE8ISO8859P1"); german = list("German","GERMAN_GERMANY.WE8ISO8859P1"); greek = list("Greek","GREEK_GREECE.EL8MSWIN1253"); hebrew = list("Hebrew","HEBREW_ISRAEL.IW8MSWIN1255"); hungarian = list("Hungarian","HUNGARIAN_HUNGARY.EE8MSWIN1250"); italian = list("Italian","ITALIAN_ITALY.WE8ISO8859P1"); japanese = list("Japanese","JAPANESE_JAPAN.JA16SJIS"); korean = list("Korean","KOREAN_KOREA.KO16KSC5601"); lspanish = list ("Latin American Spanish", "LATIN AMERICAN SPANISH_AMERICA.WE8ISO8859P1"); norwegian = list("Norwegian","NORWEGIAN_NORWAY.WE8ISO8859P1"); polish = list("Polish","POLISH_POLAND.EE8MSWIN1250"); portuguese = list("Portuguese","PORTUGUESE_PORTUGAL.WE8ISO8859P1"); romanian = list ("Romanian", "ROMANIAN_ROMANIA.EE8MSWIN1250"); russian = list("Russian","RUSSIAN_CIS.CL8MSWIN1251"); schinese = list("Simplified Chinese", "SIMPLIFIED CHINESE_CHINA.ZHS16GBK"); slovak = list("Slovak", "SLOVAK_SLOVAKIA.EE8MSWIN1250"); slovanian = list("Slovenian", "SLOVENIAN_SLOVENIA.EE8MSWIN1250"); spanish = list("Spanish","SPANISH_SPAIN.WE8ISO8859P1"); swedish = list("Swedish","SWEDISH_SWEDEN.WE8ISO8859P1"); tchinese = list("Traditional Chinese","TRADITIONAL CHINESE_TAIWAN.ZHT16BIG5"); thai = list("Thai","THAI_THAILAND.TH8TISASCII"); turkish = list("Turkish","TURKISH_TURKEY.WE8ISO8859P9"); /* language_options */ language_options = list(english,arabic,brazilian_portuguese,catalan,croatian czech,danish,dutch,finnish,french,german, greek,hebrew,hungarian,italian,japanese,korean, lspanish,norwegian,polish,portuguese,romanian, russian,schinese,slovak,slovanian,spanish,swedish,tchinese,thai,turkish); /* language_default & lang_default */ ui_action(installation_language); /* language_content & language_label */ language_content = nls("language_content","Language"); language_label = "%language_content%:"; /* language _prompt & language_help */ language_prompt = nls("language_prompt", "You have selected to change the language setting of Oracle Home %%selected_home%% to %language_selection%. Previously installed products will now run in 'English', until you reinstall them in %language_selection%."); language_help = nls("language_help", "Select the language you want to use to install and run Oracle products.%carriage_return%The default language is English for those products which are not yet supported in the language you have selected.%carriage_return%If you change your language selection at a later date, products which are already installed will default to 'English' until you install them again with the new language."); /****************************************************************************/ /* */ /* INITIALIZE CUSTOMER VARIABLES */ /* CUSTOMER_CONTENT */ /* CUSTOMER_LABEL */ /* CUSTOMER_PROMPT */ /* CUSTOMER_HELP */ /* CUSTOMER_DEFAULT */ /* */ /****************************************************************************/ ui_action(check_environment); customer_content = nls("customer_content","Company Name"); customer_label = "%customer_content%:"; customer_prompt = nls("customer_prompt", "Please enter the name of the company to which this Oracle product is licensed."); customer_help = nls("customer_help", "Enter the name of the company to which this copy of Oracle is licensed. The information is internally recorded for licensing purposes."); { unknown_customer = nls("unknown_customer",""); must_be_specified = nls("must_be_specified",""); customer_default = must_be_specified; customer_default = customer_name(); } [ 'UNKNOWN_CUSTOMER: { if (os_name == "nt") customer_default = win32_get_value("HKEY_LOCAL_MACHINE", "Software\Microsoft\Windows NT\CurrentVersion", "RegisteredOrganization"); else customer_default = win32_get_value("HKEY_LOCAL_MACHINE", "Software\Microsoft\Windows\CurrentVersion", "RegisteredOrganization"); continue(); } ['DEFAULT: { continue(); } ] ] /****************************************************************************/ /* */ /* INITIALIZE ORACLE HOME VARIABLES */ /* HNAME_CONTENT, HNAME_HELP,HNAME_MIN, HNAME_MAX */ /* HPATH_CONTENT, HPATH_HELP */ /* HPATH_DEFAULT, HNAME_DEFAULT */ /* */ /****************************************************************************/ hname_min = 1; hname_max = 16; hname_content = nls("hname_content","Oracle Home Name"); hname_label = "%hname_content%:"; hname_help = nls("hname_help", "Oracle homes are identified by name. The Oracle home name identifies the program groups associated with a particular Oracle home, and the Oracle services installed on the associated home.%carriage_return%The Oracle home name must be %hname_min% to %hname_max% characters long, and can only include alphanumeric characters and underscores '_'."); hpath_content = nls("hpath_content","Oracle Home Location"); hpath_label = "%hpath_content%:"; hpath_help = nls("hpath_help", "The Oracle home location is the directory where products are installed. It must be a valid path that is not in the Windows directory. Different homes cannot share the same home location."); hpath_inuse = nls("hpath_inuse", "The specified location, %%selected_home_path%%, is already in use by Oracle home '%%current_home_name%%'."); hpath_duplicate = nls("hpath_duplicate", "Do you want to change the name of Oracle home from '%%current_home_name%%' to '%%selected_home_name%%'?%carriage_return%%carriage_return%Choose 'YES' to change the name of the Oracle home located on %%selected_home_path%%. Choose 'NO' to make another home selection."); { home_list = all_homes(); home_count = length(home_list); hinfo = get_default_home(); hname_default = home_name(hinfo); hpath_default = home_path(hinfo); hinfo = unbound_variable(); if (home_count == 1) home_selection = 'one_home; else home_selection = 'multiple_home; } ['HOME_NOT_FOUND: /* from get_default_home() */ { hname_default = nls("hname_default","DEFAULT_HOME"); hpath_default = v7_translate("ORACLE_HOME",'STRINGSONLY); hlang_default = v7_translate("NLS_LANG"); /* This is the case of migration of a 3.2.x home into a 3.3 home */ hinfo = create_home(hname_default, hpath_default, hlang_default); set_default_home(hinfo); home_list = list(hinfo); hinfo = unbound_variable(); home_selection = 'one_home; } ['UNBOUND_ENVIRONMENT_VARIABLE: { home_selection = 'no_home; home_list = list(); if (os_name == "nt") hpath_default = "%default_drive%\orant"; else hpath_default = "%default_drive%\orawin95"; } ] ] /****************************************************************************/ /* */ /* 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); /*******************************************************************/ /* 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)); } /****************************************************************************/ /* */ /* INITIALIZE ORACLE INSTALLATION SETTINGS VARIABLES */ /* INSTALLATION_SETTINGS_CONTENT */ /* INSTALLATION_SETTINGS_PROMPT */ /* INSTALLATION_SETTINGS_HOMES */ /* INSTALLATION_SETTINGS_LANGS */ /* INSTALLATION_SETTINGS_DFLTS */ /* INSTALLATION_SETTINGS_HELP */ /* NEW_HOME_SETTINGS_CONTENT */ /* NEW_HOME_SETTINGS_PROMPT */ /* NEW_HOME_SETTINGS_HELP */ /* CUSTOMER_HELP */ /* CUSTOMER_DEFAULT */ /* */ /****************************************************************************/ installation_settings_content = nls("installation_settings_content", "Oracle Installation Settings"); installation_settings_prompt = nls("installation_settings_prompt", "Please enter the following Oracle installation settings:"); installation_settings_help = "%customer_label% %customer_help%%carriage_return%%carriage_return%%hname_label% %hname_help%%carriage_return%%carriage_return%%hpath_label% %hpath_help%%carriage_return%%carriage_return%%language_label% %language_help%."; if (welcome) { welcome_prompt = nls("welcome_prompt", "Welcome to the Oracle Installer."); installation_settings_prompt = "%welcome_prompt% %%installation_settings_prompt%%"; welcome = FALSE; } installation_settings_homes = home_list; installation_settings_langs = language_options; { if (silent_mode) previous_home = home_info(translate("DEFAULT_HOME", "$ORACLE\ALL_HOMES",'STRINGSONLY), 'NAME); else previous_home = home_info(translate("LAST_HOME", "$ORACLE\ALL_HOMES"), 'ID); previous_home_name = home_name(previous_home); previous_home_path = home_path(previous_home); lang_dflt = default_language(previous_home); previous_home = unbound_variable(); } [ 'FILE_NOT_FOUND, 'HOME_NOT_FOUND: { previous_home_name = hname_default; previous_home_path = hpath_default; lang_dflt = default_language(); } ] { lang_name = first(explode(lang_dflt, "_")); lang_list = language_options; while(not(empty(lang_list))) { lang_dflt = first(rest(first(lang_list))); lang_curr = first(explode(lang_dflt,"_")); if (lang_curr == lang_name) { language_default_pair = first(lang_list); break(); } else lang_list = rest(lang_list); } if (empty(lang_list)) signal('unbound_environment_variable); lang_list = unbound_variable(); lang_dflt = unbound_variable(); lang_name = unbound_variable(); lang_curr = unbound_variable(); language_exists = TRUE; } [ 'UNBOUND_ENVIRONMENT_VARIABLE: { lang_list = unbound_variable(); lang_name = unbound_variable(); language_default_pair = english; language_exists = FALSE; } ] language_default_nm = first(language_default_pair); language_default_cs = first(rest(language_default_pair)); previous_home_lang = language_default_nm; installation_settings_dflts = list(customer_default, previous_home_name, previous_home_path, previous_home_lang); ui_action(locate_home); /****************************************************************************/ /* */ /* VALIDATE ORACLE INSTALLATION SETTINGS VARIABLES */ /* SELECTED_CUSTOMER */ /* NON-EMPTY */ /* NO */ /* SELECTED_HOME_NAME */ /* NON-EMPTY */ /* WITHIN MIN-MAX RANGE */ /* ONLY ALPHA-NUMERIC & UNDERSCORE ALLOWED */ /* SELECTED_HOME_PATH */ /* MAKEDIR.VRF */ /* SELECTED_LANGUAGE_NM,CS */ /* */ /****************************************************************************/ installation_settings_OK = FALSE; while(not(installation_settings_ok)) /* MAKE SURE ALL ELEMENTS ARE CORRECT */ { installation_settings = home_dialog(installation_settings_homes, installation_settings_langs, installation_settings_dflts, installation_settings_content, installation_settings_help); selected_customer = first(installation_settings); selected_home_name = first(rest(installation_settings)); selected_home_path = first(rest(rest(installation_settings))); selected_language_nm = first(rest(rest(rest(installation_settings)))); { /* Validate selected_customer */ /* the customer name could have been retrieved from the registry */ if ((selected_customer == "") || (selected_customer == must_be_specified)) if (silent_mode) selected_customer = unknown_customer; else signal('invalid_selected_customer); /* Validate selected_home_name */ /* the home name length must be within [hname_min,hname_max] */ if ((length(selected_home_name) < hname_min) || (length(selected_home_name) > hname_max)) if (silent_mode) selected_home_name = hname_default; else signal('invalid_selected_home_name); /* the home name must only contains alphanumerics & '_' */ invalid_home_name_chars = list(" ","*","?","<",">","|","-","+","=","[","]","%%","\","/", "~","`","'","@","#","$","^","&","(",")","{","}",";",":",".",","); while(not(empty(invalid_home_name_chars))) { if (contains(selected_home_name,first(invalid_home_name_chars))) { if (silent_mode) { selected_home_name = hname_default; break(); } else signal('invalid_selected_home_name); } invalid_home_name_chars = rest(invalid_home_name_chars); } /* Validate selected_home_path */ { new_oracle_home = FALSE; selected_home = home_info(selected_home_name, 'NAME); selected_home = unbound_variable(); } ['home_not_found: { new_oracle_home = TRUE; /* Duplicate homes? */ current_home_name = home_name(home_info(selected_home_path, 'PATH)); if (silent_mode) { selected_home_name = current_home_name; new_oracle_home = FALSE; } else { signal('invalid_selected_home_path); } }['home_not_found: continue();] ] current_home_name = unbound_variable(); /* makedir verification? */ makedir_signal_error = TRUE; makedir_skip_pass = TRUE; makedir_path_to_check = selected_home_path; makedir_default_dir = hpath_default; makedir_check_invalid_home = TRUE; makedir_valid_rgs = list(os_name,selected_home_name); makedir_os_for_home = os_name; /* MOH: Need to check for empty entries (makedir_path_to_check == "") */ /* Set value for makedir_required_space */ { makedir_required_space = size("WIN32.AVF") + size("WIN32.VRF") + size("WIN32.PVF") + size("WIN32.INS") + size("WIN32.DEI") + size("WIN32.PIN") + size("WIN32.SHD") + size("WIN32.RSP") + size("WIN32.US") + size("MAKEDIR.VRF") + size("Y2KRDBMS.VRF"); } ['default: { makedir_required_space = 0; }] { if (os_name == "nt") old_required = size("NT.AVF") + size("NT.VRF") + size("NT.PVF") + size("NT.INS") + size("NT.DEI") + size("NT.PIN") + size("NT.SHD") + size("NT.RSP") + size("SERVICES.VRF") + size("STOPSRVC.VRF"); else old_required = size("WIN95.AVF") + size("WIN95.VRF") + size("WIN95.PVF") + size("WIN95.INS") + size("WIN95.DEI") + size("WIN95.PIN") + size("WIN95.SHD") + size("WIN95.RSP") + size("PATH.VRF"); makedir_required_space = makedir_required_space + old_required; } ['default: { continue(); }] oracle_products = nls("oracle_products","Oracle Products"); current_product = oracle_products; selected_home_path = execute("makedir.vrf"); directorify(selected_home_path); current_product = unbound_variable(); makedir_signal_error = FALSE; /* Validate selected_language_nm */ { lang_list = language_options; while(not(selected_language_nm == first(first(lang_list)))) lang_list = rest(lang_list); selected_language_cs = first(rest(first(lang_list))); }['EMPTY_LIST: selected_language_cs = first(rest(english));] lang_list = unbound_variable(); installation_settings_ok = TRUE; }['invalid_selected_customer: { information_dialog(instantiate(customer_help),customer_content,'NO_HELP); } 'invalid_selected_home_name: { information_dialog(instantiate(hname_help),hname_content,'NO_HELP); } 'invalid_selected_home_path: { information_dialog(instantiate("%hpath_inuse%%carriage_return%%carriage_return%%hpath_help%"),hpath_content,'NO_HELP); } 'makedir_invalid_path: { if (silent_mode) signal('FAILURE, makedir_failure_signal_string); } 'cancel: { signal('cancel,cancel_prompt01); } ] } /* MAKE SURE ALL ELEMENTS ARE CORRECT */ /****************************************************************************/ /* */ /* SET 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_HOME_SERVICE */ /* ORACLE_HOME_GROUP */ /* ORACLE_GROUP_NAME */ /* NLS_LANGUAGE */ /* INSTALLATION_MODE */ /* */ /* ORACLE_HOME */ /* SHARED_ORACLE_HOME */ /* INSTALLER_HOME */ /* SHARED_INSTALLER_HOME */ /* MSHELP */ /* SHARED_DLL */ /* */ /****************************************************************************/ { { oracle_home_info = create_home(selected_home_name,selected_home_path,selected_language_cs); } [ 'HOME_NAME_ALREADY_EXISTS: { oracle_home_info = home_info(selected_home_name, 'NAME); signal('home_info_set); } 'HOME_PATH_ALREADY_EXISTS: { oracle_home_info = home_info(selected_home_path, 'PATH); signal('home_info_set); } ] } ['home_info_set: /* update home language if changed */ { oracle_home_info = unbound_variable(); oracle_home_info = create_home(selected_home_name,selected_home_path,selected_language_cs,'REPLACE); } ] oracle_home_id = home_id(oracle_home_info); oracle_home_id_str = stringify(oracle_home_id,FALSE); 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: { set_default_home(oracle_home_info); default_home_info = oracle_home_info; } ] 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); /* set installation mode */ { soh_exists = TRUE; sel_oh = oracle_home; sel_soh = translate("SHARED_ORACLE_HOME","$ORACLE",'STRINGSONLY); } ['FILE_NOT_FOUND: { soh_exists = FALSE; continue(); } ] /* MOH: TBImplemented if( soh_exists ) { if( sel_oh == sel_soh ) installation_mode = 'stand_alone; else installation_mode = 'local; shared_oracle_home = sel_soh; } else */ { installation_mode = 'stand_alone; shared_oracle_home = oracle_home; } /* MOH: What is this variable for ? */ { current_username = v7_translate("CLIENTNAME",'STRINGSONLY); } ['UNBOUND_ENVIRONMENT_VARIABLE: { current_username = ""; continue(); } ] if (oracle_home_info == default_home_info) { oracle_home_service = ""; oracle_home_group = ""; oracle_key = "SOFTWARE\ORACLE"; } else { oracle_home_service = oracle_home_name; oracle_home_group = " - %oracle_home_name%"; oracle_key = "SOFTWARE\ORACLE\%oracle_home_key%"; } oracle_group_name = "%oracle_group_name%%oracle_home_group%"; nls_language = selected_language_cs; installer_home = "%oracle_home%\orainst"; shared_installer_home = "%shared_oracle_home%\orainst"; shared_dll = "%shared_oracle_home%\shrdll"; mshelp = "%oracle_home%\mshelp"; host_machine = win32_get_computer_name(); /****************************************************************************/ /* */ /* UPDATE LANGUAGE OF EXECUTION */ /* */ /****************************************************************************/ /* restart installer in appropriate language, if necessary */ modify("LAST_HOME",oracle_home_id_str,"$ORACLE\ALL_HOMES"); if (selected_language_cs != current_language()) { set_default_language(selected_language_cs); restart_installer(); } else set_default_language(selected_language_cs); /****************************************************************************/ /* */ /* DISPLAY LICENSE AGREEMENT, IF AVAILABLE */ /* Execute USER.LIC */ /* */ /****************************************************************************/ /* run a user script which will allow them to display license information after the language has been changed*/ { execute("user.lic"); } [ 'cancel: signal('cancel,cancel_prompt01); 'FILE_NOT_FOUND: continue(); ] /****************************************************************************/ /* */ /* CREATE ORACLE HOME FILE SYSTEM STRUCTURE */ /* CREATE SUBDIRECTORIES */ /* CREATE & START LOG FILE */ /* COPY SYSTEM FILES */ /* BACKUP EXISTING FILES */ /* */ /****************************************************************************/ /* Make sure the Oracle home directories exist. */ { { subdirectory = "%oracle_home%\BIN"; make_directory(subdirectory); subdirectory = "%oracle_home%\DBS"; make_directory(subdirectory); subdirectory = "%oracle_home%\ORAINST"; make_directory(subdirectory); subdirectory = "%oracle_home%\MSHELP"; make_directory(subdirectory); subdirectory = "%oracle_home%\SHARED_DLL"; make_directory(subdirectory); } [ 'WRITE_ERROR: { 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."); information_dialog(instantiate(sub_write_error_prompt)); signal('CLEANUP); } 'FILE_NOT_FOUND: { sub_file_not_found_prompt = nls("sub_file_not_found_prompt","The directory, '%%subdirectory%%', is not valid. Please choose another directory."); information_dialog(instantiate(sub_file_not_found_prompt)); signal('CLEANUP); } 'OS_ERROR: { 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."); information_dialog(instantiate(sub_os_error_prompt)); signal('CLEANUP); } ] } [ 'CLEANUP: { { remove_directory("%oracle_home%\ORAINST"); } [ 'WRITE_ERROR: continue(); 'OS_ERROR: continue(); ] { remove_directory("%oracle_home%\DBS"); } [ 'WRITE_ERROR: continue(); 'OS_ERROR: continue(); ]#; { remove_directory("%oracle_home%\BIN"); } [ 'WRITE_ERROR: continue(); 'OS_ERROR: continue(); ]#; } ]#; /* Create & Update Log File */ { { copy_file("%installer_home%\orainst.log", "%installer_home%\orainst.olg"); } [ 'default: continue(); ] create_log("%INSTALLER_HOME%\ORAINST.LOG",FALSE); } [ 'default: continue(); ] /* log the windows 32-bit environment */ log_state(); win32_log_state(); /* Make sure the Oracle Registration file exists. */ if (not(exists("%installer_home%\%os_name%.rgs"))) create_file("%installer_home%\%os_name%.rgs"); if (not(exists("%installer_home%\ocsm.ini"))) create_file("%installer_home%\ocsm.ini"); /* 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","Y2KRDBMS.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("%installer_home%\os_name.AVF")) || (exists("%installer_home%\WIN32.AVF"))) { if (not(exists(backup_dir))) make_directory(backup_dir); a_list = copy_list; while (not(empty(a_list))) { the_file = first(a_list); a_list = rest(a_list); { copy_file("%installer_home%\%the_file%", "%backup_dir%\"); } [ 'default: continue(); ] } /* indicate that all files are in backup dir and are valid */ create_file(backup_marker); modify("", nls("dont_touch", "Please do not remove this file or change its permissions."), backup_marker); } a_list = copy_list; while (not(empty(a_list))) { the_file = first(a_list); a_list = rest(a_list); { copy_file(the_file, "%installer_home%\"); } [ 'default: continue(); ] } if (not(exists("%oracle_home%\bin\oracle.key"))) instantiate_file("oracle.key","%oracle_home%\bin\oracle.key"); /****************************************************************************/ /* */ /* UPDATE REGISTRY VARIABLES */ /* ORACLE_HOME */ /* SHARED_ORACLE_HOME */ /* NLS_LANG */ /* COMPANY_NAME */ /* ORACLE_GROUP_NAME */ /* API */ /* HOST_MACHINE */ /* */ /****************************************************************************/ /* Update Registry with Global Variables */ /* Update OCSM related information on host */ modify("HOST_MACHINE",host_machine,"%installer_home%\ocsm.ini","ORACLE"); modify("BACKUP","id%oracle_home_id_str%","%installer_home%\ocsm.ini", "ORACLE"); /* 331 do we need this? win32_copy_key(main_key, coh_key, main_key, new_subkey); win32_copy_key(main_key, temp_key, main_key, cohs_key); win32_delete_key(main_key, temp_key, 'RECURSIVE); */ /* First store them in default home (under SOFTWARE\ORACLE\HOME0) */ multiple_home_aware = TRUE; modify("ORACLE_HOME",oracle_home,"$oracle"); modify("ORACLE_HOME_NAME",oracle_home_name,"$oracle"); modify("ORACLE_HOME_SERVICE",oracle_home_service,"$oracle"); modify("SHARED_ORACLE_HOME",shared_oracle_home,"$oracle"); modify("API","%oracle_home%\DBS","$oracle"); modify("NLS_LANG",nls_language,"$oracle"); modify("COMPANY_NAME",selected_customer,"$oracle"); modify("ORACLE_GROUP_NAME",oracle_group_name,"$oracle"); /* Then store then under 3.2.x switch home (under SOFTWARE\ORACLE\ORACLE_HOMES) */ { multiple_home_aware = FALSE; modify("ORACLE_HOME",oracle_home,"$oracle\ORACLE_HOMES\ORACLE%ORACLE_HOME_ID_STR%"); modify("ORACLE_HOME_NAME",oracle_home_name,"$oracle\ORACLE_HOMES\ORACLE%ORACLE_HOME_ID_STR%"); modify("ORACLE_HOME_SERVICE",oracle_home_service,"$oracle\ORACLE_HOMES\ORACLE%ORACLE_HOME_ID_STR%"); modify("SHARED_ORACLE_HOME",shared_oracle_home,"$oracle\ORACLE_HOMES\ORACLE%ORACLE_HOME_ID_STR%"); modify("API","%oracle_home%\DBS","$oracle\ORACLE_HOMES\ORACLE%ORACLE_HOME_ID_STR%"); modify("NLS_LANG",nls_language,"$oracle\ORACLE_HOMES\ORACLE%ORACLE_HOME_ID_STR%"); modify("COMPANY_NAME",selected_customer,"$oracle\ORACLE_HOMES\ORACLE%ORACLE_HOME_ID_STR%"); modify("ORACLE_GROUP_NAME",oracle_group_name,"$oracle\ORACLE_HOMES\ORACLE%ORACLE_HOME_ID_STR%"); multiple_home_aware = TRUE; } /* Then store them in V7 home (under SOFTWARE\ORACLE) */ if (oracle_home_info == default_home_info) { /* create bindings for V7 products */ multiple_home_aware = FALSE; modify("ORACLE_HOME",oracle_home,"$oracle"); modify("ORACLE_HOME_NAME",oracle_home_name,"$oracle"); modify("ORACLE_HOME_SERVICE",oracle_home_service,"$oracle"); modify("SHARED_ORACLE_HOME",shared_oracle_home,"$oracle"); modify("API","%oracle_home%\DBS","$oracle"); modify("NLS_LANG",nls_language,"$oracle"); modify("COMPANY_NAME",selected_customer,"$oracle"); modify("ORACLE_GROUP_NAME",oracle_group_name,"$oracle"); multiple_home_aware = TRUE; } /****************************************************************************/ /* */ /* UPDATE SYSTEM ENVIRONMENT'S PATH VARIABLE WITH ORACLE HOME VALUE */ /* 1. New home created? -> Yes: Next No: Done */ /* 2. New home already in path? -> Yes: Done No: Next */ /* 3. User has admin privileges? -> Yes: Next No: Reboot Message */ /* 4. Make changes to front of path */ /****************************************************************************/ ui_action(update_path); { /* 1. New home created? */ /* create_selected_home is returned from home.vrf */ /* it is true whenever a new V8 home is created */ /* it is also true when updating default home to V8 home */ /* it is false when no new V8 home is created (no new ID generated) */ /* 2. New home already in path? */ /* For NT, look in system environment */ /* For WIN95, look in autoexec.bat instead */ /* Either case, no instantiation takes place */ /* since we don't want to reflect current env. */ /* old_path: complete path extracted */ { if (os_name == "nt") old_path = translate("PATH","$",'STRINGSONLY); else /* os_name = "win95" */ old_path = windows_autoexec_get_value("PATH"); exploded_old_path = explode(old_path,";",'STRINGSONLY); } ['default: { old_path = ""; exploded_old_path = list(""); continue(); } ] oracle_home_bin = "%oracle_home%\bin"; { home_first_in_path = ((first(exploded_old_path)) == oracle_home_bin); } ['empty_list: home_first_in_path = FALSE;] /* 3. User has admin privileges? */ if (not(admin_user)) signal('path_update_warn); /* 4. Compose suggested new path: */ /* Remove oracle_home\bin from all */ /* bindings and then set it in front */ /* Now update the path with new_path */ { if (not(home_first_in_path)) { if (os_name == "nt") { { extract(exploded_old_path,oracle_home_bin); new_path = implode(list(oracle_home_bin, implode(exploded_old_path,";")), ";"); }['empty_list: { new_path = oracle_home_bin; continue(); } ] modify("PATH",new_path,"$"); } else { { windows_autoexec_remove_fragment("PATH",oracle_home_bin); } [ 'default: continue(); ] windows_autoexec_add_fragment("PATH", oracle_home_bin); add(reboot, 'AUTOEXEC); } } } ['STRING_TOO_LONG : signal('path_update_overflow); ] /* PATH UPDATE ENDS */ } ['path_update_warn: { 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."); add(remind_list, path_update_warn); } 'path_update_overflow: { max_binding_length = 127; 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."); add(remind_list, path_update_overflow); } ] /****************************************************************************/ /* */ /* CUSTOMIZE FOR PRODUCT & BUNDLE INSTALLATION SCRIPTS */ /* */ /****************************************************************************/ { execute("user.stp");} ['FILE_NOT_FOUND: { install_type_custom = nls("install_type_custom","Custom Install"); install_type = install_type_custom; } ]#; /****************************************************************************/ /* */ /* UPDATE REGISTRATION FILE FORMATS */ /* */ /****************************************************************************/ 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); ui_action(prepare_installation); 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%%..."); /* Copying nls strings */ create_dir_prompt = nls("create_dir_prompt","Creating %%dest_dir%%..."); copying_file = nls("copying_file","Copying %%file_to_copy%%..."); reboot_prompt0 = nls("reboot_prompt0","Please reboot your computer after you exit the Installer in order for changes to the system path to take effect."); 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..."); 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();] }