Skip to content

Commit

Permalink
[JENKINS-8957] JDK installation influences already installed java ins…
Browse files Browse the repository at this point in the history
…tances
  • Loading branch information
Gili Tzabari committed Sep 18, 2013
1 parent 63bffae commit 4f6e649
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions core/src/main/java/hudson/tools/JDKInstaller.java
Expand Up @@ -242,8 +242,13 @@ I tried to locate exactly how InstallShield parses the arguments (and why it use
+ "\\jdk.exe.install.log\\\"\"");
} else {
// Installed uses Windows Installer (MSI)
args.add(jdkBundle, "/s", "REBOOT=ReallySuppress",
"INSTALLDIR=" + expectedLocation,
args.add(jdkBundle, "/s");

// Create a private JRE by omitting "PublicjreFeature"
// @see http://docs.oracle.com/javase/7/docs/webnotes/install/windows/jdk-installation-windows.html#jdk-silent-installation
args.add("ADDLOCAL=\"ToolsFeature\"");

args.add("REBOOT=ReallySuppress", "INSTALLDIR=" + expectedLocation,
"/L \\\"" + expectedLocation + "\\jdk.exe.install.log\\\"");
}
int r = launcher.launch().cmds(args).stdout(out)
Expand Down

0 comments on commit 4f6e649

Please sign in to comment.