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:
and when I run the batch file on a test computer a command windows pops up and I get the following message:
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?
msiexec.exe /i \\Nira-server2\nirait\Deployments\Java\jre1.6.0_24.msi /quiet /norestart /L*v %LOGPATH%\Javainstall.log
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
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?
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
net
which shiould allow you to map the drive before you rtun instalaltion
Type
net use ?
at the command line
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\Jav a\jre1.6.0 _24.msi /quiet /norestart /L*v %LOGPATH%\Javainstall.log
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\Jav
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
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Yep, you probably should!
ASKER
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.
I guess you need to map the location as networl drive to some letter