home *** CD-ROM | disk | FTP | other *** search
/ Oracle Video Server 3.0.3.1 / OVS_3031_NT.iso / win32 / install / user.stp < prev    next >
Encoding:
Text File  |  1998-02-03  |  8.2 KB  |  177 lines

  1. /* Copyright (c) Oracle Corporation 1998.  All Rights Reserved */
  2.  
  3. /************************************************************************
  4.   NAME
  5.     user.stp - user-defined .stp script
  6.  
  7.   DESCRIPTION
  8.     This script allows users access to their own customizable .stp script.
  9.     It can be used to bypass the installer window and perform a predefined
  10.     installation (e.g. complete, typical, minimal, or custom)
  11.     It initializes boolean 'web_install', string 'install_type', and
  12.     string 'bundle_name' (Personal Oracle7,Personal Oracle7 Entreprise,
  13.     Workgroup Oracle7 NT, Workgroup Oracle7 Netware, Entreprise Oracle7 Nt,
  14.     and Entreprise Oracle7 Netware).
  15.  
  16.   MODIFIED    MM/DD/YY  Reason
  17.     rballer   12/17/97  Updated template user.stp for VSM30/OVS30 install
  18.     zzerhoun  01/11/95  Modified Typical Install to Launch Windows Installer
  19.     zzerhoun  12/12/94  Created.
  20. **************************************************************************/
  21.  
  22. {
  23.  
  24.   /* Check to see if the user is a admin user for NT */
  25.  
  26.   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.");
  27.   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.");
  28.   problem_non_admin_user_content = nls("problem_non_admin_user_content", "Error Processing Problem");
  29.  
  30.   if (non_admin_user)
  31.     signal('FAILURE, instantiate(problem_non_admin_user));
  32.  
  33.   /* Installer boilerplate. */
  34.   problem_error_info=nls( "problem_error_info","A problem occured trying to process the last error." );
  35.   problem_error_info_help=nls( "problem_error_info_help","?html problem_error_info_help" );
  36.   problem_error_info_content=nls( "problem_error_info_content","Error Processing Problem" );
  37.   problem_dlg_help=nls( "problem_dlg_help","?html problem_dlg_help" );
  38.   problem_header_dflt=nls( "problem_header_dflt", "
  39. Platform:       %%operating_system%%
  40. Release:        %%rel_version%%
  41. Product:        %%pname%%
  42. Version:        %%current_version%%
  43.  
  44. Area:           (Installation)
  45.  
  46. Install information:
  47.  
  48. Installer Version:  %%installer_version%%
  49. Installer Script:   %%_line%%
  50. Install Action:     %%Inst_Action%%
  51.  
  52. Stage Home          %%Stage_Home%%
  53. Oracle_Base         %%Oracle_Base%%     (%%OFA_Compliant%%)
  54. Oracle Home         %%Oracle_Home%%
  55. Owner               %%Owner%%
  56. Log                 %%Install_Log%%
  57.  
  58. During installation of the above product the error below is
  59. encountered:
  60. ");
  61.  
  62.   Sys_Macro_Holdfile="%%Oracle_Home%%/orainst/holdfile.log";
  63.   Sys_Macro_Help=nls("Sys_Macro_Help", "?html Sys_Macro_Help" );
  64.   Sys_Macro_Content=nls( "Sys_Macro_Content", "O/S Error" );
  65.   Sys_Macro_Prompt=nls("Sys_Macro_Prompt", "
  66. Error during action '%%_com%%'.
  67.  
  68. Command:  %%_cmd%%
  69.  
  70. ");
  71.   /* Common product installation messages */
  72.   Sys_Macro_Cancel_Prompt=nls("Sys_Macro_Cancel_Prompt", "Installation terminated at user request." );
  73.   Analyze_Depend_Prompt =nls("Analyze_Depend_Prompt", "Analyzing %%product_label%% Dependencies...");
  74.   Analyze_Version_Prompt =nls("Analyze_Version_Prompt", "Analyzing %%product_label%% Version...");
  75.   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.
  76.  
  77. Note: You may also get this error if the Installer registry file has been overwritten");
  78.   Install_Prompt =nls("Install_Prompt", "Installing %%product_label%%...");
  79.   Register_Prompt =nls("Register_Prompt", "Registering %%product_label%%...");
  80.  
  81.   File_Loaded_Msg =nls("File_Loaded_Msg", "Product files loaded.");
  82.   Inst_New =nls("Inst_New", "Install New Product");
  83.   Inst_In_Place =nls("Inst_In_Place", "Add/Upgrade Software");
  84.   Inst_Fresh =nls("Inst_Fresh", "Complete Software/Database Fresh Install");
  85.   Inst_Stage_Only=nls("Inst_Stage_Only", "Build Oracle7 Staging Area");
  86.   Inst_SW =nls("Inst_SW", "Upgrade Software Only");
  87.   Inst_DB_New =nls("Inst_DB_New", "Create New Database Objects");
  88.   Inst_DB_Upgrade =nls("Inst_DB_Upgrade", "Upgrade Existing Database Objects");
  89.   Inst_Maint =nls("Inst_Maint", "Software/Database Maintenance");
  90.   Inst_Deinstall_Patch =nls("Inst_Deinstall_Patch", "De-Install Patch");
  91.   Inst_Deinstall =nls("Inst_Deinstall", "De-Install Software");
  92.   Inst_Doc_Only=nls("Inst_Doc_Only", "Install Documentation Only");
  93.   Install_Doc_Only = false;
  94.   Keep_Stage = true;
  95.   Patch_Install=false;
  96.  
  97.   User_Dflt_File  = "%installer_home%\usrdfl.log";
  98.   Install_Log     = "%installer_home%\install.log";
  99.   Sql_Log         = "%installer_home%\sql.log";
  100.   Make_Log        = "%installer_home%\make.log";
  101.   OS_Log          = "%installer_home%\os.log";
  102.   Debug_Log       = "%installer_home%\debug.log";
  103.  
  104.   {
  105.     Tcpip_Parameters_Hostname = win32_get_value("HKEY_LOCAL_MACHINE",
  106.                                                 "System\CurrentControlSet\Services\Tcpip\Parameters",
  107.                                                 "Hostname");
  108.   }
  109.   [
  110.     'INVALID_KEY,
  111.     'FILE_NOT_FOUND,
  112.     'OS_ERROR:        {Tcpip_Parameters_Hostname = "";}
  113.   ]
  114.   if (length(Tcpip_Parameters_Hostname) == 0) 
  115.     Tcpip_Parameters_Hostname = "localhost";
  116.  
  117.   {
  118.     Tcpip_Parameters_Domain = win32_get_value("HKEY_LOCAL_MACHINE",
  119.                                               "System\CurrentControlSet\Services\Tcpip\Parameters",
  120.                                               "Domain");
  121.   }
  122.   [
  123.     'INVALID_KEY,
  124.     'FILE_NOT_FOUND,
  125.     'OS_ERROR:        {Tcpip_Parameters_Domain = "";}
  126.   ]
  127.   if (length(Tcpip_Parameters_Domain) != 0)
  128.   {
  129.     Tcpip_Parameters_Hostname_Domain = "%Tcpip_Parameters_Hostname%.%Tcpip_Parameters_Domain%";
  130.   }
  131.   else
  132.   {    
  133.     Tcpip_Parameters_Hostname_Domain = "%Tcpip_Parameters_Hostname%";
  134.   }
  135.  
  136.   if (not(exists(User_Dflt_File)))
  137.     modify("","",User_Dflt_File);
  138.  
  139.   ovs_auto_title = nls("ovs_auto_title", "Oracle Video Server Installation Options");
  140.   ovs_auto_bn1 = nls("ovs_auto_bn1", "Install Demonstration Version");
  141.   ovs_auto_bn2 = nls("ovs_auto_bn2", "Install/Uninstall Production Version");
  142.   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.");
  143.   ovs_auto_list = list(ovs_auto_bn1, ovs_auto_bn2);
  144.   ovs_auto_prompt = nls("ovs_auto_prompt", 
  145.             "The demonstration installation is intended for first-time administrators or demonstration systems, and is not appropriate for production systems with multiple streams.");
  146.  
  147.   ovs_auto        = single_selection_dialog(ovs_auto_prompt,
  148.                                             ovs_auto_list, ovs_auto_bn2, 
  149.                                             ovs_auto_title,ovs_auto_help);
  150.  
  151.   /* OVS Specific items */
  152.   ovs_quickie = false;
  153.   bootstrap   = false;
  154.   if (ovs_auto == ovs_auto_bn1)
  155.   {
  156.     ovs_quickie = true;
  157.     bootstrap   = true;
  158.     selected_products = list("ntvsm30", "ntinstall");
  159.   }
  160.  
  161.   /* OWAS specific items */
  162.   Inst_Action = Inst_Fresh;
  163.   webhome_label = nls("webhome_label","Oracle Web Home:");
  164.   /* Oraweb Home */
  165.   oraweb_home   = "%oracle_home%\ows\3.0";
  166.   owh           = oraweb_home;
  167.   ows30         = owh;
  168.   oh            = oracle_home;
  169.   OWA           = "%oracle_home%\ows\admin";
  170.   IDHWH         = 90;
  171.   IDHPD1        = 91;
  172.   ITEMWHLB      = list(IDHWH,  list('UI_LABEL, list(  5, 130, 150, 40), webhome_label));
  173.   ITEMHPD1      = list(IDHPD1, list('UI_LABEL, list(140, 140, 200, 20), oraweb_home));
  174.   add(spec, ITEMWHLB);
  175.   add(spec, ITEMHPD1);
  176. }
  177.