MSFN Forum: Sun Java Runtime Silent Installation - MSFN Forum

Jump to content



Unattended CD/DVD Guide Homepage · MSFN Forum Rules

Welcome to the Applications Installs forum. Make sure you read the forum rules before you start posting.

Links/Requests to warez and/or any illegal material (porn, cracks, serials, etc..) will not be tolerated. Discussion of circumventing WGA/activation/timebombs/keygens or any other illegal activity will also not be tolerated.

We try our best to keep this forum clean of illegal content. If you see any illegal activity use the "report" button you find in every post to report the specific post to the moderators. If you ignore any of the rules you will be banned without notice.

Read Forum Rules
Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Sun Java Runtime Silent Installation Rate Topic: -----

#1 User is offline   kevin_s 

  • Group: Members
  • Posts: 2
  • Joined: 21-December 06

  Posted 21 December 2006 - 02:36 PM

I have written a VBScript to perform a silent installation of the Sun Java Runtime. Given that I've borrowed SO much from these forums, I figured I should register and give something back.

This script installs Java to C:\Program Files\Java. It disables the Java auto-update, disables the creation of the "Java Web Start" shortcut and integrates with Internet Explorer and Firefox.

Assumption : You have this version of the JRE and the Microsoft VM uninstaller. You can google unmsjvm.exe and get a copy.


Option Explicit

Dim oShell, oExec, sCmd, iButton, sProgs

Set oShell = WScript.CreateObject("WScript.Shell")

sProgs = oShell.ExpandEnvironmentStrings("%ProgramFiles%")

iButton = oShell.Popup("Removing Microsoft Java VM",3,"Java Update Tool",0 + 64)

sCmd = "unmsjvm.exe /q"

Set oExec = oShell.Exec(sCmd)

Do While oExec.Status = 0
	 WScript.Sleep 100
Loop

iButton = oShell.Popup("Microsoft Java VM Removed. Now Installing Sun Java VM",3,"Java Update Tool",0 + 64)

sCmd = "jre-1_5_0_10-windows-i586-p-s.exe /s ADDLOCAL=jrecore IEXPLORER=1 MOZILLA=1 INSTALLDIR=C:\Progra~1\Java REBOOT=Suppress JAVAUPDATE=0 WEBSTARTICON=0"

Set oExec = oShell.Exec(sCmd)

Do While oExec.Status = 0
	 WScript.Sleep 100
Loop

iButton = oShell.Popup("Sun Java Runtime Installation Complete.",5,"Java Update Tool",0 + 64)


Enjoy!

Kevin

This post has been edited by kevin_s: 22 December 2006 - 07:52 AM



#2 User is offline   ajua 

  • Custom Installer Maker
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,260
  • Joined: 16-April 05

Posted 22 December 2006 - 11:36 PM

you can also use thie switches to install it silently
setup.exe /s /v/qb /norestart it works for the latest version. you can also export reg entries to save your settings..

#3 User is offline   ricktendo64 

  • Group: Banned Members
  • PipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 2,120
  • Joined: 06-June 06
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 23 December 2006 - 12:02 AM

shark007 also has some silent light installers http://shark.blackteabag.ch/

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy