Skip to content

Commit bdcedfd

Browse files
RomanithoCopilot
andauthored
Update Sources/Winget-AutoUpdate/functions/Install-Prerequisites.ps1
Co-authored-by: Copilot <[email protected]>
1 parent 687ce6d commit bdcedfd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/Winget-AutoUpdate/functions/Install-Prerequisites.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,10 +43,10 @@ function Install-Prerequisites {
4343
if ($needsInstall) {
4444
try {
4545
Write-ToLog "Installing VC++ Redistributable ($osArch)..."
46-
$url = "https://aka.ms/vs/17/release/VC_redist.$osArch.exe"
46+
$VCRedistUrl = "https://aka.ms/vs/17/release/VC_redist.$osArch.exe"
4747
$installer = "$env:TEMP\VC_redist.$osArch.exe"
4848

49-
Invoke-WebRequest $url -OutFile $installer -UseBasicParsing
49+
Invoke-WebRequest $VCRedistUrl -OutFile $installer -UseBasicParsing
5050
Start-Process -FilePath $installer -ArgumentList "/quiet /norestart" -Wait
5151
Write-ToLog "VC++ $osArch installed successfully." "Green"
5252
}

0 commit comments

Comments
 (0)