Remove unwanted desktop icons
This commit is contained in:
parent
06f8394423
commit
dae4c35c2a
4 changed files with 9 additions and 0 deletions
|
@ -17,4 +17,5 @@ function Install-PortValhallaDrivers {
|
||||||
. "$driverPath/Tobii EyeX/Install.ps1" $context;
|
. "$driverPath/Tobii EyeX/Install.ps1" $context;
|
||||||
|
|
||||||
choco install -y amd-ryzen-master geforce-game-ready-driver icue wavelink;
|
choco install -y amd-ryzen-master geforce-game-ready-driver icue wavelink;
|
||||||
|
$context.RemoveDesktopIcon("*Wave Link*");
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,4 +43,7 @@ function Restore-PersonalApps([Context] $context) {
|
||||||
choco install -y --params "/NoDesktopIcon /AssociateWithFiles" vscodium;
|
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"';
|
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;
|
choco install -y epicgameslauncher steam goggalaxy;
|
||||||
|
|
||||||
|
$context.RemoveDesktopIcon("*Epic Games*");
|
||||||
|
$context.RemoveDesktopIcon("*Steam*");
|
||||||
}
|
}
|
||||||
|
|
|
@ -44,6 +44,8 @@ $null = New-Module {
|
||||||
$hubPath = Stop-LogitechGHUB;
|
$hubPath = Stop-LogitechGHUB;
|
||||||
Write-Information "Restoring important files";
|
Write-Information "Restoring important files";
|
||||||
$context.Restore($context.SoftwareArchive($softwareName), $path);
|
$context.Restore($context.SoftwareArchive($softwareName), $path);
|
||||||
|
Write-Information "Deleting desktop icon";
|
||||||
|
$context.RemoveDesktopIcon("*G HUB*");
|
||||||
Write-Information "Restarting Logitech G HUB";
|
Write-Information "Restarting Logitech G HUB";
|
||||||
Start-Process $hubPath;
|
Start-Process $hubPath;
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,5 +24,8 @@ $null = New-Module {
|
||||||
|
|
||||||
Write-Information "Restoring files";
|
Write-Information "Restoring files";
|
||||||
$context.Restore($context.SoftwareArchive($softwareName), $path);
|
$context.Restore($context.SoftwareArchive($softwareName), $path);
|
||||||
|
|
||||||
|
Write-Information "Removing desktop icon";
|
||||||
|
$context.RemoveDesktopIcon("*reWASD*");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue