Remove unnecessary desktop shortcuts
This commit is contained in:
parent
63d5513817
commit
0d34e3d8bf
2 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ $null = New-Module {
|
||||||
Write-Host "Restoring osu!";
|
Write-Host "Restoring osu!";
|
||||||
Write-Information "Installing osu!";
|
Write-Information "Installing osu!";
|
||||||
choco install -y osu;
|
choco install -y osu;
|
||||||
|
Remove-Item "$env:PUBLIC\Desktop\*osu*";
|
||||||
Write-Information "Restoring files";
|
Write-Information "Restoring files";
|
||||||
$context.Restore($context.SoftwareArchive($softwareName), $path);
|
$context.Restore($context.SoftwareArchive($softwareName), $path);
|
||||||
$configName = "osu!.$env:USERNAME.cfg";
|
$configName = "osu!.$env:USERNAME.cfg";
|
||||||
|
|
|
@ -20,6 +20,7 @@ $null = New-Module {
|
||||||
Push-Location $tempDir;
|
Push-Location $tempDir;
|
||||||
Invoke-WebRequest "https://github.com/ppy/osu/releases/latest/download/install.exe" -OutFile $installerName;
|
Invoke-WebRequest "https://github.com/ppy/osu/releases/latest/download/install.exe" -OutFile $installerName;
|
||||||
Start-Process -Wait -FilePath $installerName;
|
Start-Process -Wait -FilePath $installerName;
|
||||||
|
Remove-Item "~\Desktop\*osu*";
|
||||||
Pop-Location;
|
Pop-Location;
|
||||||
Remove-Item -Recurse $tempDir;
|
Remove-Item -Recurse $tempDir;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue