Skip to content

Commit

Permalink
Update install-jdks-windows.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
lucaspimentel authored Jan 14, 2025
1 parent 81367a6 commit 587a83b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions install-jdks-windows.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ $ProgressPreference = 'SilentlyContinue'
# winget may not be available for a few minutes if you just signed into Windows for the first time
if (-not (Get-Command 'winget.exe' -ErrorAction SilentlyContinue)) {
# this command will ensure it is available.
Write-Host 'WinGet not availalbe. Trying to enable WinGet...'
Add-AppxPackage -RegisterByFamilyName -MainPackage Microsoft.DesktopAppInstaller_8wekyb3d8bbwe -ErrorAction SilentlyContinue
}

Expand Down

0 comments on commit 587a83b

Please sign in to comment.