Add a function for removing desktop icons

This commit is contained in:
Manuel Thalmann 2023-07-16 12:32:46 +02:00
parent 18b1ae071c
commit 32030e1455
4 changed files with 7 additions and 3 deletions
scripts/Windows/Software/osu!

View file

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