Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: silent install exit codes for windows xp

Re: silent install exit codes for windows xp

From: Rauf Sarwar <rs_arwar_at_hotmail.com>
Date: 22 Jun 2005 07:04:21 -0700
Message-ID: <1119449061.568702.320260@g49g2000cwa.googlegroups.com>

C.Wang0_at_gmail.com wrote:
> I have a problem running performing silent installs and deinstalls of
> Oracle 9i client on Windows xp. The installs/deinstalls always launch
> themselves as a background task. I want to launch the silent install
> and wait for the exit code before continuing on. How do I do that??? I
> have tried changing the oraparam.ini file option mentioned in the
> Installer guide. I currently set BOOTSTRAP=FALSE. I need to automate
> 200 client installs of a whole mess of stuff that includes Oracle.
> Please help.

Setup.exe returns an exit code of 2 but that would be useless to you since it exits right after invoking javaw.exe or jrew.exe (depending on your version) which actually runs in the background. What you need is to determine when this java process finishes. Either you can keep track of the silent install logs or what I would prefer would be to grab hold of the javaw/jrew process id at the time it's launched. Then you can track it. e.g.

If you are using batch script then the above example shows that you get into a loop right after launching setup.exe. Loop will wait until a installer is started (javaw.exe or jrew.exe). The pid is spooled to verify.txt which is accessed from the first token of the only line in the file. Then you enter a 2nd loop and wait for the installer to be done. You would need tlist.exe to do this. You can replace,

tlist|findstr /i /c:"Oracle Universal Installer" >verify.txt with
tlist|findstr /i "javaw.exe jrew.exe" >verify.txt

Doing this you would have to make sure there are no other java processes running before starting the installation.

Regards
/Rauf Received on Wed Jun 22 2005 - 09:04:21 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US