PortValhalla/scripts/Windows/Software/ubiquiti-unifi-controller/Main.ps1

22 lines
817 B
PowerShell
Raw Normal View History

2024-11-01 12:12:16 +00:00
. "$PSScriptRoot/../../lib/SoftwareManagement.ps1";
. "$PSScriptRoot/../../../lib/Software.ps1";
. "$PSScriptRoot/../../../lib/System.ps1";
2024-08-08 02:36:35 +00:00
2024-09-30 03:00:20 +00:00
Start-SoftwareInstaller @args `
2024-10-17 01:50:08 +00:00
-UserConfigurator {
2024-08-08 02:36:35 +00:00
Write-Information "Downgrading AutoHotkey…";
$id = "AutoHotkey.AutoHotkey";
2024-10-06 19:25:34 +00:00
$uninstall = { winget uninstall --accept-source-agreements -e --id "$id" };
2024-08-08 02:36:35 +00:00
& $uninstall;
2024-10-06 19:25:34 +00:00
Install-WingetPackage $id -ArgumentList "--version", "1.1.37.00";
2024-08-08 02:36:35 +00:00
Install-ChocoPackage temurin11jre;
Write-Host "Installing UniFi Controller…";
Install-ChocoPackage ubiquiti-unifi-controller -ArgumentList "--ignore-dependencies";
Write-Information "Upgrading AutoHotkey…";
& $uninstall;
Install-WingetPackage $id;
Remove-DesktopIcon "UniFi*";
};