Add log messages
This commit is contained in:
parent
7275419c1a
commit
a8d55ccd64
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue