home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) Oracle Corporation 1992. All Rights Reserved */
- /*****************************************************************************
- NAME
- rsf70.vrf - DOS V3 installation verification script for the Required
- Support Files (RSF).
-
- DESCRIPTION
- This script checks dependencies and environment settings for installation
- of the DOS RSF.
-
- OWNER
- Tony Rodgers
-
- MODIFIED MM/DD/YY Reason
- ekabatch 23-MAR-92 Copied from OS/2.
- trodgers 16-APR-92 Copied from CDROM for V7.
- *****************************************************************************/
- {
- product = dosrsf70;
- product_label = product_interface_label(product);
-
- ui_product(product_label);
- ui_action( instantiate( nls("analyze_depend","Analyzing %product_label% Dependencies...") ) );
-
- doit = TRUE;
-
- 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;
- }
-
- 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 PRO15 is already there and is it pointing to a valid directory? */
- {
- pro15 = v7_translate("PRO15");
-
- if (not(exists(pro15)))
- signal('UNBOUND_ENVIRONMENT_VARIABLE);
- }
- [ 'UNBOUND_ENVIRONMENT_VARIABLE: pro15 = "%oracle_home%\PRO15"; ]
-
- installing_scripts = nls("installing_scripts",
- "Installing %%product_label%% Scripts...");
- installing_msbs = nls("installing_msbs",
- "Installing %%product_label%% Message Files...");
- installing_sql = nls("installing_sql",
- "Installing %%product_label%% SQL Scripts...");
- modifying_config = nls("modifying_config",
- "Modifying %%ora_config%%...");
- registering = nls("registering","Registering %%product_label%%...");
-
- return( sum( deinstl, msg, nls_abbreviation, sql ) );
- }
- else
- return(0);
- }
-