home *** CD-ROM | disk | FTP | other *** search
- /* Copyright (c) Oracle Corporation 1992. All Rights Reserved */
- /*****************************************************************************
- NAME
- winrsf70.dei - V3.0.8.0.2 deinstallation script for Windows Required
- Support Files
-
- DESCRIPTION
- This script deinstalls Windows Required Support Files 7.0.
-
- OWNER
- Edan Kabatchnik
-
- MODIFIED DD-MMM-YY Reason
- ekabatch 07-MAR-92 Normalized.
- ekabatch 28-JAN-92 Created.
- *****************************************************************************/
- {
- registry = registration("winrsf70");
- registry_label = registry_interface_label(registry);
-
- rdbms70_msg = "The RDBMS70 environment variable is not set. You must set this variable before deinstalling.";
- rdbms70_hlp = "This variable was set during the installation of this product in the file %ora_config%. You can set it manually, or reinstall.";
- pro15_msg = "The PRO15 environment variable is not set. You must set this variable before deinstalling.";
- pro15_hlp = "This variable was set during the installation of this product in the file %ora_config%. You can set it manually, or reinstall.";
- contents = "Environment Error";
-
- ui_product(registry_label);
-
- doit = FALSE;
-
- if (unreferenced(registry))
- doit = TRUE;
- else if (not(internally_called))
- if (uniquely_self_referenced(registry))
- doit = TRUE;
- else
- doit = yesno_dialog(instantiate(deinstall_prompt01));
-
- {
- rdbms70 = v7_translate("rdbms70");
-
- {
- if (not(exists(rdbms70)))
- signal('UNBOUND_ENVIRONMENT_VARIABLE);
- }
- [ 'OS_ERROR: signal('UNBOUND_ENVIRONMENT_VARIABLE);
- 'INVALID_FILE_NAME: signal('UNBOUND_ENVIRONMENT_VARIABLE);
- 'PERMISSION_DENIED: signal('UNBOUND_ENVIRONMENT_VARIABLE); ]
- }
- [
- 'UNBOUND_ENVIRONMENT_VARIABLE:
- {
- information_dialog(rdbms70_msg,contents,rdbms70_hlp);
- doit = FALSE;
- }
- ]
-
- {
- pro15 = v7_translate("pro15");
-
- {
- if (not(exists(pro15)))
- signal('UNBOUND_ENVIRONMENT_VARIABLE);
- }
- [ 'OS_ERROR: signal('UNBOUND_ENVIRONMENT_VARIABLE);
- 'INVALID_FILE_NAME: signal('UNBOUND_ENVIRONMENT_VARIABLE);
- 'PERMISSION_DENIED: signal('UNBOUND_ENVIRONMENT_VARIABLE); ]
- }
- [
- 'UNBOUND_ENVIRONMENT_VARIABLE:
- {
- information_dialog(pro15_msg,contents,pro15_hlp);
- doit = FALSE;
- }
- ]
-
- if (doit)
- {
- ui_action( nls("unregistering","Unregistering %registry_label%...") );
- unregister(registry);
-
- ui_action( nls("remove_sql","Removing %registry_label% SQL Scripts...") );
- remove(sql);
-
- ui_action( nls("remove_msb","Removing %registry_label% Message Files...") );
- remove(msg);
-
- ui_action( nls("remove_executables","Removing %registry_label% Executables...") );
- remove(exe);
-
- ui_action( nls("remove_dll","Removing %registry_label% Dynamic Link Libraries...") );
- remove(dll);
-
- ui_action( nls("remove_script","Removing %registry_label% Installation Scripts...") );
- remove(deinstl);
-
- modify("RDBMS70","",ora_config, "Oracle");
- modify("PRO15","",ora_config, "Oracle");
- }
- }
-