home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1992. All Rights Reserved */ /***************************************************************************** NAME util70.vrf - OS/2 V3 installation verification script for database utilities. DESCRIPTION This script checks dependencies and environment settings for installation of the ORACLE database utilities. OWNER Tony Rodgers MODIFIED DD-MMM-YY Reason kschrait 02/19/93 - Added dialog to ask whether 16 bit or 32 bit executables are needed trodgers 01-APR-92 Created. *****************************************************************************/ { product = os2util70; product_label = product_interface_label(product); ui_product(product_label); ui_action( instantiate( nls("analyze_depend","Analyzing %%product_label%% Dependencies...") ) ); doit = TRUE; /***************************************************************************** Check if the product has already been installed ... *****************************************************************************/ if (registered(product_name(product))) { registry = registration(product_name(product)); current_version = product_version(product); installed_version = registry_version(registry); if (earlier_version(registry,current_version)) { doit = yesno_dialog(instantiate(reinstall_prompt01)); if (not(doit)) if (internally_called) information_dialog(instantiate(reinstall_prompt02)); } else if (not(internally_called)) if (later_version(registry,current_version)) doit = yesno_dialog(instantiate(reinstall_prompt03)); else doit = yesno_dialog(instantiate(reinstall_prompt04)); else doit = FALSE; } /***************************************************************************** Find out whether 32 bit or 16 bit executables are desired *****************************************************************************/ if (doit) { exec_32 = "32 bit"; exec_16 = "16 bit"; exec_prompt = nls("exec_prompt","OS/2 executables for Oracle utilities exist in two formats: OS/2 1.X format (16 bit) and OS/2 2.X format (32 bit). Please select the format you would like to use:"); exec_content = nls("exec_content","Executable Type"); exec_help = nls("exec_help","You are being asked to select whether you need OS/2 1.X (16 bit) or OS/2 2.X (32 bit) executables. OS/2 1.X executables may be run in OS/2 1.X or OS/2 2.X, while OS/2 2.X executables only run in OS/2 2.X."); exec_list = list(exec_32, exec_16); exec_type = single_selection_dialog(exec_prompt,exec_list,exec_32, exec_content,exec_help); } /***************************************************************************** Return total size of files ... *****************************************************************************/ if (doit) { /* Is RDBMS70 is already there and is it pointing to a valid directory? */ { rdbms70 = v7_translate("RDBMS70"); if (not(exists(rdbms70))) signal('UNBOUND_ENVIRONMENT_VARIABLE); } [ 'UNBOUND_ENVIRONMENT_VARIABLE: rdbms70 = "%oracle_home%\RDBMS70"; ] /* Is PLSQL20 is already there and is it pointing to a valid directory? */ { plsql20 = v7_translate("PLSQL20"); if (not(exists(plsql20))) signal('UNBOUND_ENVIRONMENT_VARIABLE); } [ 'UNBOUND_ENVIRONMENT_VARIABLE: plsql20 = "%oracle_home%\PLSQL20"; ] installing_scripts = nls("installing_scripts", "Installing %%product_label%% Scripts..."); installing_executables = nls("installing_executables", "Installing %%product_label%% Executables..."); installing_msbs = nls("installing_msbs", "Installing %%product_label%% Message Files..."); installing_resource = nls("installing_resource", "Installing %%product_label%% Resource Files..."); installing_init = nls("installing_init", "Installing INIT.ORA..."); installing_sql = nls("installing_sql", "Installing %%product_label%% SQL Scripts..."); installing_demo = nls("installing_demo", "Installing %%product_label%% Demonstration Files..."); modifying_config = nls("modifying_config", "Modifying %%ora_config%%..."); creating_stubs = nls("creating_stubs", "Creating %%product_label%% Execution Stubs..."); registering = nls("registering","Registering %%product_label%%..."); return( verify(os2rsf70) + sum( deinstl, exec, exec_type, msg, nls_abbreviation, res, init, sql, demo ) ); } else return(0); }