Skip unpacking of existing files
This commit is contained in:
parent
ab17fa75d6
commit
b273eeec68
2 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ $null = New-Module {
|
||||||
choco install -y osu;
|
choco install -y osu;
|
||||||
$context.RemoveDesktopIcon("*osu*");
|
$context.RemoveDesktopIcon("*osu*");
|
||||||
Write-Information "Restoring files";
|
Write-Information "Restoring files";
|
||||||
$context.Restore($context.SoftwareArchive($softwareName), $path, @("-aoa"));
|
$context.Restore($context.SoftwareArchive($softwareName), $path, @("-aos"));
|
||||||
$configName = "osu!.$env:USERNAME.cfg";
|
$configName = "osu!.$env:USERNAME.cfg";
|
||||||
Write-Information "Renaming user configuration to $configName";
|
Write-Information "Renaming user configuration to $configName";
|
||||||
Push-Location $path;
|
Push-Location $path;
|
||||||
|
|
|
@ -22,7 +22,7 @@ $null = New-Module {
|
||||||
Start-Process -Wait -FilePath $file.FullName -ArgumentList "/S";
|
Start-Process -Wait -FilePath $file.FullName -ArgumentList "/S";
|
||||||
|
|
||||||
Write-Information "Restoring files";
|
Write-Information "Restoring files";
|
||||||
$context.Restore($context.SoftwareArchive($softwareName), $path);
|
$context.Restore($context.SoftwareArchive($softwareName), $path, @("-aos"));
|
||||||
|
|
||||||
Write-Information "Removing desktop icon";
|
Write-Information "Removing desktop icon";
|
||||||
$context.RemoveDesktopIcon("*reWASD*");
|
$context.RemoveDesktopIcon("*reWASD*");
|
||||||
|
|
Loading…
Reference in a new issue