/* Copyright (c) Oracle Corporation 1995. All Rights Reserved */ /***************************************************************************** NAME jdbc.vrf - V3 version analysis/product configuration script for Windows 95 and Windows NT JDBC 8.0.4 DESCRIPTION This script checks dependencies and environment settings for the installation of Windows 95 and Windows NT JDBC 8.0.4 MODIFIED DD-MMM-YY Reason jewillia 30-MAY-00 install all types if a Designer/Repository install mdevin 09-SEP-97 Creation (from mgresham Solaris scripts) *****************************************************************************/ { /*********************************************************************** Set the VRF-INS script "ratchet" ***********************************************************************/ vrf_ratchet = "8.0.4.0.0"; /* OSM Compliance */ { /* OS variables */ if (platform() == "nt") { prefix = "nt"; instver_name = "ntinstver"; install_name = "ntinstall"; } else { prefix = "w95"; instver_name = "w95instver"; install_name = "w95install"; } instver_prod = evaluate("instver_name"); install_prod = evaluate("install_name"); doit = execute("%installer_home%\%operating_system%.vrf"); } [ 'UNBOUND_VARIABLE: { required_version = product_version(instver_prod); temp = explode(required_version,"."); required_version = implode(list(first(temp),first(rest(temp)), first(rest(rest(temp))), first(rest(rest(rest(temp))))),"."); signal('failure,instantiate(nls("instver_too_early1","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."))); } ] /* end OSM */ if (doit) { /*********************************************************************** Bind variables... ************************************************************************/ which_components_prompt = nls("which_components_prompt", "Select the Oracle8 JDBC Drivers you want to install:"); which_components_content = nls("which_components_content", "Oracle8 JDBC Drivers"); which_components_help = nls("which components_help","Oracle8 JDBC Drivers are a standard set of Java classes, specified by JavaSoft™, providing vendor-independent access to relational data from Java. JDK 1.0 JDBC OCI Driver is a JDBC driver for use with JDK 1.0, which is built on top of a C layer written in OCI. JDK 1.1 JDBC OCI Driver is a JDBC driver for use with JDK 1.1, which is built on top of a C layer written in OCI. JDK 1.0 JDBC Thin Driver is a JDBC driver for use with JDK 1.0, which is written completely in Java. JDK 1.1 JDBC Thin Driver is a JDBC driver for use with JDK 1.1, which is written completely in Java."); /* Names of installable components */ oci10 = nls("oci10", "JDK 1.0 JDBC OCI Driver"); thin10 = nls("thin10", "JDK 1.0 JDBC Thin Driver"); oci11 = nls("oci11", "JDK 1.1 JDBC OCI Driver"); thin11 = nls("thin11", "JDK 1.1 JDBC Thin Driver"); components_list = list(oci10, thin10, oci11, thin11); default_components_list = list(oci10, thin10, oci11, thin11); installing_instal = nls("installing_instal", "Installing %%product_label%% Installation scripts..."); installing_doc = nls("installing_doc", "Installing %%product_label%% Documentation..."); installing_samples = nls("installing_samples", "Installing %%product_label%% Samples..."); installing_lib = nls("installing_lib", "Installing %%product_label%% Libraries..."); installing_oci = nls("installing_oci", "Installing %%product_label%% OCI Library..."); installing_jdk102 = nls("installing_jdk102", "Installing %%product_label%% Classes for JDK 1.0.2..."); installing_jdk111 = nls("installing_jdk111", "Installing %%product_label%% Classes for JDK 1.1.1..."); registering = nls("registering","Registering %%product_label%%..."); selected_components_list = list(); /* [jewillia] - install all types if a Designer/Repository install */ /* If OTT is selected to be installed, install only certain drivers, else display a dialog giving user */ /* a choice which drivers to install. If w32ott80 is unbound, display a dialog box. */ { if((member(selected_products, w32creq72) || member(case_selected_products, w32creq72)) && not(member(selected_products, jdbc))) { add(selected_components_list, oci10); add(selected_components_list, thin10); add(selected_components_list, oci11); add(selected_components_list, thin11); } else if(member(selected_products, w32ott80) && not(member(selected_products, jdbc))) add(selected_components_list, oci11); else { selected_components_list = multiple_selection_dialog (which_components_prompt, components_list, default_components_list, which_components_content, which_components_help); } } ['UNBOUND_VARIABLE: { selected_components_list = multiple_selection_dialog (which_components_prompt, components_list, default_components_list, which_components_content, which_components_help); continue(); } ] jdbc_oci = FALSE; jdbc_jdk102 = FALSE; jdbc_jdk111 = FALSE; if (member(selected_components_list, oci10)) { jdbc_oci = TRUE; jdbc_jdk102 = TRUE; } if (member(selected_components_list, thin10)) { jdbc_jdk102 = TRUE; } if (member(selected_components_list, oci11)) { jdbc_oci = TRUE; jdbc_jdk111 = TRUE; } if (member(selected_components_list, thin11)) { jdbc_jdk111 = TRUE; } /*********************************************************************** Return total size of files depending upon which options were selected for installation... ************************************************************************/ depend_size=0; if (jdbc_oci) { depend_size = depend_size + verify(w32rsf80); } return(sum(instal, lib, oci, doc, samples, jdk102, jdk111) + depend_size); } else { refresh_map_file = FALSE; return(0); } }