Jump to content

Welcome to MSFN Forum
Register now to gain access to all of our features. Once registered and logged in, you will be able to create topics, post replies to existing threads, give reputation to your fellow members, get your own private messenger, post status updates, manage your profile and so much more. This message will be removed once you have signed in.
Login to Account Create an Account



Photo

Cant seem to install Java silently

- - - - -

  • Please log in to reply
4 replies to this topic

#1
dubsdj

dubsdj

    MCITP

  • Member
  • PipPip
  • 238 posts
  • Joined 26-June 07
  • OS:none specified
  • Country: Country Flag
Hi

I have written a batch script to silently install JAVA during the Computer startup. The problem is that the PC just hangs on running startup scripts... it seems like its pausing for
some weird reason, but I can't see anything in the EVENT viewer so I don't know why it's hanging on running startup scripts. The even stranger thing is that on PC's that already have the java update installed then I find that the script runs without an issue.


Here is my script:

@echo off

if exist c:\windows\javaupdates\java18 (goto end)

md c:\windows\javaupdates\java18

rem NOW INSTALL JAVA SILENTLY
rem -----------------------------------------------------------------------------------------------------------

copy /y \\my-server\packages$\Java_Packages\jre-6u18-windows-i586-s.exe c:\windows\javaupdates\java18
start /w c:\windows\javaupdates\java18\jre-6u18-windows-i586-s.exe /s /v"/qn ADDLOCAL=jrecore IEXPLORER=1 MOZILLA=1 INSTALLDIR=c:\windows\javaupdates\java18"


rem ----------------------------------------------------------------------------------------------------------------------------

:end
exit

Edited by dubsdj, 16 February 2010 - 11:07 AM.



How to remove advertisement from MSFN

#2
iamtheky

iamtheky

    Friend of MSFN

  • Member
  • PipPipPipPipPip
  • 866 posts
  • Joined 11-November 08
maybe...


c:\windows\javaupdates\java18\jre-6u18-windows-i586-s.exe /s /v"/qn.......

to

c:\windows\javaupdates\java18\jre-6u18-windows-i586-s.exe /s /v/qn".......


i see examples in both manners, but the latter is the silent command i use.
iamtheKy

#3
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,252 posts
  • Joined 09-September 01
  • OS:Windows 8.1 x64
  • Country: Country Flag
You should probably add debugging prompts into the script so you know exactly where you are on each execution step. I'm betting it's failing on the initial connection to the UNC path for the server, but you'll need some script instrumentation to be sure of where you are exactly, honestly. Given that you're running this as a startup script, assuming it's not a user logon script but a machine startup script, you're connecting to \\server with the computer account, not a user account - if the computer object doesn't have permissions in the share and the NTFS permissions on the data to at least r+x the content, you'll either fail or hang.
MCTS Windows Internals, MCITP Server 2008 EA, MCTS MDT/BDD, MCSE/MCSA Server 2003, Server 2012, Windows 8
--------------------
Please read the rules before posting!
Please consider donating to MSFN to keep it up and running!

#4
dubsdj

dubsdj

    MCITP

  • Member
  • PipPip
  • 238 posts
  • Joined 26-June 07
  • OS:none specified
  • Country: Country Flag

You should probably add debugging prompts into the script so you know exactly where you are on each execution step. I'm betting it's failing on the initial connection to the UNC path for the server, but you'll need some script instrumentation to be sure of where you are exactly, honestly. Given that you're running this as a startup script, assuming it's not a user logon script but a machine startup script, you're connecting to \\server with the computer account, not a user account - if the computer object doesn't have permissions in the share and the NTFS permissions on the data to at least r+x the content, you'll either fail or hang.



I don't think its a server share problem because it is the same share that all packages are deployed via GPO. Also I opened the c: drive of the computer from another location and I could see that the java setup file was copied across successfully onto the computer. I think it's stopping when it attempts to install the software silently.

#5
cluberti

cluberti

    Gustatus similis pullus

  • Supervisor
  • 11,252 posts
  • Joined 09-September 01
  • OS:Windows 8.1 x64
  • Country: Country Flag

I don't think its a server share problem because it is the same share that all packages are deployed via GPO. Also I opened the c: drive of the computer from another location and I could see that the java setup file was copied across successfully onto the computer. I think it's stopping when it attempts to install the software silently.

That would have been useful to know from the beginning ;), although debugging in your scripts is still a recommendation you should consider. If we know the file copied, then yes, it's probably the launcher, and iamtheky's post is probably relevant. Those switches are indeed usually specific and introducing a character out of place can cause the whole thing to go up in smoke.
MCTS Windows Internals, MCITP Server 2008 EA, MCTS MDT/BDD, MCSE/MCSA Server 2003, Server 2012, Windows 8
--------------------
Please read the rules before posting!
Please consider donating to MSFN to keep it up and running!




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users