Remove unwanted shortcuts
This commit is contained in:
parent
a2a277a15a
commit
c0b8996960
2 changed files with 41 additions and 3 deletions
scripts/Windows/Software/Ubiquiti UniFi Controller
|
@ -1,4 +1,9 @@
|
|||
#!/bin/pwsh
|
||||
param($context);
|
||||
|
||||
. "$PSScriptRoot/../../Scripts/Context.ps1";
|
||||
[Context] $context = $context;
|
||||
|
||||
Write-Host "Installing UniFi Controller";
|
||||
Write-Information "Downgrading AutoHotkey";
|
||||
$ahkID = "AutoHotkey.AutoHotkey";
|
||||
|
@ -14,3 +19,6 @@ choco install -y ubiquiti-unifi-controller --ignore-dependencies;
|
|||
Write-Information "Upgrading AutoHotkey";
|
||||
winget uninstall --accept-source-agreements -e --id "$ahkID";
|
||||
winget install --accept-source-agreements --accept-package-agreements -e --id "$ahkID";
|
||||
|
||||
Write-Information "Removing desktop icon";
|
||||
$context.RemoveDesktopIcon("UniFi*");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue