[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Question about deploying Java updates

Posted on 2011-04-21
10
Medium Priority
?
783 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?
0
Comment
Question by:GreyHippo
  • 4
  • 3
  • 2
  • +1
10 Comments
 
LVL 47

Expert Comment

by:for_yan
ID: 35442842
It means that cmd.exe does not support \\serverNmae notation
I guess you need to map the location as networl drive to some letter
 
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35442862
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
0
 
LVL 124
ID: 35442882
you could pipe output to > nul
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 47

Expert Comment

by:for_yan
ID: 35442906
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
0
 

Author Comment

by:GreyHippo
ID: 35443236
Is there a way to not have the command window popup?
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35443267
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
0
 
LVL 47

Expert Comment

by:Donald Stewart
ID: 35443604
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
0
 

Accepted Solution

by:
GreyHippo earned 0 total points
ID: 35460958
When I deploy the batch file through Group Policy during logon the command windows doesn't popup and even though I am using UNC naming conventon in the batch file the client is still able to find it on the network and run it.

I probably should have tested out a few more scenarios on my end before asking a question

Dstewart,

Thanks for your suggestions, I may try those in the future.
0
 
LVL 124
ID: 35461045
Yep, you probably should!
0
 

Author Closing Comment

by:GreyHippo
ID: 35496449
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.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The top devops trends for 2017 are focused on improved deployment frequency, decreased lead time for change and decreased MTTR.
While Plesk offers many potential benefits to website administrators, including compatibility with Windows Server and other leading technologies, the company has also been working to differentiate it from other control panels for content management…
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
Suggested Courses
Course of the Month19 days, 1 hour left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question