Changes
→Silent Java x86 installing on Windows x64: new section
Another example is the installer switches for each major version. Please leave them in place for the earlier versions, when they change with a later version, so that we can see the way things where and how they changed with the next version. This also helps disambiguate when you see somewhere on the web people claiming installer switches behave one way, which may not work for you, you can come here and see that that may have been the case with an earlier version but may not now be the case. All this historic info is a valuable resource.
I will attempt to restore some of this information that may have been lost. [[User:Pete|Pete Boyd]] 23:06, 8 April 2010 (CEST)
== Silent Java x86 installing on Windows x64 ==
Silent install Java x86 from JRE executable file is not possible on Windows x64. It is well-known problem (see http://www.itninja.com/question/failure-exit-code-1619-java-x86).
At present the best way unpacks MANUALY, looks out for *.msi and *.cab, copies them to anywhere and uses as MSI package.
I'm too lazy doing so many actions ;)
Today I find another way - symlink.
<variable name="x86_path" value="C:\Windows\System32\config\systemprofile\AppData\LocalLow" />
<variable name="x64_path" value="C:\Windows\SysWOW64\config\systemprofile\AppData\LocalLow" />
<install cmd='%COMSPEC% /C if not exist "%x86_path%\Sun" mkdir "%x86_path%\Sun"' architecture="x64"/>
<install cmd='%COMSPEC% /C if exist "%x86_path%\Sun\Java" rmdir /S /Q "%x86_path%\Sun\Java"' architecture="x64"/>
<install cmd='%COMSPEC% /C mklink /D %x86_path%\Sun\Java %x64_path%\Sun\Java\' architecture="x64"/>
<install cmd='"%PKG_SOURCE%\jre-%PKG_VERSION%-windows-i586.exe" %PKG_INSTALL_SWITCH%' />
<install cmd='%COMSPEC% /C if not exist "%x86_path%\Sun" mkdir "%x86_path%\Sun"' architecture="x64"/>
<install cmd='%COMSPEC% /C if exist "%x86_path%\Sun\Java" rmdir /S /Q "%x86_path%\Sun\Java"' architecture="x64"/>
<install cmd='%COMSPEC% /C mklink /D %x86_path%\Sun\Java %x64_path%\Sun\Java\' architecture="x64"/>
<install cmd='"%PKG_SOURCE%\jre-%PKG_VERSION%-windows-x64.exe" %PKG_INSTALL_SWITCH%' architecture="x64"/>
Marco Gaiarin
http://lists.wpkg.org/pipermail/wpkg-users/2013-June/009450.html
Sergey Zaikov
http://lists.wpkg.org/pipermail/wpkg-users/2013-August/009490.html