Académique Documents
Professionnel Documents
Culture Documents
REM
==================================================================================
REM ODP.NET, Managed Driver Release 12.2.0.1.0 for ODAC 12.2c Release 1 INSTALL
SCRIPT
REM
==================================================================================
REM
REM This batch file installs ODP.NET, Managed Driver
goto :ParseArgs
REM ************
REM INSTALL ODPM
REM ************
:odpm
echo.>> %1\install.log
REM not calling configure.bat as follows since on Win2k when dir names contain
REM a space it has issues when retreiving CURRENT DIR in configure.bat
REM call %1\configure.bat odp.net4 %3
if /i {%2} == {x86} (
pushd %1\odp.net\managed\x86
call configure.bat %MACHINE_WIDE_CONFIG_ODPM%
)
if /i {%2} == {x64} (
pushd %1\odp.net\managed\x64
call configure.bat %MACHINE_WIDE_CONFIG_ODPM%
)
if /i {%2} == {both} (
pushd %1\odp.net\managed\x86
call configure.bat %MACHINE_WIDE_CONFIG_ODPM%
popd
pushd %1\odp.net\managed\x64
call configure.bat %MACHINE_WIDE_CONFIG_ODPM%
)
popd
echo.>> %1\install.log
echo ********************************* >> %1\install.log
echo ODP.NET, Managed Driver installed >> %1\install.log
echo ********************************* >> %1\install.log
echo.>> %1\install.log
goto :EOF
REM =======================
REM Parse Script Arguments
REM =======================
:ParseArgs
if /i {%1} == {} goto :Usage
if /i {%2} == {} goto :Usage
if /i {%1} == {-h} goto :Usage
if /i {%1} == {-help} goto :Usage
echo.>> %1\install.log
:Usage
echo.
echo Usage:
echo install_odpm.bat oracle_home_path platform [machine_wide_configuration]
echo.
echo Required platform argument can be set to : x86, x64, or both
echo Optional machine_wide_configuration argument can be set to : true or false
echo By default, machine_wide_configuration is false.
echo.
echo Example:
echo install_odpm.bat c:\oracle x64 (install but do not configure ODP.NET,
Managed Driver at the machine wide level for x64 applications)
echo install_odpm.bat c:\oracle x86 true (install and configure ODP.NET,
Managed Driver at the machine wide level for x86 applications)
echo install_odpm.bat c:\oracle both true (install and configure ODP.NET,
Managed Driver at the machine wide level for both x86 and x64 applications)
echo.
goto :EOF