[wpkg-users] Silent Java x86 installing on Windows x64

Sergey mail_of_sergey at mail.ru
Mon Aug 5 16:49:25 CEST 2013


 Hello All!

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"/>

Now I can install Java x86 from JRE executable file SILENTLY!

I test it on Windows 7, NTFS filesystem.

On WinXP mklink uility may not present.


--
Bye
Serg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20130805/2612065f/attachment-0002.html>


More information about the wpkg-users mailing list