-
-
Notifications
You must be signed in to change notification settings - Fork 23
Open
Labels
Description
Expected Behavior
The Microsoft Visual C++ Redistributables are downloaded and installed.
Current Behavior
What is the current behavior?
Since today the the VC Redist downloading has gone wrong. The files are 0 KB.
This command cannot be run due to the error: %1 is not a valid Win32 application.
At line:15 char:5
+ throw $_.Exception.Message
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : OperationStopped: (This command ca...32 application.:String) [], RuntimeException
+ FullyQualifiedErrorId : This command cannot be run due to the error: %1 is not a valid Win32 application.
Steps to Reproduce
Please provide detailed steps for reproducing the issue.
Run this script:
[System.String] $Path = "$Env:SystemDrive\Apps\Microsoft\VcRedist"
#region Script logic
New-Item -Path $Path -ItemType "Directory" -Force -ErrorAction "SilentlyContinue" | Out-Null
# Run tasks/install apps
try {
Write-Information -MessageData ":: Install Microsoft Visual C++ Redistributables" -InformationAction "Continue"
Import-Module -Name "VcRedist" -Force
sleep 10
Get-VcList | Save-VcRedist -Path $Path | Install-VcRedist
# -Silent | Out-Null
}
catch {
throw $_.Exception.Message
}
#endregion
Context
Please provide any relevant information about your setup. This is important in case the issue is not reproducible except for under certain conditions.
- VcRedist Version: Use
Get-Module -ListAvailable VcRedist: 4.1.498 - PowerShell Version: Use
Get-PSVersion: 5.1 - Operating System: Windows 10, 11 and Windows Server 2022
Failure Logs
Please include any relevant log snippets or files here.
