/* Copyright (c) Oracle Corporation 1994. All Rights Reserved */ /************************************************************************ NAME user.stp - user-defined .stp script for Oracle Forms and Reports for Win32 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. typical or custom) MODIFIED MM/DD/YY Reason tjose 12/23/99 Created. **************************************************************************/ { product_home = current_directory(); osver = operating_system_version(); if (OPERATING_SYSTEM == "nt") { w32install = "ntinstall"; } else { w32install = "w95install"; } { shared_dll = "%shared_oracle_home%\shrdll"; which_product_prompt = nls("which_product_prompt","What product do you wish to install?"); which_product_title = nls("which_product_title", "Oracle Tools"); which_product_st1 = nls("which_product_st1", "Oracle Forms Developer"); which_product_st2 = nls("which_product_st2", "Oracle Forms Server"); which_product_st3 = nls("which_product_st3", "Oracle Reports Developer"); which_product_st4 = nls("which_product_st4", "Oracle Reports Server"); which_product_content = nls("which_product_content", "%which_product_title% Installation Options"); if(operating_system == "win95") { which_product_choices = list(which_product_st1,which_product_st3); which_product_help = nls("which_product_help","There are four products on this CD. * Forms Developer allows you to create forms applications, and test them in a runtime environment. It includes a limited-use copy of the Forms Server. * Similarly, Reports Developer allows you to create reports applications, and test them in a runtime environment. It includes a limited-use copy of the Reports Server."); } else { which_product_choices = list(which_product_st1,which_product_st2,which_product_st3,which_product_st4); which_product_help = nls("which_product_help","There are four products on this CD. * Forms Developer allows you to create forms applications, and test them in a runtime environment. It includes a limited-use copy of the Forms Server. * Forms Server allows you to establish runtime application usage in a three-tier environment. * Similarly, Reports Developer allows you to create reports applications, and test them in a runtime environment. It includes a limited-use copy of the Reports Server. * Reports Server allows you to establish runtime application usage in a three-tier environment."); } which_product_default = which_product_st1; forms_dep_menu_st1=nls("forms_dep_menu_st1","Runtimes for client/server deployment"); forms_dep_menu_st2=nls("forms_dep_menu_st2","Forms Server for Web deployment"); forms_dep_menu_content = nls("forms_dep_menu_content", "Deployment Installation Options"); forms_dep_type_prompt = nls("forms_dep_type_prompt", "What type of forms deployment installation do you want?"); forms_dep_menu_help = nls("forms_dep_menu_help", "Forms Deployment Installation Options -------------------------------------------------- The following are descriptions of the types of installations that can be performed: Runtimes for client/server deployment: Installs run-time tools typically used in a client/server architecture. This machine will function as a Windows client machine. Products installed are: 1) Oracle Forms Runtime 2) Oracle Graphics Runtime & Chart Wizard 3) Oracle Net8 Client 4) SQL*Plus 5) Release Notes 6) Information Navigator 7) Oracle Installer Forms Server for Web deployment: Installs and configures the necessary components to run Oracle Forms applications as web applications on one or more server machines. You will be given options to make this installation a single-machine configuration or part of a multiple-machine configuration using load balancing. The exact components installed depend upon which options you choose."); server_type_prompt=nls("server_type_prompt","What type of server will this be?"); server_menu_content = nls("server_menu_content","Forms Server Installation"); server_menu_help = nls("server_menu_help", "Forms Server Installation In order to install and configure Forms Server correctly, we need to know whether you are installing it on just one machine or on multiple machines. Single machine configuration: Select this option if you are installing Oracle Forms Server on just one machine. Part of a multiple machine configuration: If you choose to install Forms Server as part of a multiple machine configuration for added scalability, you will be prompted for additional information about primary and secondary nodes."); server_menu_st1 = nls("server_menu_st1", "Single machine configuration"); server_menu_st2 = nls("server_menu_st2", "Part of a multiple machine configuration"); multiple_server_menu_prompt = nls("multiple_server_menu_prompt", "What type of node will this machine be?"); multiple_server_menu_content = nls("multiple_server_menu_content", "Server Install: Multiple Machine Configuration"); multiple_server_menu_help = nls("multiple_server_menu_help", "Forms Server: Multiple Machine Configuration When there are multiple machines, one machine acts as the 'Primary Node'. It must have a Web listener running on it, and will receive and process all URL requests to execute Forms applications. It routes each request to the machine which will actually execute the application. This could be one of the 'Secondary Nodes' or possibly the 'Primary Node' itself if Oracle Forms runtime is available on that machine. Primary Node: Select this option if this machine has a web listener and is to receive and process Web URL requests to run Oracle Forms applications. Secondary Node: Select this option to allow this machine to run Oracle Forms applications as directed by the Primary Node. The components installed for each option include: Primary Node: 1) Forms Web CGI 2) Forms Java support files 3) Oracle Net8 Client 4) JInitiator for download 5) Load Balancer Server 6) All components of the Secondary node (optional) Secondary Node: 1) Forms Server and Web runtime 2) Load Balancer Client 3) Oracle Net8 Client 4) Oracle Installer 5) Release Notes 6) Graphics Chart Wizard 7) Graphics Runtime"); multiple_server_menu_st1 = nls("multiple_server_menu_st1", "Primary Node"); multiple_server_menu_st2 = nls("multiple_server_menu_st2", "Secondary Node"); primary_server_menu_prompt = nls("primary_server_menu_prompt", "Where should Oracle Forms applications run?"); primary_server_menu_content = nls("primary_server_menu_content", "Forms Server: Primary Node"); primary_server_menu_help = nls("primary_server_menu_help", "Forms Server: Primary Node Forms applications need not actually run on this primary node. You may choose to allow them to run only on the other machines in your multiple machine configuration (the secondary nodes). Available options for where to run applications are: On the secondary nodes and this primary node: Select this option if you wish to allow Oracle Forms applications to run on this primary node. In this case, the Forms Server and the Load Balancer client will be installed and configured on this node, in addition to the other primary node components. Only on the secondary nodes: Select this option if you do NOT want applications to run on this primary node. You would typically want to choose this option if this machine is a heavily used Web server. In this case, the Forms Server and the Load Balancer client will not be installed on this node."); primary_server_menu_st1 = nls("primary_server_menu_st1", "On the secondary nodes and this primary node "); primary_server_menu_st2 = nls("primary_server_menu_st2", "Only on the secondary nodes"); listener_prompt = nls("listener_prompt", "The Oracle WebDB listener can be installed and configured for you. Alternatively, you may configure and use any Web listener that supports CGI."); listener_menu_st1 = nls("listener_menu_st1","Use Oracle WebDB Listener"); listener_menu_st2 = nls("listener_menu_st2","Use another Web Listener"); listener_menu_content = nls("listener_menu_content","Server: Web Listener"); listener_menu_help = nls("listener_menu_help","Server: Web Listener In order to run Oracle Forms & Reports applications on the Web, a Web listener (HTTP daemon) is required. For your convenience, the Oracle WebDb listener, a light-weight listener which supports CGI, is provided with Oracle Forms & Reports Server. Alternatively, you may use any other Web listener which supports CGI (Common Gateway Interface). Available options for which listener to use are: Use Oracle WebDB listener: Select this option if you want the WebDb listener to be installed and configured for you. Use another web listener: Select this option if you already have another Web listener and would prefer to use that one, or if you are using Oracle Application Server. After the installation is completed you will need to configure some virtual paths with your Web listener for use with Oracle Forms Server. Instructions telling you what to do will be generated during the installation."); listener_menu_choices = list(listener_menu_st1,listener_menu_st2); listener_menu_default = listener_menu_st1; test_forms_server_title = nls("test_forms_server_title","Test Forms Server"); test_forms_server_prompt = nls("test_forms_server_prompt", "Do you want to install Forms Server for testing?%carriage_return% %carriage_return%Please note: this is a restricted licence"); test_forms_server_content = nls("test_forms_server_content", "%test_forms_server_title% Installation Option"); test_forms_server_st1 = nls("test_forms_server_st1", "Yes"); test_forms_server_st2 = nls("test_forms_server_st2", "No"); test_forms_server_help = nls("test_forms_server_help", "If you select 'Yes', the Forms Server will be installed for testing."); test_forms_server_choices = list(test_forms_server_st1, test_forms_server_st2); test_forms_server_default = test_forms_server_st1; test_reports_server_title = nls("test_reports_server_title","Test Reports Server"); test_reports_server_prompt = nls("test_reports_server_prompt", "Do you want to install Reports Server for testing?%carriage_return% %carriage_return%Please note: this is a restricted licence"); test_reports_server_content = nls("test_reports_server_content", "%test_reports_server_title% Installation Option"); test_reports_server_st1 = nls("test_reports_server_st1", "Yes"); test_reports_server_st2 = nls("test_reports_server_st2", "No"); test_reports_server_help = nls("test_reports_server_help", "If you select 'Yes', the Reports Server will be installed for testing."); test_reports_server_choices = list(test_reports_server_st1, test_reports_server_st2); test_reports_server_default = test_reports_server_st1; /***************Global SSI Variables***********************/ install_webdb_listner=FALSE; primary_node_install=FALSE; /***************END Global SSI Variables*******************/ mark { which_product_type = single_selection_dialog(which_product_prompt, which_product_choices, which_product_default, which_product_content, which_product_help); install_option_prompt = nls("install_option_prompt","What type of installation would you like to perform?"); install_option_title = nls("install_option_title", "Installation Type"); install_option_st1 = nls("install_option_st1", "Typical"); install_option_st2 = nls("install_option_st2", "Custom"); install_option_content = nls("install_option_content", "Installation Options"); install_option_help = nls("install_option_help", "'Typical' gives you an automatic installation of an appropriate, workable set of the product's components -- those that are most frequently used. This is the best choice if you are new to the product. 'Custom' is a more complex installation process, and requires some product knowledge. Choose this option only if you require a higher level of control and you have a good understanding of the product components."); install_option_choices = list(install_option_st1,install_option_st2); install_option_default = install_option_st1; mark install_option_type = single_selection_dialog(install_option_prompt, install_option_choices, install_option_default, install_option_content, install_option_help); /* Setting variables to make the product visible or not */ if((which_product_type == which_product_st1)||(which_product_type == which_product_st2)) { forms_install = true; reports_install = false; forms_v = "true"; relnotes_v = "true"; reports_v = "false"; } else { forms_install = false; reports_install = true; forms_v = "false"; reports_v = "true"; relnotes_v = "true"; } /* case 1 (Oracle Forms Developer)*/ /* Case 1A (Oracle Forms Developer - Typical)*/ if(which_product_type == which_product_st1) if(install_option_type == install_option_st1) { mark if(operating_system == "win95") { bootstrap = TRUE; selected_products = list("w32pj60", "w32otm60", "w32qb60", "w32sch60", "w32d2dh60", "w32oin60","w32fdes60","w32frun60","w32fccsnd60", "w32frun60","w32cdesql60", "w32fsql60","w32graph60", "w32pb60","w32ocx60", "w32netclt80","w32net8a80", "w32plus80", "w32relnotef", "%w32install%"); } else { test_forms_server_type = single_selection_dialog(test_forms_server_prompt, test_forms_server_choices, test_forms_server_default, test_forms_server_content, test_forms_server_help); if(test_forms_server_type== test_forms_server_st1) { test_feature = TRUE; bootstrap = TRUE; selected_products = list("w32pj60", "w32otm60", "w32qb60", "w32sch60", "w32d2dh60", "w32oin60","w32cdesql60","w32forms60", "jinit","w32graph60", "w32pb60", "w32ocx60", "w32netclt80", "w32net8a80","w32plus80", "w32relnotef", "%w32install%"); } else { bootstrap = TRUE; selected_products = list("w32pj60", "w32otm60", "w32qb60", "w32sch60", "w32d2dh60", "w32oin60","w32cdesql60", "w32fdes60","w32frun60","w32fapi60","w32fccsnd60", "w32frun60","w32fsql60","w32fjava60","w32graph60", "w32pb60","w32ocx60", "w32netclt80","w32net8a80", "w32plus80", "w32relnotef", "%w32install%"); } } } else /* Case 1B (Oracle Forms Developer - Custom)*/ { /* set the visible flag to true for all the required products. */ } /* End Case 1 */ /* case 2 (Oracle Forms Server)*/ else if(which_product_type == which_product_st2) /* Case 2A (Oracle Forms Server - Typical)*/ if(install_option_type == install_option_st1) { if (operating_system != "nt") mark { bootstrap = TRUE; selected_products = list("w32frun60", "w32grun60", "w32netclt80", "w32net8a80","w32plus80","w32relnotef", "w32oin60","%w32install%", "w32ge60"); } else { /************************************************************************* Dialog showing different Deployment options: o Runtime for Client/Server Deployment o Forms/Reports Server for Web Deployment *************************************************************************/ forms_dep_menu_choices = list(forms_dep_menu_st1, forms_dep_menu_st2); forms_dep_menu_default = forms_dep_menu_st2; forms_dep_menu_type = single_selection_dialog(forms_dep_type_prompt, forms_dep_menu_choices, forms_dep_menu_default, forms_dep_menu_content, forms_dep_menu_help); if (forms_dep_menu_type == forms_dep_menu_st1) mark { bootstrap = TRUE; selected_products = list("w32frun60", "w32grun60", "w32netclt80", "w32net8a80", "w32plus80","w32relnotef","w32oin60", "%w32install%","w32ge60"); } else if (forms_dep_menu_type == forms_dep_menu_st2) mark { server_menu_default = server_menu_st1; server_menu_choices = list(server_menu_st1, server_menu_st2); server_menu_type = single_selection_dialog(server_type_prompt, server_menu_choices,server_menu_default, server_menu_content, server_menu_help); if (server_menu_type == server_menu_st2) mark { multiple_server_menu_default = multiple_server_menu_st2; multiple_server_menu_choices = list(multiple_server_menu_st1, multiple_server_menu_st2); multiple_server_menu_type = single_selection_dialog(multiple_server_menu_prompt, multiple_server_menu_choices, multiple_server_menu_default, multiple_server_menu_content, multiple_server_menu_help); if(multiple_server_menu_type == multiple_server_menu_st2) mark { bootstrap = TRUE; selected_products = list("w32frunw60","d2lc","w32ge60","w32net8a80","%w32install%"); } else mark { primary_node_install = TRUE; primary_server_menu_default = primary_server_menu_st1; primary_server_menu_choices = list(primary_server_menu_st1, primary_server_menu_st2); primary_server_menu_type = single_selection_dialog(primary_server_menu_prompt, primary_server_menu_choices, primary_server_menu_default, primary_server_menu_content, primary_server_menu_help); if(primary_server_menu_type == primary_server_menu_st1) mark { selected_products = list("d2ls","jinit","w32fcgi60", "w32ge60","w32frunw60","d2lc","w32net8a80","%w32install%"); /*listener_menu_type = single_selection_dialog(listener_prompt, listener_menu_choices, listener_menu_default, listener_menu_content, listener_menu_help); if(listener_menu_type == listener_menu_st1) { install_webdb_listner=TRUE; selected_products = cons("w32www21",selected_products); }*/ bootstrap = TRUE; } else mark { selected_products = list("d2ls","jinit","w32fcgi60","w32ge60","w32net8a80","%w32install%"); /* listener_menu_type = single_selection_dialog(listener_prompt, listener_menu_choices, listener_menu_default, listener_menu_content, listener_menu_help); if(listener_menu_type == listener_menu_st1) { install_webdb_listner=TRUE; selected_products = cons("w32www21",selected_products); }*/ bootstrap = TRUE; } } } else mark { selected_products = list("jinit","w32fcgi60","w32ge60","w32frunw60","w32net8a80","%w32install%"); /*listener_menu_type = single_selection_dialog(listener_prompt, listener_menu_choices, listener_menu_default, listener_menu_content, listener_menu_help); if(listener_menu_type == listener_menu_st1) { install_webdb_listner=TRUE; selected_products = cons("w32www21",selected_products); }*/ bootstrap = TRUE; } } else { bootstrap = FALSE; } } } else /* Case 2B (Oracle Forms Server - Custom)*/ { /* set the visible flag to true for all the required products. */ } /* End Case 2 */ /* case 3 (Oracle Reports Developer)*/ else if(which_product_type == which_product_st3) /* Case 3A (Oracle Reports Developer - Typical)*/ if(install_option_type == install_option_st1) { if(operating_system == "win95") { bootstrap = TRUE; selected_products = list("w32pj60", "w32qb60", "w32sch60", "w32ordh60", "w32oin60","w32cdesql60", "w32rccsnd60","w32rdes60","w32rrun60","w32rtc60", "w32rsql60","w32graph60", "w32pb60","w32ocx60", "w32netclt80","w32net8a80", "w32plus80", "w32relnoter", "%w32install%"); } else { test_reports_server_type = single_selection_dialog(test_reports_server_prompt, test_reports_server_choices, test_reports_server_default, test_reports_server_content, test_reports_server_help); if(test_reports_server_type== test_reports_server_st1) { test_feature = TRUE; bootstrap = TRUE; selected_products = list("w32pj60", "w32qb60", "w32sch60", "w32ordh60", "w32oin60", "w32cdesql60", "w32report60","w32graph60", "w32pb60", "w32ocx60", "w32netclt80", "w32net8a80", "w32plus80", "w32relnoter", "%w32install%"); } else { bootstrap = TRUE; selected_products = list("w32pj60", "w32qb60", "w32sch60", "w32ordh60", "w32oin60","w32cdesql60", "w32rccsnd60","w32rdes60","w32rrun60","w32rss60","w32rtc60", "w32rsql60","w32graph60", "w32pb60","w32ocx60", "w32netclt80","w32net8a80", "w32plus80", "w32relnoter", "%w32install%"); } } } /* Case 3B (Oracle Reports Developer - Custom)*/ else { /* set the visible flag to true for all the required products. */ } /* End Case 3 */ /* case 4 (Oracle Reports Server)*/ else if(which_product_type == which_product_st4) /* Case 4A (Oracle Reports Server - Typical)*/ if(install_option_type == install_option_st1) mark { if (operating_system != "nt") mark { bootstrap = TRUE; selected_products = list("w32rrun60", "w32grun60", "w32netclt80", "w32net8a80", "w32plus80","w32relnoter", "w32oin60","%w32install%", "w32ge60"); } else { selected_products = list("w32rcgi60","w32ge60","w32rrun60","w32rmts60", "w32net8a80","%w32install%"); /*listener_menu_type = single_selection_dialog(listener_prompt, listener_menu_choices, listener_menu_default, listener_menu_content, listener_menu_help); if(listener_menu_type == listener_menu_st1) { install_webdb_listner=TRUE; selected_products = cons("w32www21",selected_products); }*/ bootstrap = TRUE; } } else /* Case 4B (Oracle Reports Server - Custom)*/ { /* set the visible flag to true for all the required products. */ } /* End Case 4 */ } } }