home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1994. All Rights Reserved */ /************************************************************************ NAME user.stp - user-defined .stp script for Personal Oracle7 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 LMurphy 02/21/95 Added License Agreement check zzerhoun 01/06/95 Remove Chained Install Type handling zzerhoun 01/04/95 Set Bundle_name back awinarsk 01/03/95 Altered default bundle name for testing purposes. zzerhoun 12/23/94 Updated New bundle names zzerhoun 12/19/94 Incorporate clients for all bundles zzerhoun 12/12/94 Created. **************************************************************************/ { /*************************************************************************/ /* Generic Section: Across Bundles */ /* Initialize name variables for each product bundle */ /*************************************************************************/ P_O7 = "Personal Oracle7 for Windows"; P_O7_E = "Personal Oracle7 for Windows Enterprise Edition"; W_O7_W_NT = "Oracle7 Workgroup for Windows NT"; W_O7_NW = "Oracle7 Workgroup for Netware"; E_O7_W_NT = "Oracle7 Enterprise for Windows NT"; E_O7_NW = "Oracle7 Enterprise for Netware"; /*************************************************************************/ /* Specific Section */ /* Specify if web installation or not: default FALSE */ /* Specify what product bundle is being shipped: default "" */ /* Initialize name variables for each product in the bundle */ /*************************************************************************/ /* Installation to the web; by default, assume FALSE */ web_install = TRUE; bundle_name = P_O7; rdbms = "Oracle7 Database"; dbtools = "Database Administration Tools"; sqlplus = "SQL*Plus"; odbc = "Oracle7 ODBC Driver"; objects = "Oracle Objects for OLE"; sqlnet = "SQL*Net Protocol"; docserver = "Oracle7 Server Doc."; docsqlnet = "SQL*Net Protocol Doc."; /*************************************************************************/ /* Display license agreement in case of web install */ /*************************************************************************/ license_not_agreed = instantiate(nls("license_not_agreed", "Oracle 90-day Products License Agreement not accepted. Installation terminated.")); { web_install = web_install; } [ 'UNBOUND_VARIABLE: web_install = FALSE; ] { if (web_install) display_file_dialog("license.txt"); } [ 'CANCEL: signal('FAILURE, license_not_agreed); ] /*************************************************************************/ /* Generic Section: Across Platforms */ /* Initialize nls strings for all (6) possible install types */ /* Initialize nls strings for install_type help messages */ /* */ /* Initialize nls strings for protocol types */ /* Initialize nls strings for protocol_type help messages */ /*************************************************************************/ ui_action(nls("install_type_action","Checking Type of Installation...")); /* Define install_type NLS scripts */ /* Install Type Strings */ install_type_prompt = instantiate(nls("install_type_prompt", "Please choose the type of %%bundle_name%% installation you would like to perform:")); install_type_complete = nls("install_type_complete","Complete Install"); install_type_typical = nls("install_type_Typical","Typical Install"); install_type_minimal = nls("install_type_minimal","Minimal Install"); install_type_develop = nls("install_type_develop","Developer Install"); install_type_dba = nls("install_type_dba","Database Administrator Install"); install_type_custom = nls("install_type_custom","Custom Install"); install_type_chained = nls("install_type_chained","Chained Install"); install_type_content = nls("install_type_content", "Installation Options"); install_type_helpa = instantiate(nls("install_type_helpa", "'%%install_type_complete%%' installs%carriage_return%%%install_type_lista%%")); install_type_helpt = instantiate(nls("install_type_helpt", "'%%install_type_typical%%' installs%carriage_return%%%install_type_listt%%")); install_type_helpm = instantiate(nls("install_type_helpm", "'%%install_type_minimal%%' installs%carriage_return%%%install_type_listm%%")); install_type_helpd = instantiate(nls("install_type_helpd", "'%%install_type_develop%%' installs%carriage_return%%%install_type_listd%%")); install_type_helpb = instantiate(nls("install_type_helpb", "'%%install_type_dba%%' installs%carriage_return%%%install_type_listb%%")); install_type_helpc = instantiate(nls("install_type_helpc", "'%%install_type_custom%%' allows you to choose which products to install, or de-install")); /* Protocol Type Strings */ protocol_type_prompt = nls("protocol_type_prompt", "Please choose the default Oracle network protocol you would like to install:"); protocol_type_tcp = nls("protocol_type_tcp","TCP/IP"); protocol_type_nmp = nls("protocol_type_nmp","Named Pipes"); protocol_type_spx = nls("protocol_type_spx","SPX"); protocol_type_content = nls("protocol_type_content", "Network Protocol Options"); protocol_type_helpt = instantiate(nls("protocol_type_helpt", "'%%protocol_type_tcp%%' installs SQL*Net %%protocol_type_tcp%%")); protocol_type_helpx = instantiate(nls("protocol_type_helpx", "'%%protocol_type_spx%%' installs SQL*Net %%protocol_type_spx%%")); protocol_type_helpp = instantiate(nls("protocol_type_helpp", "'%%protocol_type_nmp%%' installs SQL*Net %%protocol_type_nmp%%")); /*************************************************************************/ /* Specific Section */ /* Specify install types to offer user */ /* Specify corresponding,overall help message */ /*************************************************************************/ if (bundle_name == P_O7) { install_type_choices = list(install_type_complete, install_type_minimal, install_type_custom); install_type_default = install_type_complete; install_type_lista = implode(list(" %rdbms%", " %dbtools%", " %odbc%", " %objects%", " %sqlplus%"), carriage_return); install_type_listm = implode(list(" %rdbms%", " %dbtools%"), carriage_return); install_type_help = instantiate(instantiate(nls("install_type_help","Select the type of installation you would like to perform:%carriage_return%%%install_type_helpa%%%carriage_return%%%install_type_helpm%%%carriage_return%%%install_type_helpc%%."))); } else if (bundle_name == P_O7_E) { install_type_choices = list(install_type_typical, install_type_minimal, install_type_custom); install_type_default = install_type_typical; install_type_listt = implode(list(" %rdbms%", " %dbtools%", " %odbc%", " %objects%", " %sqlplus%", " %sqlnet%"), carriage_return); install_type_listm = implode(list(" %rdbms%", " %dbtools%", " %sqlnet%"), carriage_return); install_type_help = instantiate(instantiate(nls("install_type_help","Select the type of installation you would like to perform:%carriage_return%%%install_type_helpt%%%carriage_return%%%install_type_helpm%%%carriage_return%%%install_type_helpc%%."))); } else if (member(list(W_O7_W_NT,W_O7_NW,E_O7_W_NT,E_O7_NW),bundle_name)) /* "Workgroup Oracle7 Windows NT" */ /* "Workgroup Oracle7 Netware" */ /* "Enterprise Oracle7 Windows NT" */ /* "Enterprise Oracle7 Netware" */ { install_type_choices = list(install_type_typical, install_type_develop, install_type_dba, install_type_custom); install_type_default = install_type_typical; install_type_listt = implode(list(" %dbtools%", " %odbc%", " %objects%", " %sqlplus%", " %sqlnet%", " %docserver%"), carriage_return); install_type_listd = implode(list(" %odbc%", " %objects%", " %sqlplus%", " %sqlnet%", " %docserver%"), carriage_return); install_type_listb = implode(list(" %dbtools%", " %sqlplus%", " %sqlnet%", " %docserver%"), carriage_return); install_type_help = instantiate(instantiate(nls("install_type_help","Select the type of installation you would like to perform:%carriage_return%%%install_type_helpt%%%carriage_return%%%install_type_helpd%%%carriage_return%%%install_type_helpb%%%carriage_return%%%install_type_helpc%%."))); } /*************************************************************************/ /* Generic Section: Across Platforms */ /* Get user selection of install type */ /* Skip user selection if chained installation */ /*************************************************************************/ { if (install_type != install_type_chained) signal('UNBOUND_VARIABLE); } ['UNBOUND_VARIABLE: { install_type = single_selection_dialog(install_type_prompt, install_type_choices, install_type_default, install_type_content, install_type_help); continue(); } ] if (install_type != install_type_custom) { bootstrap = TRUE; /*************************************************************************/ /* Specific Section */ /* Interpret user selection on install type */ /* If custom install, always terminate (bring up installer window) */ /* Otherwise always set bootstrap to TRUE */ /* Specify 'selected_products' based on 'bundle_name' & 'install_type' */ /*************************************************************************/ if (bundle_name == P_O7) { if (install_type == install_type_complete) selected_products = list("winrdbms71","windbtool71","winplus31","winsodbc11","winobject10"); else if (install_type == install_type_minimal) selected_products = list("winrdbms71","windbtool71"); } else if (bundle_name == P_O7_E) { if (install_type == install_type_typical) selected_products = list("winrdbms71","windbtool71","winplus31","winsodbc11","winobject10"); else if (install_type == install_type_minimal) selected_products = list("winrdbms71","windbtool71"); } else if (member(list(W_O7_W_NT,W_O7_NW,E_O7_W_NT,E_O7_NW),bundle_name)) /* "Workgroup Oracle7 Windows NT" */ /* "Workgroup Oracle7 Netware" */ /* "Enterprise Oracle7 Windows NT" */ /* "Enterprise Oracle7 Netware" */ { if (member(list(W_O7_W_NT,E_O7_W_NT),bundle_name)) v1_doc = "ntnettoc11"; else v1_doc = "nwnettoc11"; if (install_type == install_type_chained) selected_products = list("windbtool71","winplus31","winsodbc11","winobject10"); else if (install_type == install_type_typical) selected_products = list("windbtool71","winplus31","winsodbc11","winobject10"); else if (install_type == install_type_develop) selected_products = list("winplus31","winsodbc11","winobject10","windbhlp71",v1_doc); else if (install_type == install_type_dba) selected_products = list("windbtool71","winplus31",v1_doc); } /*************************************************************************/ /* Generic Section: Across Platforms */ /* Get user selection of protocol type */ /* Skip user selection if chained installation */ /*************************************************************************/ if (bundle_name == P_O7) protocol_type = ""; else { ui_action(nls("protocol_type_action","Checking Network Protocol...")); protocol_list = explode(protocols,","); while(not(empty(protocol_list))) { protocol_type = first(protocol_list); if (protocol_type == protocol_type_tcp) add(selected_products,"wintcp11"); else if (protocol_type == protocol_type_spx) add(selected_products,"winspx11"); else if (protocol_type == protocol_type_nmp) add(selected_products,"winnmp11"); else signal('unknown_protocol,"%protocol_type% is not a valid protocol name"); protocol_list = rest(protocol_list); } protocol_type = ""; } ['UNBOUND_VARIABLE: { if (bundle_name == P_O7_E) { protocol_type_choices = list(protocol_type_tcp, protocol_type_spx, protocol_type_nmp); protocol_type_help = instantiate(nls("protocol_type_help","Select the default network protocol you would like to use for %%bundle_name%%:%carriage_return%%%protocol_type_helpt%%%carriage_return%%%protocol_type_helpx%%%carriage_return%%%protocol_type_helpp%%.")); } else if (member(list(W_O7_W_NT,E_O7_W_NT),bundle_name)) /* WINDOWS NT */ { protocol_type_choices = list(protocol_type_nmp, protocol_type_tcp); protocol_type_help = instantiate(nls("protocol_type_help","Select the default network protocol you would like to use for %%bundle_name%%:%carriage_return%%%protocol_type_helpt%%%carriage_return%%%protocol_type_helpp%%.")); } else if (member(list(W_O7_NW,E_O7_NW),bundle_name)) /* NETWARE */ { protocol_type_choices = list(protocol_type_spx, protocol_type_tcp); protocol_type_help = instantiate(nls("protocol_type_help","Select the default network protocol you would like to use for %%bundle_name%%:%carriage_return%%%protocol_type_helpt%%%carriage_return%%%protocol_type_helpx%%.")); } protocol_type = single_selection_dialog( protocol_type_prompt, protocol_type_choices, protocol_type_content, protocol_type_help); } ] if (protocol_type == protocol_type_tcp) add(selected_products,"wintcp11"); else if (protocol_type == protocol_type_spx) add(selected_products,"winspx11"); else if (protocol_type == protocol_type_nmp) add(selected_products,"winnmp11"); add(selected_products,"wininstall"); } }