Skip unpacking of existing files
This commit is contained in:
parent
f58b7895e4
commit
ddb9b2936a
|
@ -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;
|
||||
|
|
|
@ -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*");
|
||||
|
|
Loading…
Reference in a new issue