Remove unwanted desktop icons

This commit is contained in:
Manuel Thalmann 2023-07-16 12:46:00 +02:00
parent 04e6531ab4
commit 09d6e3963e
4 changed files with 9 additions and 0 deletions

View file

@ -17,4 +17,5 @@ function Install-PortValhallaDrivers {
. "$driverPath/Tobii EyeX/Install.ps1" $context;
choco install -y amd-ryzen-master geforce-game-ready-driver icue wavelink;
$context.RemoveDesktopIcon("*Wave Link*");
}

View file

@ -43,4 +43,7 @@ function Restore-PersonalApps([Context] $context) {
choco install -y --params "/NoDesktopIcon /AssociateWithFiles" vscodium;
winget install --accept-source-agreements --accept-package-agreements -e --id VSCodium.VSCodium.Insiders --override '/VerySilent /MergeTasks="!runCode,quicklaunchicon,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"';
choco install -y epicgameslauncher steam goggalaxy;
$context.RemoveDesktopIcon("*Epic Games*");
$context.RemoveDesktopIcon("*Steam*");
}

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*");
}
}