Skip to content

Commit 4d75d81

Browse files
committed
Merge pull request sous-chefs#131 from criteo-cookbooks/fix_windows_jdk_install
Fix JDK install on Windows.
2 parents 4e6d331 + 78ec1c8 commit 4d75d81

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

recipes/windows.rb

+3-2
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,9 @@
5353
if node['java'].attribute?("java_home")
5454
java_home_win = win_friendly_path(node['java']['java_home'])
5555
# The EXE installer expects escaped quotes, so we need to double escape
56-
# them here.
57-
additional_options = "INSTALLDIR=\\\"#{java_home_win}\\\""
56+
# them here. The final string looks like :
57+
# /v"/qn INSTALLDIR=\"C:\Program Files\Java\""
58+
additional_options = "/v\"/qn INSTALLDIR=\\\"#{java_home_win}\\\"\""
5859

5960
env "JAVA_HOME" do
6061
value java_home_win

0 commit comments

Comments
 (0)