-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install-VcRedist expects 'Path' property not provided by Get-VcList #153
Comments
Adding a Note Property (Because Add-Member can't add types to String input objects, you can specify the PassThru parameter to generate an output object) resolves the issue
|
PowerShell Core v7.4.0 exhibits the same behavior:
PS version info:
Able to work around with the same method as above:
|
Use this syntax: Get-VcList | Save-VcList -Path C:\Temp\VcRedist | Install-VcRedist or Get-VcList -Release 2022 -Architecture x64 | Save-VcList -Path C:\Temp\VcRedist | Install-VcRedist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Expected Behavior
Any of the following should install the current VcRedists:
Get-VcList | Install-VcRedist
{$VcList = Get-VcList
Install-VcRedist -VcList $VcList -Silent}
{Get-VcList | Save-VcRedist -Path C:\Dev\Installs\VcRedist
$VcList = Get-VcList
Install-VcRedist -Path C:\Dev\Installs\VcRedist -VcList $VcList -Silent}
Current Behavior
Install fails and Install-VcRedist presents an error.
Failure Information (for bugs)
Get-VcList | Install-VcRedist -Verbose
$VcList = Get-VcList
Install-VcRedist -VcList $VcList -Verbose
Get-VcList | Save-VcRedist -Path C:\Dev\Installs\VcRedist
$VcList = Get-VcList
Install-VcRedist -Path C:\Dev\Installs\VcRedist -VcList $VcList -Verbose
Steps to Reproduce
Context
Get-Module -ListAvailable VcRedist
Get-Module
$PSVersionTable
The text was updated successfully, but these errors were encountered: