home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1992, 1993. All Rights Reserved */ /***************************************************************************** NAME spxc11.vrf - DOS V3 installation verification script for SQL*Net SPX. DESCRIPTION This script checks dependencies and environment settings for installation of the DOS SQL*Net SPX product. VERSION 1.1.1.0A OWNER Tony Rodgers MODIFIED DD-MMM-YY Reason trodgers 10-APR-92 Created. Calvin 21-FEB-93 Modified for standalone install. Calvin 22-FEB-93 Port to Windows Calvin 23-FEB-93 Port to DOS *****************************************************************************/ { /***************************************************************************** Set up strings for NLS ... *****************************************************************************/ net1_analyze_comment = nls("net1 analyze comment","Analyzing %%product_label%% Dependencies..."); net1_install_scripts = nls("net1 install scripts","Installing %%product_label%% Installation Scripts..."); net1_install_exes = nls("net1 install exes","Installing %%product_label%% real-mode executable..."); net1_install_pxes = nls("net1 install pxes","Installing %%product_label%% protected-mode executable..."); net1_register_label = nls("net1 register label","Registering %%product_label%%..."); net1_reinstall_prompt01 = nls("net1 reinstall prompt01","The currently installed version of %%product_label%%, %%installed_version%%, is out of date. The most current version is %%current_version%%. Do you wish to update %%product_label%%?"); net1_reinstall_prompt02 = nls("net1 reinstall prompt02","WARNING: Not installing the latest version of %%product_label%%, %%current_version%%, may cause other Oracle products to work improperly."); net1_reinstall_prompt03 = nls("net1 reinstall prompt03","WARNING: The currently installed version of %%product_label%%, %%installed_version%%, is up to date. Are you sure you want to install the old version, %%current_version%%? Doing so may cause other Oracle products to work improperly."); net1_reinstall_prompt04 = nls("net1 reinstall prompt04","Version %%installed_version%% of %%product_label%% has already been installed and is up to date. Would you like to reinstall it?"); /***************************************************************************** Bind string constants ... *****************************************************************************/ product = dosspx11; product_label = product_interface_label(product); /***************************************************************************** Start main logic ... *****************************************************************************/ ui_product(product_label); ui_action(instantiate(net1_analyze_comment)); 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(net1_reinstall_prompt01)); if (not(doit)) if (internally_called) information_dialog(instantiate(net1_reinstall_prompt02)); } else if (not(internally_called)) if (later_version(registry,current_version)) doit = yesno_dialog(instantiate(net1_reinstall_prompt03)); else doit = yesno_dialog(instantiate(net1_reinstall_prompt04)); else doit = FALSE; } if (doit) return(sum(exe,pxe,deinstl)); else return(0); /* return 0 if doit not TRUE */ } /* end .VRF */