Remove settings backups before restoring LGHub

This commit is contained in:
Manuel Thalmann 2023-07-30 15:51:13 +02:00
parent bd7cf8c153
commit 796dfa1f5e

View file

@ -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";