21 lines
579 B
PowerShell
21 lines
579 B
PowerShell
param(
|
|
$Action,
|
|
[hashtable] $Arguments
|
|
)
|
|
|
|
. "$PSScriptRoot/../TrackMania United Forever/Manage.ps1";
|
|
. "$PSScriptRoot/../../Scripts/SoftwareManagement.ps1";
|
|
. "$PSScriptRoot/../../../Common/Scripts/Software.ps1";
|
|
|
|
$parameters = Get-TMForeverInstallerComponents `
|
|
-IconName "TmNationsForever" `
|
|
-UserDirectory "$HOME/Documents/TmForever" `
|
|
-Installer {
|
|
Install-WingetPackage Nadeo.TrackManiaNationsForever;
|
|
};
|
|
|
|
foreach ($key in $PSBoundParameters.Keys) {
|
|
$parameters.Add($key, $PSBoundParameters[$key]);
|
|
}
|
|
|
|
Start-SoftwareInstaller @parameters;
|