socrata/java — pull request #100 by blt04 (2013-12-12 19:35:47+00:00)
Title: Use escaped quotes for Windows INSTALLDIR

When installing Java on Windows, the Java EXE installer expects that the INSTALLDIR variable to contain quotes if there are spaces in the path. This means quotes need to be escaped on the command line. For example, this does not work:

jre-1.7.0_45-windows-x64.exe /s INSTALLDIR="C:\Program Files\java\jre7"

but this does:

jre-1.7.0_45-windows-x64.exe /s INSTALLDIR=\"C:\Program Files\java\jre7\"

I suspect this is because they are passing the arguments as a string to the MSI.

Since the quotes need to be escaped on the command line, they need to be double escaped in Ruby.