home *** CD-ROM | disk | FTP | other *** search
- /* 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
- trodgers 23-MAR-92 Created.
- trodgers 16-APR-92 Copied from CDROM for V7.
- *****************************************************************************/
- {
- product = dosutil70;
- 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;
- }
-
- /*****************************************************************************
- 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_pme = nls("installing_pme",
- "Installing %%product_label%% Protected Mode 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( dosrsf70 ) +
- sum( deinstl, pxe, msg, nls_abbreviation, res, init, sql, demo ) );
- }
- else
- return(0);
- }
-