Add log messages

This commit is contained in:
Manuel Thalmann 2023-07-02 13:53:19 +02:00
parent 066d1b50c7
commit 6aceec31ae

View file

@ -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);
}
}