Jerry Qassar edited a comment on Bug JENKINS-5408

Mr. Kawaguchi:

This problem is also occurring with JDK 7_06 (configuration: Latest Jenkins, Solaris master, Windows 7 32-bit slave). An example from console output for our build is as follows:

c:\jenkins\tools\JDK\jdk-1.7.0_06\jdk.exe /s /v /qn /L \"c:\jenkins\tools\JDK\jdk-1.7.0_06\jdk.exe.install.log\" REBOOT=ReallySuppress INSTALLDIR=\"c:\jenkins\tools\JDK\jdk-1.7.0_06\" results in an msiexec dialog (which means a hung installation).

Testing indicates that the INSTALLDIR property is the property which is considered invalid. By removing the escapes on the quotes and executing

c:\jenkins\tools\JDK\jdk-1.7.0_06\jdk.exe /s /v /qn /L \"c:\jenkins\tools\JDK\jdk-1.7.0_06\jdk.exe.install.log\" REBOOT=ReallySuppress INSTALLDIR="c:\jenkins\tools\JDK\jdk-1.7.0_06"

The install completes successfully and we can continue with the build process.

(EDIT: I don't think this syntax is exactly correct, either, as I still ended up with an msiexec process hanging. /v and /qn should no longer be necessary either, and you should be able to do this entirely with:

c:\jenkins\tools\JDK\jdk-1.7.0_06\jdk.exe /s /L "c:\jenkins\tools\JDK\jdk-1.7.0_06\jdk.exe.install.log" REBOOT=ReallySuppress INSTALLDIR="c:\jenkins\tools\JDK\jdk-1.7.0_06"

with a potential setting of ADDLOCAL for just the source course and other necessary features.)

The quote escape method used in the original comment, and the spec you mention, are relics from the very old versions of msiexec that were pushed out when JDK 1.5 was new. If you look at the new installers and the pages regarding their use, you can see that a) many of the options are no longer necessary and b) quote escaping for the setting of INSTALLDIR has not been needed for a very long time. It may still be needed for the /L parameter because of the possibility of spaces in your path, but I actually think the quotes are enough now.

In any case, it seems like the single quotes have been removed from the installer call, but not the escapes. Without one, you really shouldn't need the other.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to