Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

silent install Java runtime by script through GPO

Posted on 2007-11-24
7
7,664 Views
Last Modified: 2011-04-14
Hi All,

is there anyone experience silent install software by script through GPO (eg. Java runtime or whatever)?
is yes, can post the code here?

Thanks.
0
Comment
Question by:newexhsh
7 Comments
 
LVL 29

Expert Comment

by:Alan Huseyin Kayahan
ID: 20342636
0
 
LVL 6

Accepted Solution

by:
mmcodefive earned 125 total points
ID: 20342951
For java it is fairly simple. Create a batch file that has the following code below. This installs java 6.3 from the c:\remote local directory. You will need to change that path and the file name if you are installing a different version.

As for GPO you can point to a batch file which is easiest or you can put the whole script in the GPO

Name: "Java Install"
Details: User config disabled
Settings in: Computer Config\Windows Settings\Scripts\Startup
Click add
Script Name: c:\remote\jre-6u3-windows-i586-p-s.exe
Script Parameters: /s /v"/qn ADDLOCAL=jrecore,extra IEXPLORER=1 REBOOT=Suppress JAVAUPDATE=0
c:\remote\jre-6u3-windows-i586-p-s.exe /s /v"/qn ADDLOCAL=jrecore,extra IEXPLORER=1 REBOOT=Suppress JAVAUPDATE=0

Open in new window

0
 

Expert Comment

by:10221022
ID: 20345627
look good, thanks.

The script can be run, but whether it will be run everytime when the computer startup or if the computer already installed the software, it will not run automatically?
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 
LVL 6

Expert Comment

by:mmcodefive
ID: 20346234
I am not sure what you wrote 10221022:, sorry can you rephrase. The script runs on startup. If the Java is already installed the installer will fail gracefully so no need to worry there.
0
 

Expert Comment

by:10221022
ID: 20348696
mmcodefive,

I would like to run  it in domain level, is it possble to exclude severs to install this? Or you suggest to run it by OU?
0
 
LVL 6

Expert Comment

by:mmcodefive
ID: 20352949
OU definately. Not good to do this on servers this way. Do the servers manually or not at all. If you dont browse the web from the servers you have, its not entirely necessary to even have java installed. This really depends on your orginization.
0
 

Expert Comment

by:physics-itsupport
ID: 24959902
You can get an MSI from the downloaded java installer by doing the following:
a. Run the exe, that is it, do not click accept!
b. look in
                    i. XP %APPDATA%\Sun\Java\ jre1.6.0_14
                   ii. Vista C:\Users\username\AppData\LocalLow\Sun\Java\jre1.6.0_14
c. Copy the files to where ever.
d. Cancel the install

Here is the command line for installing in silent mode:
<jre>.exe [/L<language ID>] /s /v/qn" [ADDLOCAL=jrecore[,extra][,other_US] | ALL] [IEXPLORER=1] [NETSCAPE6=1] [MOZILLA=1] [INSTALLDIR=<drive>:\<install_path>] [REBOOT=Suppress] [JAVAUPDATE=0] [WEBSTARTICON=0]"
http://java.sun.com/j2se/1.4.2/docs/guide/plugin/developer_guide/silent.html
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

ADCs have gained traction within the last decade, largely due to increased demand for legacy load balancing appliances to handle more advanced application delivery requirements and improve application performance.
While rebooting windows server 2003 server , it's showing "active directory rebuilding indices please wait" at startup. It took a little while for this process to complete and once we logged on not all the services were started so another reboot is …
This tutorial will walk an individual through the steps necessary to join and promote the first Windows Server 2012 domain controller into an Active Directory environment running on Windows Server 2008. Determine the location of the FSMO roles by lo…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

839 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