home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1992. All Rights Reserved */ /***************************************************************************** NAME util70.dei - DOS V3 de-installation script for database utilities. DESCRIPTION This script removes the DOS database utilities files and un-registers the product. OWNER Tony Rodgers MODIFIED DD-MMM-YY Reason trodgers 23-MAR-92 Created. trodgers 16-APR-92 Copied from CDROM for V7. *****************************************************************************/ { registry = registration("dosutil70"); registry_label = registry_interface_label(registry); ui_product(registry_label); /***************************************************************************** Bind all nls strings here... *****************************************************************************/ unknown_rdbms70_prompt = nls("unknown_rdbms70_prompt","It is not possible to remove %%product_label%% because of a problem with the RDBMS70 variable in your '%%ora_config%%' file."); unknown_rdbms70_content = nls("unknown_rdbms70_content","Configuration Problem"); unknown_rdbms70_help = nls("unknown_rdbms70_help","In order to remove %%product_label%%, it is necessary to have a correct value for the RDBMS70 variable in your '%%ora_config%%' file. The RDBMS70 variable should point to the directory to which Oracle7 was installed."); unregistering = nls("unregistering","Unregistering %%registry_label%%..."); deinst_stubs = nls("deinst_stubs","Deinstalling %%registry_label%% Multiversion Stubs..."); modifying_config = nls("modifying_config","Modifying %%ora_config%%..."); deinst_demo = nls("deinst_demo","Deinstalling %%registry_label%% Demonstration files..."); deinst_sql = nls("deinst_sql","Deinstalling %%registry_label%% SQL Scripts..."); deinst_init = nls("deinst_init","Deinstalling INIT.ORA..."); deinst_res = nls("deinst_res","Deinstalling %%registry_label%% Resource Files..."); deinst_msb = nls("deinst_msb","Deinstalling %%registry_label%% Message Files..."); deinst_pxe = nls("deinst_pxe","Deinstalling %%registry_label%% Protected Mode Executables..."); modify_config = instantiate( nls("modify_config","Modifying %%ora_config%%...") ); deinst_script = nls("deinst_script","Deinstalling %%registry_label%% Installation Scripts..."); /***************************************************************************** Continue with deinstall operations *****************************************************************************/ 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)); if (doit) { if (registered("dosrsf70")) { dependent = registration("dosrsf70"); unreference(dependent,registry); deinstall(dependent); } ui_product(registry_label); { rdbms70 = v7_translate("RDBMS70"); } [ 'UNBOUND_ENVIRONMENT_VARIABLE: information_dialog(instantiate( unknown_rdbms70_prompt ), unknown_rdbms70_content, instantiate( unknown_rdbms70_help ) ); ] { plsql20 = v7_translate("PLSQL20"); } [ 'UNBOUND_ENVIRONMENT_VARIABLE: plsql20 = "%oracle_home%\PLSQL20"; ] ui_action( instantiate( unregistering ) ); unregister(registry); ui_action( instantiate( deinst_stubs ) ); dos_unstubify("RDBMS",pxe); ui_action( instantiate( modify_config ) ); modify("RDBMS_DFLT"," ",ora_config); if (not(registered("dosrsf70"))) modify("RDBMS70","","%ora_config%","="); ui_action( instantiate( deinst_demo ) ); remove(demo); ui_action( instantiate( deinst_sql ) ); remove(sql); ui_action( deinst_init ); remove(init); ui_action( instantiate( deinst_res ) ); remove(res); ui_action( instantiate( deinst_msb ) ); remove(msg); if ( not( registered( "dosinstall" ) ) ) remove(uiusmsg); ui_action( instantiate( deinst_pxe ) ); remove(pxe); ui_action( instantiate( deinst_script ) ); remove(deinstl); } }