home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) Oracle Corporation 1992. All Rights Reserved */
- /*****************************************************************************
- NAME
- rsf70.vrf - OS/2 V3 installation verification script for the Required
- Support Files (RSF).
-
- DESCRIPTION
- This script checks dependencies and environment settings for installation
- of the OS/2 RSF.
-
- OWNER
- Tony Rodgers
-
- MODIFIED MM/DD/YY Reason
- trodgers 10-APR-92 Created.
- *****************************************************************************/
- {
- product = os2rsf70;
- 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;
- }
-
- if (doit)
- {
- /* Is RDBMS70 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 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"; ]
-
- /* Is PRO15 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_dlls = nls("installing_dlls",
- "Installing %%product_label%% Dynamic Link Libraries...");
- 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, dll, msg, nls_abbreviation, sql ) );
- }
- else
- return(0);
- }
-