From 27ba6efad5a49b16fffe2356bba34ca45d69d91d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Tue, 18 Jul 2023 19:09:12 +0200 Subject: [PATCH] Add a script for installing UniFi --- scripts/Windows/Collections/Personal.ps1 | 5 +++-- .../Software/Ubiquiti UniFi Controller/Install.ps1 | 9 +++++++++ 2 files changed, 12 insertions(+), 2 deletions(-) create mode 100644 scripts/Windows/Software/Ubiquiti UniFi Controller/Install.ps1 diff --git a/scripts/Windows/Collections/Personal.ps1 b/scripts/Windows/Collections/Personal.ps1 index 0416f184..2010f31e 100644 --- a/scripts/Windows/Collections/Personal.ps1 +++ b/scripts/Windows/Collections/Personal.ps1 @@ -84,11 +84,12 @@ function Restore-PersonalApps([Context] $context) { krita ` mremoteng ` obs-studio ` - openvpn ` - ubiquiti-unifi-controller; + openvpn; winget install --accept-source-agreements --accept-package-agreements -e --id AppWork.JDownloader + . "$PSScriptRoot/../Software/Ubiquiti UniFi Controller/Install.ps1"; + # Media choco install -y k-litecodecpackmega; winget install --accept-source-agreements --accept-package-agreements -e --id Ytmdesktop.Ytmdesktop diff --git a/scripts/Windows/Software/Ubiquiti UniFi Controller/Install.ps1 b/scripts/Windows/Software/Ubiquiti UniFi Controller/Install.ps1 new file mode 100644 index 00000000..4eb1dd53 --- /dev/null +++ b/scripts/Windows/Software/Ubiquiti UniFi Controller/Install.ps1 @@ -0,0 +1,9 @@ +#!/bin/pwsh +$ahkID = "AutoHotkey.AutoHotkey"; +$ahk1ID = "Lexikos.AutoHotkey"; +winget unintsall --accept-source-agreements -e --id "$ahkID"; +winget install --accept-source-agreements --accept-package-agreements -e --id "$ahk1ID"; +choco install -y temurin11jre; +choco install -y ubiquiti-unifi-controller; +winget unintsall --accept-source-agreements -e --id "$ahk1ID"; +winget install --accept-source-agreements --accept-package-agreements -e --id "$ahkID";