home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1992. All Rights Reserved */ /***************************************************************************** NAME util70.dei - OS/2 V3 de-installation script for database utilities. DESCRIPTION This script removes the OS/2 database utilities files and un-registers the product. OWNER Tony Rodgers MODIFIED DD-MMM-YY Reason trodgers 01-APR-92 Created. *****************************************************************************/ { registry = registration("os2util70"); 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_exe = nls("deinst_exe","Deinstalling %%registry_label%% Executables..."); 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("os2rsf70")) { dependent = registration("os2rsf70"); 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",exec); 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( "os2install" ) ) ) remove(uiusmsg); ui_action( instantiate( deinst_exe ) ); remove(exec); ui_action( instantiate( deinst_script ) ); remove(deinstl); if (not(registered("os2rdbms70")) && not(registered("os2rsf70"))) { modify("RDBMS70","",ora_config,"="); modify("PLSQL20","",ora_config,"="); } if (not(registered("os2rdbms70"))) { modify("RDBMS_DFLT"," ",ora_config,"="); } } }