home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1998. All Rights Reserved */ /************************************************************************ NAME user.stp - user-defined .stp script DESCRIPTION This script allows users access to their own customizable .stp script. It can be used to bypass the installer window and perform a predefined installation (e.g. complete, typical, minimal, or custom) It initializes boolean 'web_install', string 'install_type', and string 'bundle_name' (Personal Oracle7,Personal Oracle7 Entreprise, Workgroup Oracle7 NT, Workgroup Oracle7 Netware, Entreprise Oracle7 Nt, and Entreprise Oracle7 Netware). MODIFIED MM/DD/YY Reason rballer 12/17/97 Updated template user.stp for VSM30/OVS30 install zzerhoun 01/11/95 Modified Typical Install to Launch Windows Installer zzerhoun 12/12/94 Created. **************************************************************************/ { /* Check to see if the user is a admin user for NT */ problem_non_admin_user = nls("problem_non_admin_user", "You must login to Windows NT with a user id that has administrative privileges on this machine. Please logout and log back into this machine with a user id that has admin privileges."); problem_non_admin_user_help = nls("problem_non_admin_user", "To successfully process this installation, you must login to this machine with a user id that has administrative privileges."); problem_non_admin_user_content = nls("problem_non_admin_user_content", "Error Processing Problem"); if (non_admin_user) signal('FAILURE, instantiate(problem_non_admin_user)); /* Installer boilerplate. */ problem_error_info=nls( "problem_error_info","A problem occured trying to process the last error." ); problem_error_info_help=nls( "problem_error_info_help","?html problem_error_info_help" ); problem_error_info_content=nls( "problem_error_info_content","Error Processing Problem" ); problem_dlg_help=nls( "problem_dlg_help","?html problem_dlg_help" ); problem_header_dflt=nls( "problem_header_dflt", " Platform: %%operating_system%% Release: %%rel_version%% Product: %%pname%% Version: %%current_version%% Area: (Installation) Install information: Installer Version: %%installer_version%% Installer Script: %%_line%% Install Action: %%Inst_Action%% Stage Home %%Stage_Home%% Oracle_Base %%Oracle_Base%% (%%OFA_Compliant%%) Oracle Home %%Oracle_Home%% Owner %%Owner%% Log %%Install_Log%% During installation of the above product the error below is encountered: "); Sys_Macro_Holdfile="%%Oracle_Home%%/orainst/holdfile.log"; Sys_Macro_Help=nls("Sys_Macro_Help", "?html Sys_Macro_Help" ); Sys_Macro_Content=nls( "Sys_Macro_Content", "O/S Error" ); Sys_Macro_Prompt=nls("Sys_Macro_Prompt", " Error during action '%%_com%%'. Command: %%_cmd%% "); /* Common product installation messages */ Sys_Macro_Cancel_Prompt=nls("Sys_Macro_Cancel_Prompt", "Installation terminated at user request." ); Analyze_Depend_Prompt =nls("Analyze_Depend_Prompt", "Analyzing %%product_label%% Dependencies..."); Analyze_Version_Prompt =nls("Analyze_Version_Prompt", "Analyzing %%product_label%% Version..."); depend_not_installed_mesg =nls("Depend_Not_Installed_Mesg", "'%%_pname%%' software is not available in the current distribution source and has not been installed. You must obtain and install '%%_pname%%' software from some other source first. Note: You may also get this error if the Installer registry file has been overwritten"); Install_Prompt =nls("Install_Prompt", "Installing %%product_label%%..."); Register_Prompt =nls("Register_Prompt", "Registering %%product_label%%..."); File_Loaded_Msg =nls("File_Loaded_Msg", "Product files loaded."); Inst_New =nls("Inst_New", "Install New Product"); Inst_In_Place =nls("Inst_In_Place", "Add/Upgrade Software"); Inst_Fresh =nls("Inst_Fresh", "Complete Software/Database Fresh Install"); Inst_Stage_Only=nls("Inst_Stage_Only", "Build Oracle7 Staging Area"); Inst_SW =nls("Inst_SW", "Upgrade Software Only"); Inst_DB_New =nls("Inst_DB_New", "Create New Database Objects"); Inst_DB_Upgrade =nls("Inst_DB_Upgrade", "Upgrade Existing Database Objects"); Inst_Maint =nls("Inst_Maint", "Software/Database Maintenance"); Inst_Deinstall_Patch =nls("Inst_Deinstall_Patch", "De-Install Patch"); Inst_Deinstall =nls("Inst_Deinstall", "De-Install Software"); Inst_Doc_Only=nls("Inst_Doc_Only", "Install Documentation Only"); Install_Doc_Only = false; Keep_Stage = true; Patch_Install=false; User_Dflt_File = "%installer_home%\usrdfl.log"; Install_Log = "%installer_home%\install.log"; Sql_Log = "%installer_home%\sql.log"; Make_Log = "%installer_home%\make.log"; OS_Log = "%installer_home%\os.log"; Debug_Log = "%installer_home%\debug.log"; { Tcpip_Parameters_Hostname = win32_get_value("HKEY_LOCAL_MACHINE", "System\CurrentControlSet\Services\Tcpip\Parameters", "Hostname"); } [ 'INVALID_KEY, 'FILE_NOT_FOUND, 'OS_ERROR: {Tcpip_Parameters_Hostname = "";} ] if (length(Tcpip_Parameters_Hostname) == 0) Tcpip_Parameters_Hostname = "localhost"; { Tcpip_Parameters_Domain = win32_get_value("HKEY_LOCAL_MACHINE", "System\CurrentControlSet\Services\Tcpip\Parameters", "Domain"); } [ 'INVALID_KEY, 'FILE_NOT_FOUND, 'OS_ERROR: {Tcpip_Parameters_Domain = "";} ] if (length(Tcpip_Parameters_Domain) != 0) { Tcpip_Parameters_Hostname_Domain = "%Tcpip_Parameters_Hostname%.%Tcpip_Parameters_Domain%"; } else { Tcpip_Parameters_Hostname_Domain = "%Tcpip_Parameters_Hostname%"; } if (not(exists(User_Dflt_File))) modify("","",User_Dflt_File); ovs_auto_title = nls("ovs_auto_title", "Oracle Video Server Installation Options"); ovs_auto_bn1 = nls("ovs_auto_bn1", "Install Demonstration Version"); ovs_auto_bn2 = nls("ovs_auto_bn2", "Install/Uninstall Production Version"); ovs_auto_help = nls("ovs_auto_help", "If you choose 'Install Demonstration Version', no further configuration questions will be asked. The Oralce Installer will automatically install a default configuration of Oracle Video Server for you. The Demonstration Version provides a correct environment for experimentation prior to installing the Production Version. It is intended for first-time administrators or demonstration systems, and it is not appropriate for production systems with multiple streams. If you choose 'Install/Uninstall Production Version', you will be connected with the Software Asset Manager screen. From there, you can install or uninstall any of the available products."); ovs_auto_list = list(ovs_auto_bn1, ovs_auto_bn2); ovs_auto_prompt = nls("ovs_auto_prompt", "The demonstration installation is intended for first-time administrators or demonstration systems, and is not appropriate for production systems with multiple streams."); ovs_auto = single_selection_dialog(ovs_auto_prompt, ovs_auto_list, ovs_auto_bn2, ovs_auto_title,ovs_auto_help); /* OVS Specific items */ ovs_quickie = false; bootstrap = false; if (ovs_auto == ovs_auto_bn1) { ovs_quickie = true; bootstrap = true; selected_products = list("ntvsm30", "ntinstall"); } /* OWAS specific items */ Inst_Action = Inst_Fresh; webhome_label = nls("webhome_label","Oracle Web Home:"); /* Oraweb Home */ oraweb_home = "%oracle_home%\ows\3.0"; owh = oraweb_home; ows30 = owh; oh = oracle_home; OWA = "%oracle_home%\ows\admin"; IDHWH = 90; IDHPD1 = 91; ITEMWHLB = list(IDHWH, list('UI_LABEL, list( 5, 130, 150, 40), webhome_label)); ITEMHPD1 = list(IDHPD1, list('UI_LABEL, list(140, 140, 200, 20), oraweb_home)); add(spec, ITEMWHLB); add(spec, ITEMHPD1); }