/* Copyright (c) Oracle Corporation 1992. All Rights Reserved */ /***************************************************************************** NAME plus80.vrf - V8.0 version analysis/product configuration script for Sql*Plus for Windows Nt/95 8.0 DESCRIPTION This script checks dependencies and environment settings for the installation of Sql*Plus for Windows Nt/95 3.3 OWNER Edan Kabatchnik MODIFIED DD-MMM-YY Reason kpotter 3/98 version update for 805 EE MWWOO 05/23/96 Modified for W32RSF73 verification Aedsinge 07/05/95 - Modified for v3.1 of the installer Aedsinge 06/06/95 - Modified for version 3.3.2, Windows NT/95. Aedsinge 27-APR-95 Modified for Shared Oracle, Windows Sql*Plus 3.1.3.7.2 LMurphy 08-SEP-94 Modified for Windows SQL*Plus 3.1.3.5.x LMurphy 23-MAY-94 Modified for Windows SQL*Plus 3.1.2.2.6 shall 04-FEB-93 Created from RSF 7 vrf file *****************************************************************************/ /***************************************************************************** Bind string variables & prompt strings... *****************************************************************************/ { /* OSM Compliance */ { /* OS variables */ if (platform() == "nt") { prefix = "nt"; instver_name = "ntinstver"; install_name = "ntinstall"; } else { prefix = "w95"; instver_name = "w95instver"; install_name = "w95install"; } instver_prod = evaluate("instver_name"); install_prod = evaluate("install_name"); doit = execute("%installer_home%\%operating_system%.vrf"); } [ 'UNBOUND_VARIABLE: { required_version = product_version(instver_prod); temp = explode(required_version,"."); required_version = implode(list(first(temp),first(rest(temp)), first(rest(rest(temp))), first(rest(rest(rest(temp))))),"."); signal('failure,instantiate(nls("instver_too_early1","The version of the Installer currently running is %%installer_version%%. The installation you have chosen requires version %%required_version%% or later. Please run version %%required_version%% or later in order to perform this installation."))); } ] /* end OSM */ /*******************************************************************/ /* Shared Oracle code */ SHARED_ORACLE_COMPLIANT = TRUE; /* end Shared Oracle code */ /*******************************************************************/ if (doit) { vrf_ratchet = "8.0.5.0.0"; { set_plus80 = FALSE; plus80 = translate("PLUS80","$oracle"); if (not(exists(plus80))) signal('UNBOUND_ENVIRONMENT_VARIABLE); } [ 'OS_ERROR, 'INVALID_FILE_NAME, 'FILE_NOT_FOUND, 'PERMISSION_DENIED, 'UNBOUND_ENVIRONMENT_VARIABLE: { plus80 = "%oracle_home%\PLUS80"; set_plus80 = TRUE; } ] { oracle_group_name = oracle_group_name; } [ 'UNBOUND_VARIABLE: oracle_group_name = nls("oracle_group_name","Oracle for Windows %operating_system%"); ] { set_sqlpath = FALSE; sqlpath = translate("SQLPATH","$oracle"); if (not(exists(sqlpath))) signal('UNBOUND_ENVIRONMENT_VARIABLE); } [ 'OS_ERROR, 'INVALID_FILE_NAME, 'FILE_NOT_FOUND, 'PERMISSION_DENIED, 'UNBOUND_ENVIRONMENT_VARIABLE: { sqlpath = "%ORACLE_HOME%\DBS"; set_sqlpath = true; } ] installing_scripts = nls("installing_scripts", "Installing %%product_label%% Installation Scripts..."); installing_exec = nls("installing_exec", "Installing %%product_label%% Executable..."); installing_msbs = nls("installing_msbs", "Installing %%product_label%% Message Files..."); installing_sql = nls("installing_sql", "Installing %%product_label%% SQL Scripts..."); registering = nls("registering", "Registering %%product_label%%..."); prod_label = nls("prod_label", "Modifying %%product_label%% Environment Variables..."); installing_help = nls("installing_help", "Installing %%product_label%% Help Files..."); plus80_expl = nls("plus80_expl", "%%product_label%% (%plus_exec%) is currently running on this machine. Please close this application before installing %%product_label%%. Silent mode installation of %%product_label%% terminated."); plus80_run = instantiate(nls("plus80_run", "%%product_label%% (%plus_exec%) is currently running on this machine. Please close this application before installing %%product_label%%. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%. Choose CANCEL to terminate the installation of %%product_label%%.")); plus80_inst_term = instantiate(nls("plus80_inst_term", "%%product_label%% installation terminated.")); plus80_run_content = instantiate(nls("plus80_run_content", "%%product_label%% Running")); plus80_run_help = instantiate(nls("plus80_run_help", "The Oracle Installer has detected that %%product_label%% (%plus_exec%) is currently running on this machine. Please close this application before installing %%product_label%%. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%. Choose CANCEL to terminate the installation of %%product_label%%.")); done = FALSE; while(not(done)) { plus_exec = nls("plus_exec", "PLUS80W.EXE"); { move_file("%ORACLE_HOME%\bin\%plus_exec%", "%ORACLE_HOME%\bin\%plus_exec%"); done = TRUE; } [ 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'OS_ERROR, 'WRITE_ERROR: { if (silent_mode) signal('FAILURE, instantiate(plus80_expl)); else information_dialog(instantiate(plus80_run), plus80_run_content, instantiate(plus80_run_help)); } 'FILE_NOT_FOUND: done = TRUE; ] plus_exec = nls("plus_exec", "PLUS80.EXE"); { move_file("%ORACLE_HOME%\bin\%plus_exec%", "%ORACLE_HOME%\bin\%plus_exec%"); done = TRUE; } [ 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'OS_ERROR, 'WRITE_ERROR: { if (silent_mode) signal('FAILURE, instantiate(plus80_expl)); else information_dialog(instantiate(plus80_run), plus80_run_content, instantiate(plus80_run_help)); } 'FILE_NOT_FOUND: done = TRUE; ] } total = 0; /* if (not (registered("w32rsf80"))) */ total = total + verify(w32rsf80); return(total + sum(msg,nls_abbreviation,sql,deinstl,exe, stub, prefs, doc)); } else refresh_map_file = FALSE; return(0); }