Skip unpacking of existing files

This commit is contained in:
Manuel Thalmann 2024-03-24 18:17:18 +01:00
parent f58b7895e4
commit ddb9b2936a
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ $null = New-Module {
choco install -y osu;
$context.RemoveDesktopIcon("*osu*");
Write-Information "Restoring files";
$context.Restore($context.SoftwareArchive($softwareName), $path, @("-aoa"));
$context.Restore($context.SoftwareArchive($softwareName), $path, @("-aos"));
$configName = "osu!.$env:USERNAME.cfg";
Write-Information "Renaming user configuration to $configName";
Push-Location $path;

View file

@ -22,7 +22,7 @@ $null = New-Module {
Start-Process -Wait -FilePath $file.FullName -ArgumentList "/S";
Write-Information "Restoring files";
$context.Restore($context.SoftwareArchive($softwareName), $path);
$context.Restore($context.SoftwareArchive($softwareName), $path, @("-aos"));
Write-Information "Removing desktop icon";
$context.RemoveDesktopIcon("*reWASD*");