22 lines
665 B
PowerShell
22 lines
665 B
PowerShell
|
param(
|
||
|
$Action,
|
||
|
[hashtable] $Arguments
|
||
|
)
|
||
|
|
||
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
||
|
|
||
|
Start-SoftwareInstaller @PSBoundParameters `
|
||
|
-Installer {
|
||
|
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;
|
||
|
}
|
||
|
|
||
|
Install-WingetPackage Nadeo.TrackManiaNationsForever;
|
||
|
Remove-DesktopIcon "*TmNationsForever*";
|
||
|
}
|
||
|
};
|
||
|
|
||
|
# ToDo: Add restoration
|