We help IT Professionals succeed at work.

Check out our new AWS podcast with Certified Expert, Phil Phillips! Listen to "How to Execute a Seamless AWS Migration" on EE or on your favorite podcast platform. Listen Now

x

Question about deploying Java updates

Medium Priority
802 Views
Last Modified: 2012-06-21
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?
Comment
Watch Question

Awarded 2011
Awarded 2011

Commented:
It means that cmd.exe does not support \\serverNmae notation
I guess you need to map the location as networl drive to some letter
 
Awarded 2011
Awarded 2011

Commented:
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
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
you could pipe output to > nul
Awarded 2011
Awarded 2011

Commented:
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

Author

Commented:
Is there a way to not have the command window popup?
Awarded 2011
Awarded 2011

Commented:
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
DonNetwork Administrator
CERTIFIED EXPERT

Commented:
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
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow)VMware and Virtualization Consultant
CERTIFIED EXPERT
Fellow
Expert of the Year 2017

Commented:
Yep, you probably should!

Author

Commented:
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.
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.