::Batch file to setup Oracle client softwares on PC running Windows NT.

@echo off

echo This will setup the following Oracle softwares on PC running Windows NT:

echo.

echo - Oracle Client Softwares versions 7.3, 8.0

echo - Oracle ODBC Drivers versions 7.3, 8.0

echo - Oracle Forms Runtime versions 6.0, 5.0, 4.5

echo - Oracle Reports Runtime versions 6.0, 3.0, 2.5

echo - Oracle Graphics Runtime versions 6.0, 3.0, 2.5

echo.

echo Note: Please make sure you are running Windows NT before proceeding.

echo Otherwise, the setup will fail.

echo.

echo Press [Ctrl]-C to cancel

pause

set logfile=C:\TEMP\OraSetup.txt

set winsys=SYSTEM32

if not exist %windir%\%winsys% set winsys=SYSTEM

if not exist C:\TEMP md C:\TEMP

echo Working . . .

echo [Begin] > %logfile%

echo Importing Registry Information . . . >> %logfile%

:: Import Oracle registry entries

call regedit /s N:\WINAPPS\ORANT\INSTALL\ORACLE.reg

:: Import Oracle 8.0 and 7.3 ODBC driver registry entries

call regedit /s N:\WINAPPS\ORANT\INSTALL\ODBCINST.reg

echo. >> %logfile%

echo Copying System Support DLLs to PC . . . >> %logfile%

xcopy N:\WINAPPS\ORANT\SHRDLL\SYSTEM\*.* %windir%\%winsys% /c/d/f >> %logfile%

xcopy N:\WINAPPS\ORANT\SHRDLL\SYSTEM\WINNT\CTL3D32.DLL %windir%\%winsys% /c/d/f >> %logfile%

echo. >> %logfile%

echo Copying Preference Files to PC . . . >> %logfile%

xcopy N:\WINAPPS\ORANT\ca*.ora C:\TEMP /c/d/f >> %logfile%

echo. >> %logfile%

echo Creating Shortcuts on Start Menu . . . >> %logfile%

xcopy N:\WINAPPS\ORANT\INSTALL\ODBCO80\*.* "%windir%\PROFILES\All Users\Start Menu\Programs\" /c/d/f/s >> %logfile%

echo. >> %logfile%

echo Files are up-to-date if 0 file(s) copied >> %logfile%

echo [End] >> %logfile%

echo.

echo Done. Review the log file %logfile% for possible errors.

echo.

echo Please add "N:\WINAPPS\ORANT\BIN" to the path variable in

echo Start Menu - Settings - Control Panel - System - Environment - Path

echo After which setup will be complete.

echo.

pause

exit

:: End