Install the Redistributables¶
A quick install option is provided; however for a custom install of the Visual C++ Redistributables on a local machine, use Install-VcRedist
. This function accepts the array of Visual C++ Redistributables passed from Get-VcList
and installs the Visual C++ Redistributables downloaded to a local path with Save-VcRedist
.
Install-VcRedist
supports both passive installs (default) or silent installs with the -Silent
parameter.
After the Visual C++ Redistributables are installed, the list of installed Visual C++ Redistributables is returned to the pipeline from Get-InstalledVcRedist
.
Parameters¶
Required parameters¶
VcList
- An array containing details of the Visual C++ Redistributables fromGet-VcList
Path
- A folder containing the downloaded Visual C++ Redistributables downloaded withSave-VcList
Optional parameters¶
Silent
- Configures the MDT application quiet install command to be completely silent instead of using the default passive install command line
Examples¶
The following command will install the Visual C++ Redistributables already downloaded locally with Save-VcRedist
to C:\Temp\VcRedist.
$VcList = Get-VcList
Install-VcRedist -Path C:\Temp\VcRedist -VcList $VcList
Fully silent install command line arguments can be specified with the -Silent
parameter when installing the Redistributables.
Install-VcRedist -Path C:\Temp\VcRedist -VcList (Get-VcList) -Silent