From a8d55ccd64079ba9b93df0b04f668fe41b3ee626 Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 2 Jul 2023 13:53:19 +0200 Subject: [PATCH] Add log messages --- .../Windows/Software/TrackMania Nations Forever/Manage.ps1 | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 b/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 index 646953172..4494e2b0e 100644 --- a/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 +++ b/scripts/Windows/Software/TrackMania Nations Forever/Manage.ps1 @@ -14,11 +14,15 @@ $null = New-Module { Write-Host "Restoring TrackMania Nations Forever"; if (-not (Get-WindowsOptionalFeature -Online -FeatureName $feature).State) { + Write-Information "Enabling the ``$feature`` feature"; Enable-WindowsOptionalFeature -Online -FeatureName $feature; } + Write-Information "Installing TrackMania Nations Forever"; winget install -e --id Nadeo.TrackManiaNationsForever; + Write-Information "Removing Desktop Icon"; Remove-Item "$env:PUBLIC\Desktop\*TmNationsForever*"; + Write-Information "Restoring Files"; $context.Restore($context.SoftwareArchive($softwareName), $path); } }