From 09d6e3963e838d8fc52095f7a566aee4d761d0da Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 16 Jul 2023 12:46:00 +0200 Subject: [PATCH] Remove unwanted desktop icons --- profiles/DerGeret/Windows/Drivers.ps1 | 1 + scripts/Windows/Collections/Personal.ps1 | 3 +++ scripts/Windows/Software/LGHub/Manage.ps1 | 2 ++ scripts/Windows/Software/reWASD/Manage.ps1 | 3 +++ 4 files changed, 9 insertions(+) diff --git a/profiles/DerGeret/Windows/Drivers.ps1 b/profiles/DerGeret/Windows/Drivers.ps1 index 58d1673e..487c7de8 100644 --- a/profiles/DerGeret/Windows/Drivers.ps1 +++ b/profiles/DerGeret/Windows/Drivers.ps1 @@ -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*"); } diff --git a/scripts/Windows/Collections/Personal.ps1 b/scripts/Windows/Collections/Personal.ps1 index d2398cca..b284651c 100644 --- a/scripts/Windows/Collections/Personal.ps1 +++ b/scripts/Windows/Collections/Personal.ps1 @@ -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*"); } diff --git a/scripts/Windows/Software/LGHub/Manage.ps1 b/scripts/Windows/Software/LGHub/Manage.ps1 index d556e392..b7c7eccb 100644 --- a/scripts/Windows/Software/LGHub/Manage.ps1 +++ b/scripts/Windows/Software/LGHub/Manage.ps1 @@ -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; } diff --git a/scripts/Windows/Software/reWASD/Manage.ps1 b/scripts/Windows/Software/reWASD/Manage.ps1 index d4c34665..7a6882a3 100644 --- a/scripts/Windows/Software/reWASD/Manage.ps1 +++ b/scripts/Windows/Software/reWASD/Manage.ps1 @@ -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*"); } }