diff --git a/scripts/Windows/OS/Install.ps1 b/scripts/Windows/OS/Install.ps1 index beb83518..b7c78e1d 100644 --- a/scripts/Windows/OS/Install.ps1 +++ b/scripts/Windows/OS/Install.ps1 @@ -32,7 +32,10 @@ function Invoke-WindowsInstallation([Context] $context) if (-not $context.Get("SoftwarePrerequisitesInstalled")) { Write-Host "Installing prerequisites for installing software"; - choco install -y winget; + + if (-not $(Get-Command winget)) { + choco install -y winget; + } Install-Module -AcceptLicense -Force "NuGet"; Import-Module NuGet;