Remove unwanted desktop icons

This commit is contained in:
Manuel Thalmann 2023-07-16 12:46:00 +02:00
parent 06f8394423
commit dae4c35c2a
4 changed files with 9 additions and 0 deletions
scripts/Windows/Software

View file

@ -44,6 +44,8 @@ $null = New-Module {
$hubPath = Stop-LogitechGHUB;
Write-Information "Restoring important files";
$context.Restore($context.SoftwareArchive($softwareName), $path);
Write-Information "Deleting desktop icon";
$context.RemoveDesktopIcon("*G HUB*");
Write-Information "Restarting Logitech G HUB";
Start-Process $hubPath;
}

View file

@ -24,5 +24,8 @@ $null = New-Module {
Write-Information "Restoring files";
$context.Restore($context.SoftwareArchive($softwareName), $path);
Write-Information "Removing desktop icon";
$context.RemoveDesktopIcon("*reWASD*");
}
}