Remove unnecessary desktop shortcuts

This commit is contained in:
Manuel Thalmann 2023-07-02 23:31:56 +02:00
parent a9ef2bfb04
commit a3ace6746a
2 changed files with 2 additions and 0 deletions

View file

@ -18,6 +18,7 @@ $null = New-Module {
Write-Host "Restoring osu!";
Write-Information "Installing osu!";
choco install -y osu;
Remove-Item "$env:PUBLIC\Desktop\*osu*";
Write-Information "Restoring files";
$context.Restore($context.SoftwareArchive($softwareName), $path);
$configName = "osu!.$env:USERNAME.cfg";

View file

@ -20,6 +20,7 @@ $null = New-Module {
Push-Location $tempDir;
Invoke-WebRequest "https://github.com/ppy/osu/releases/latest/download/install.exe" -OutFile $installerName;
Start-Process -Wait -FilePath $installerName;
Remove-Item "~\Desktop\*osu*";
Pop-Location;
Remove-Item -Recurse $tempDir;
}