PortValhalla/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1

22 lines
636 B
PowerShell
Raw Normal View History

2024-08-08 02:36:35 +00:00
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…";
2024-08-08 03:20:58 +00:00
choco install --source windowsFeatures -y $feature;
2024-08-08 02:36:35 +00:00
}
}
2024-08-24 02:24:55 +00:00
Install-WingetPackage Nadeo.TrackManiaNationsForever;
Remove-DesktopIcon "*TmNationsForever*";
2024-08-08 02:36:35 +00:00
};
# ToDo: Add restoration