Created
March 5, 2025 13:49
-
-
Save lazuee/f0a08e79ec47ae9185e6251e6b567d48 to your computer and use it in GitHub Desktop.
Winget: Install EclipseAdoptium JDK/JRE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$targetVersion = "23" | |
$ids = winget search EclipseAdoptium.Temurin | Where-Object { $_ -match "$targetVersion." } | ForEach-Object { [regex]::Match($_,'((EclipseAdoptium\.Temurin\.[\d]{1,2})\.(?=JDK|JRE)\S+)').Value } | |
$ids | ForEach-Object { winget install -e --id $_ } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment