home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) Oracle Corporation 1992. All Rights Reserved */
- /*****************************************************************************
- NAME
- util70.vrf - NetWare V3 installation verification script for the ORACLE
- version 7 utils.
-
- DESCRIPTION
- This script checks dependencies and environment settings for installation
- of the ORACLE version 7 utilities.
-
- OWNER
- Tony Rodgers
-
- MODIFIED DD-MMM-YY Reason
- kschrait 02/26/93 - Created
- *****************************************************************************/
- {
- /*****************************************************************************
- Bind string constants ...
- *****************************************************************************/
- /* Is RDBMS70 is already there and is it pointing to a valid directory? */
- {
- rdbms70 = translate("RDBMS70","%SERVER%\SYS:SYSTEM\CONFIG.ORA");
-
- if (not(exists(rdbms70)))
- signal('UNBOUND_ENVIRONMENT_VARIABLE);
- }
- [ 'UNBOUND_ENVIRONMENT_VARIABLE: rdbms70 = "%oracle_home%\RDBMS70";
- 'READ_ERROR : rdbms70 = "%oracle_home%\RDBMS70"; ]
-
- product = nwutil70;
- product_label = product_interface_label(product);
-
- /*****************************************************************************
- Start processing ...
- *****************************************************************************/
- ui_product(product_label);
-
- ui_action( instantiate( nls("analyze_depend","Analyzing %product_label% Dependencies...") ) );
-
- doit = true;
-
- mark
- {
- /*****************************************************************************
- 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;
- }
- }
- /*****************************************************************************
- Return total size of files ...
- *****************************************************************************/
-
- if (doit)
- {
- installing_scripts = nls("installing_scripts",
- "Installing %%product_label%% Scripts...");
- installing_nlms = nls("installing_nlms",
- "Installing %%product_label%% NLMs...");
- installing_msbs = nls("installing_msbs",
- "Installing %%product_label%% Message Files...");
- installing_res = nls("installing_res",
- "Installing %%product_label%% Resource Files...");
- installing_demo = nls("installing_demo",
- "Installing %%product_label%% Demonstration Files...");
- modifying_server_config = nls("modifying_server_config",
- "Modifying %%server%%/%%ora_config%%...");
- modifying_init_ora = nls("modifying_init_ora",
- "Modifying %%RDBMS70%%\INIT.ORA");
- registering = nls("registering","Registering %%product_label%%...");
-
-
- return( sum( deinstl, nlm, msg, nls_abbreviation, res, demo ) );
- }
- else
- return(0);
- }
-