Link to home
Start Free TrialLog in
Avatar of GreyHippo
GreyHippo

asked on

Question about deploying Java updates

I will deploying a Java update to 40 clients, I made a batch file with the following contents:

msiexec.exe /i \\Nira-server2\nirait\Deployments\Java\jre1.6.0_24.msi /quiet /norestart /L*v %LOGPATH%\Javainstall.log

Open in new window


and when I run the batch file on a test computer a command windows pops up and I get the following message:

'\\nira-server2\NiraIT\Deployments\Java'
CMD.EXE was started with the above path as the current directory.
UNC paths are not supported.  Defaulting to Windows directory.

C:\WINDOWS>msiexec.exe /i \\Nira-server2\nirait\Deployments\Java\jre1.6.0_24.msi
 /quiet /norestart /L*v \Javainstall.log

Open in new window


Java is updated but how do I get rid of the command window?  Also do I need to copy the MSI file locally (somewhere under c:) or to a mapped network drive?
Avatar of for_yan
for_yan
Flag of United States of America image

It means that cmd.exe does not support \\serverNmae notation
I guess you need to map the location as networl drive to some letter
 
Actually cmd. exe supports command
net
which shiould allow you to map the drive before you rtun instalaltion

Type

net use ?

at the command line
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
you could pipe output to > nul
The only problem is that you don't know which drive leetter would be avaialable
for each of the 40 users, you can select some in the end of the alphabet:

Sonething like that in your batch file should probably work:

net use y: \\Nira-server2
msiexec.exe /i y:\\nirait\Deployments\Java\jre1.6.0_24.msi /quiet /norestart /L*v %LOGPATH%\Javainstall.log
Avatar of GreyHippo
GreyHippo

ASKER

Is there a way to not have the command window popup?
If you make a shortcut to your .bat file
put it on the desktop and then you can edit properties of the shortcut and say
I guess "run minimized" or somthing like that
I think it worked for me this way
Here's a couple other ways to update JAVA(and other apps)


Local Updates Publisher
http://sourceforge.net/apps/mediawiki/localupdatepubl/index.php?title=Main_Page


Privilege Authority
http://www.scriptlogic.com/products/privilegeauthority/elevate-apps.asp

Both are completely free
ASKER CERTIFIED SOLUTION
Avatar of GreyHippo
GreyHippo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
I should have worded my question differently because I forgot to mention that I would be deploying the batch file using Group Policy, because some of peoples comments don't apply when using Group Policy.