Install features using chocolatey
This commit is contained in:
parent
8812500285
commit
aadc6413ad
|
@ -10,7 +10,7 @@ Start-SoftwareInstaller @PSBoundParameters `
|
|||
foreach ($feature in @("DirectPlay", "NetFx3")) {
|
||||
if ((Get-WindowsOptionalFeature -Online -FeatureName $feature).State -ne "Enabled") {
|
||||
Write-Information "Enabling the ``$feature`` feature…";
|
||||
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName $feature;
|
||||
choco install --source windowsFeatures -y $feature;
|
||||
}
|
||||
|
||||
Install-WingetPackage Nadeo.TrackManiaNationsForever;
|
||||
|
|
|
@ -14,7 +14,7 @@ Start-SoftwareInstaller @PSBoundParameters `
|
|||
foreach ($feature in @("DirectPlay", "NetFx3")) {
|
||||
if ((Get-WindowsOptionalFeature -Online -FeatureName $feature).State -ne "Enabled") {
|
||||
Write-Information "Enabling the ``$feature`` feature…";
|
||||
$null = Enable-WindowsOptionalFeature -Online -All -FeatureName $feature;
|
||||
choco install --source windowsFeatures -y $feature;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue