home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1992. All Rights Reserved */ /***************************************************************************** NAME util72.dei - Windows 95 V3 de-installation script for database utilities. DESCRIPTION This script removes the Windows NT database utilities files and un-registers the product. OWNER Tony Rodgers MODIFIED DD-MMM-YY Reason LMurphy 06/20/95 - Modified for Windows 95 and 7.2 syau 07/01/94 - 7.1.3 HA! 04/28/94 - 7.1.2 and 3.0.10.2 Hartenstine 04/21/93 - DESKTOP: Adapt to Windows NT trodgers 01-APR-92 Created. *****************************************************************************/ { { doit = execute("%installer_home%\win95.dei"); } [ 'UNBOUND_VARIABLE: signal('failure,instantiate(nls("instver_too_early2","The version of the Installer currently running is %%installer_version%%. The product(s) you have chosen to deinstall were installed with a later version of the Installer. Please use a later version of the Installer to deinstall these product(s)."))); ] if (doit) { /********************************************************************** Ensure that the necessary environment variables are bound **********************************************************************/ { rdbms72 = v7_translate("rdbms72"); { if (not(exists(RDBMS72))) 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: { variable = "rdbms72"; information_dialog(instantiate(deinstall_prompt02), instantiate(deinstall_content02), instantiate(deinstall_help02)); doit = FALSE; } ] { plsql22 = v7_translate("PLSQL22"); { if (not(exists(plsql22))) 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: { variable = "plsql22"; information_dialog(instantiate(deinstall_prompt02), instantiate(deinstall_content02), instantiate(deinstall_help02)); doit = FALSE; } ] /********************************************************************** Bind all NLS deinstall strings here... **********************************************************************/ unregistering = nls("unregistering","Unregistering %%registry_label%%..."); modifying_config = nls("modifying_config","Modifying Windows 95 Registry..."); 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 ORACLE7 Initialization File..."); 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_dll = nls("deinst_dll","Deinstalling %%registry_label%% DLLs..."); deinst_script = nls("deinst_script","Deinstalling %%registry_label%% Installation Scripts..."); util72_deinst = instantiate(nls("util72_deinst", "Some %%registry_label%% components are currently running on this machine. Please close these applications before deinstalling %%registry_label%%. Choose OK after you have closed all Oracle applications and want to resume the deinstallation of %%registry_label%%. Choose CANCEL to terminate the deinstallation of %%registry_label%%. ")); util72_deinst_term = instantiate(nls("util72_deinst_term", "%%registry_label%% deinstallation terminated.")); util72_deinst_content = instantiate(nls("util72_deinst_content", "%%registry_label%% Components Running")); util72_deinst_help = instantiate(nls("util72_deinst_help", "The Oracle Installer has detected that some %%registry_label%% components are currently running on this machine. Please close these applications before deinstalling %%registry_label%%. Choose OK after you have closed all Oracle applications and want to resume the deinstallation of %%registry_label%%. Choose CANCEL to terminate the deinstallation of %%registry_label%%. ")); /* check to see if util72 components are closed */ done = FALSE; while(not(done)) { move_file("%ORACLE_HOME%\bin\sqldba72.exe", "%ORACLE_HOME%\bin\sqldba72.exe"); move_file("%ORACLE_HOME%\bin\exp72.exe", "%ORACLE_HOME%\bin\exp72.exe"); move_file("%ORACLE_HOME%\bin\imp72.exe", "%ORACLE_HOME%\bin\imp72.exe"); move_file("%ORACLE_HOME%\bin\ocopy72.exe", "%ORACLE_HOME%\bin\ocopy72.exe"); move_file("%ORACLE_HOME%\bin\sqlldr72.exe", "%ORACLE_HOME%\bin\sqlldr72.exe"); move_file("%ORACLE_HOME%\bin\tkprof72.exe", "%ORACLE_HOME%\bin\tkprof72.exe"); move_file("%ORACLE_HOME%\bin\vsrcv.exe", "%ORACLE_HOME%\bin\vsrcv.exe"); move_file("%ORACLE_HOME%\bin\vsbck.exe", "%ORACLE_HOME%\bin\vsbck.exe"); done = TRUE; } [ 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'OS_ERROR, 'WRITE_ERROR: { information_dialog(instantiate(util72_deinst), util72_deinst_content, instantiate(util72_deinst_help)); } 'FILE_NOT_FOUND: done = TRUE; ] /********************************************************************** Continue with the deinstallation **********************************************************************/ if (registered("w95rsf72")) { dependent = registration("w95rsf72"); unreference(dependent,current_registry); deinstall(dependent); } ui_product(registry_label); ui_action(instantiate(deinst_demo)); remove(demo); ui_action(instantiate(deinst_sql)); remove(sql); ui_action(instantiate(deinst_init)); remove(init); ui_action(instantiate(deinst_msb)); remove(msg); ui_action(instantiate(deinst_exe)); remove(exec); ui_action(instantiate(deinst_script)); remove(deinstl); ui_action(instantiate(modifying_config)); modify("ORA_SQLDBA_MODE","",ora_config,(registry_filename(current_registry))); { unreference(registration("w95po7"), current_registry); } [ 'UNREGISTERED_PRODUCT: continue(); ] if (registered("w95po7")) { dependent = registration("w95po7"); unreference(dependent, current_registry); deinstall(dependent); } ui_action(instantiate(unregistering)); unregister(current_registry); permit_retry_operations = FALSE; } }