home *** CD-ROM | disk | FTP | other *** search
Wrap
/* Copyright (c) Oracle Corporation 1994. All Rights Reserved */ /***************************************************************************** NAME dbint72.dei - V3 deinstallation script DESCRIPTION This script deinstalls OWNER Zakia Zerhouni MODIFIED DD-MMM-YY Reason LMurphy 16-JUN-95 Modified for Windows 95 LMurphy 23-JAN-95 Modified for use with SQL*Net help zzerhoun 04-JAN-95 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) { { nav72 = v7_translate("NAV72"); { if (not(exists(nav72))) 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 = "NAV72"; information_dialog(instantiate(deinstall_prompt02), instantiate(deinstall_content02), instantiate(deinstall_help02)); doit = FALSE; } ] } if (doit) { /********************************************************************** Bind all NLS deinstall strings here... ***********************************************************************/ unregistering = nls("unregistering", "Unregistering %%registry_label%%..."); deinst_script = nls("deinst_script", "Removing %%registry_label%% Installation Scripts..."); deinst_doc = nls("deinst_doc","Deinstalling %%registry_label%% Help Files..."); deinst_dll = nls("deinst_dll","Deinstalling %%registry_label%% Dynamic Link Libraries..."); deinst_exe = nls("deinst_exe","Deinstalling %%registry_label%% Executables..."); resetting_variables = nls("resetting_variables", "Modifying Windows 95 Registry..."); po7_deinst = instantiate(nls("po7_deinst", "%%registry_label%% (PO7.EXE) is currently running on this machine. Please close this application 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%%. ")); po7_deinst_term = instantiate(nls("po7_deinst_term", "%%registry_label%% deinstallation terminated.")); po7_deinst_content = instantiate(nls("po7_deinst_content", "%%registry_label%% Running")); po7_deinst_help = instantiate(nls("po7_deinst_help", "The Oracle Installer has detected that %%registry_label%% (PO7.EXE) is currently running on this machine. Please close this application 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 th epo7 app is closed */ done = FALSE; while(not(done)) { move_file("%ORACLE_HOME%\bin\po7.exe", "%ORACLE_HOME%\bin\po7.exe"); done = TRUE;} [ 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'OS_ERROR, 'WRITE_ERROR: { information_dialog(instantiate(po7_deinst), po7_deinst_content, instantiate(po7_deinst_help)); signal('FAILURE, instantiate(po7_deinst_term)); } 'FILE_NOT_FOUND: done = TRUE; ] win95_sys_dir = windows_system_directory(); win95_dir = windows_directory(); /********************************************************************** Continue with the deinstallation ***********************************************************************/ permit_retry_operations = TRUE; /******************** Deinstall the product *********************/ ui_action(instantiate(deinst_script)); remove(deinst); ui_action(instantiate(deinst_exe)); remove(exe); ui_action(instantiate(deinst_dll)); remove(dll); remove(sample); ui_action(instantiate(resetting_variables)); { win32_delete_key("HKEY_CURRENT_USER", "Software\ORACLE\Personal Oracle7 Navigator"); } [ 'INVALID_KEY, 'FILE_NOT_FOUND, 'PERMISSION_DENIED, 'OS_ERROR: continue(); ] modify("NAV72","",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); } if (registered("w95rsf72")) { dependent = registration("w95rsf72"); unreference(dependent, current_registry); deinstall(dependent); } /********************* Unregister the product **********************/ ui_action(instantiate(unregistering)); unregister(current_registry); permit_retry_operations = FALSE; } }