From 796dfa1f5eb4be2081af3900757d282c58d2e32d Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Sun, 30 Jul 2023 15:51:13 +0200 Subject: [PATCH] Remove settings backups before restoring LGHub --- scripts/Windows/Software/LGHub/Manage.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/Windows/Software/LGHub/Manage.ps1 b/scripts/Windows/Software/LGHub/Manage.ps1 index 0bc73574..543369dd 100644 --- a/scripts/Windows/Software/LGHub/Manage.ps1 +++ b/scripts/Windows/Software/LGHub/Manage.ps1 @@ -42,6 +42,8 @@ $null = New-Module { Write-Information "Installing the app"; choco install -y --ignore-checksums lghub; $hubPath = Stop-LogitechGHUB; + Write-Information "Removing existing settings"; + Remove-Item "$path/settings.*"; Write-Information "Restoring important files"; $context.Restore($context.SoftwareArchive($softwareName), $path); Write-Information "Deleting desktop icon";