All silent-install switches →

SwitchHunt / catalog

Eclipse Temurin JDK - Silent Install Switch

The hand-curated silent install command for Eclipse Temurin JDK on Windows, plus its silent uninstall command - for unattended, quiet, fleet-wide deploys. Copy, paste, ship - smoke-test in a throwaway VM first.

Silent install command

msiexec /i "installer.msi" /qn ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome

Silent uninstall command

msiexec /x "installer.msi" /qn

Replace installer.msi with the actual installer filename (or its full path).

Notes & gotchas

JAVA_HOME is NOT set by default - FeatureJavaHome has to be in ADDLOCAL. Listing ADDLOCAL replaces the defaults, so keep FeatureMain in it. Skip ADDLOCAL=ALL (what winget uses): it adds FeatureOracleJavaSoft, which rewrites the HKLM JavaSoft keys and can hijack an existing Oracle Java. The install folder carries the build number (jdk-21.0.12.101-hotspot for 21.0.12.1+1), so detect on a fixed INSTALLDIR rather than the default path.

Install options

Add any of these to the install command. Values shown are the useful setting; "..." means you supply your own.

OptionWhat it does
INSTALLDIR="C:\Program Files\Temurin\jdk21\"Fixed install path, so detection survives patch updates.
ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHomeJDK + PATH + .jar association + JAVA_HOME.

Lab-tested

On 2026-10-12 we ran the install command above as SYSTEM (how deployment tools run it) on a Windows 11 VM against Eclipse Temurin JDK 21.0.12.1+1, and confirmed the app showed up in Add/Remove Programs - not just that the installer exited 0. The uninstall command above then removed it. Vendors change installers between versions, so smoke-test a new one before you ship it fleet-wide.

FAQ

What is the silent install command for Eclipse Temurin JDK?

Run: msiexec /i "installer.msi" /qn ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome

How do I silently uninstall Eclipse Temurin JDK?

Run: msiexec /x "installer.msi" /qn

Any gotchas installing Eclipse Temurin JDK unattended?

JAVA_HOME is NOT set by default - FeatureJavaHome has to be in ADDLOCAL. Listing ADDLOCAL replaces the defaults, so keep FeatureMain in it. Skip ADDLOCAL=ALL (what winget uses): it adds FeatureOracleJavaSoft, which rewrites the HKLM JavaSoft keys and can hijack an existing Oracle Java. The install folder carries the build number (jdk-21.0.12.101-hotspot for 21.0.12.1+1), so detect on a fixed INSTALLDIR rather than the default path.

What install options does the Eclipse Temurin JDK installer take?

INSTALLDIR=C:\Program Files\Temurin\jdk21\: Fixed install path, so detection survives patch updates. ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome: JDK + PATH + .jar association + JAVA_HOME.

Got a different installer, or one that isn't in this list? Drop it into SwitchHunt and it reads the silent switches right in your browser, nothing uploaded.