DISCLAIMER: The information and links provided on this site are my personal notes, based on my limited experience installing, using, and deinstalling Oracle databases and application servers on a variety of computers using Windows NT/2000/XP operating systems. The installation and deinstallation procedures found here can cause irreversable loss of data and may damage your operating system. However, you are welcome to use them AT YOUR OWN RISK. I am in no way responsible for data you lose or operating systems you damage or destroy.
In addition to its opatch utility, Oracle uses the Windows cscript.exe utility to run a javascript program called install.js to apply security patches on its application servers. The cscript utility and the javascript program require several Windows environment variables to be set manually before it will run successfully. Below are the commands to set these envrionment variables. With exception of the ORACLE_HOME variable, they can be copied and pasted into the command prompt window
set ORACLE_HOME=[path to oracle home, e.g d:\oracle\infra904]
set JDK_HOME=%ORACLE_HOME%\jdk
set PATH=%ORACLE_HOME%\bin;%ORACLE_HOME%\jdk\bin;%ORACLE_HOME%\oui\lib\win32;
set PATH=%ORACLE_HOME%\perl\5.6.1\bin\MSWin32-x86;%SystemRoot%\system32;%PATH%
set CLASSPATH=.;jlib\OraInstaller.jar;jlib\xmlparserv2.jar;jlib\jewt4.jar; jlib\share.jar;jlib\srvm.jar;%CLASSPATH%
NOTE: The install.js script is case-sensitive and the ORACLE_HOME envrionment variable must match exactly the path found in the \Program Files\Oracle\Inventory\ContentsXML\inventory.xml file.