21 lines
636 B
PowerShell
21 lines
636 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…";
|
|
choco install --source windowsFeatures -y $feature;
|
|
}
|
|
}
|
|
|
|
Install-WingetPackage Nadeo.TrackManiaNationsForever;
|
|
Remove-DesktopIcon "*TmNationsForever*";
|
|
};
|
|
|
|
# ToDo: Add restoration
|