Skip to content

Instantly share code, notes, and snippets.

@williamjacksn
Last active December 15, 2015 14:09
Show Gist options
  • Save williamjacksn/5272218 to your computer and use it in GitHub Desktop.
Save williamjacksn/5272218 to your computer and use it in GitHub Desktop.
Install 32-bit Java Development Kit and Java Runtime Environment on 32- or 64-bit Windows.
msiexec.exe /package "%~dp0jdk1.7.0_17.msi" /quiet /norestart
goto [%PROCESSOR_ARCHITECTURE%]
goto end
:[x86]
msiexec.exe /package "%ProgramFiles%\Java\jdk1.7.0_17\jre.msi" /quiet /norestart
goto end
:[AMD64]
msiexec.exe /package "%ProgramFiles(x86)%\Java\jdk1.7.0_17\jre.msi" /quiet /norestart
goto end
:end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment