REM This will automatically close IE if open
taskkill /f /im iexplore.exe /t

REM This will install Java 7 update for IE
msiexec /i "%~dp0jre1.7.0_07.msi" /qb /norestart AUTOUPDATECHECK=0 JAVAUPDATE=0 JU=0

 

It works when I execute the .bat file but will not deploy via SCCM 2007. Any assistance would be greatly appreciated as I am not completely familiar with all switches. I also have the CAB file included in the folder.

Answer Summary:
Cancel
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Answers

0

Now I have get so far that i get it to work if I accept the "License agreement" when I verify Java at java.com (You get java installed, do you want accept licens agremant)

Answered 09/10/2012 by: SaiTech
Orange Senior Belt

  • If I test the JAVA on this page http://www.java.com/en/download/testjava.jsp I get the correct version 7u7. but if I use http://www.java.com/en/download/installed.jsp
    this page I have to accept the licens agrement before show me an installed JRE 7u7.
Please log in to comment
0

The script itself looks correct from what I can see. To test this further I would recommend adding /l*v c:\javainstall.log to the end of the msi command. This way we can see if the install actually runs, and if it does, where it gets hung up.

 

Answered 09/07/2012 by: Ben M
Ninth Degree Black Belt

  • Thanks Ben!

    I actually just got it to work using the following in the Command Line:
    msiexec.exe /i "jre1.7.0_07.msi" /qn

    Alson with the CAB file in the folder as well.
  • Cool, glad you got it figured out.
Please log in to comment
Answer this question or Comment on this question for clarity