Enforce the activation of DirectPlay

This commit is contained in:
Manuel Thalmann 2023-07-02 17:53:28 +02:00
parent a5bf93f5ed
commit 1354856096
2 changed files with 2 additions and 2 deletions

View file

@ -15,7 +15,7 @@ $null = New-Module {
if (-not (Get-WindowsOptionalFeature -Online -FeatureName $feature).State) {
Write-Information "Enabling the ``$feature`` feature";
Enable-WindowsOptionalFeature -Online -FeatureName $feature;
Enable-WindowsOptionalFeature -Online -All -FeatureName $feature;
}
Write-Information "Installing TrackMania Nations Forever";

View file

@ -14,7 +14,7 @@ $null = New-Module {
Write-Host "Restoring TrackMania United Forever";
if (-not (Get-WindowsOptionalFeature -Online -FeatureName $feature).State) {
Enable-WindowsOptionalFeature -Online -FeatureName $feature;
Enable-WindowsOptionalFeature -Online -All -FeatureName $feature;
}
Write-Information "Determining location of setup file";