From 2471438c3b524332ec64c413fee2708613cf42e1 Mon Sep 17 00:00:00 2001 From: KnifMelti Date: Tue, 7 Feb 2023 06:04:13 +0100 Subject: [PATCH] ListPath as well... --- Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 b/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 index 97a91ae..de89e3c 100644 --- a/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 +++ b/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 @@ -53,6 +53,15 @@ function Invoke-PostUpdateActions { Write-Log "-> MaxLogFiles/MaxLogSize setting was missing. Fixed with 3/1048576 (in bytes, default is 1048576 = 1 MB)." } + #Set WAU_ListPath if not set + $ListPath = Get-ItemProperty $regPath -Name WAU_ListPath -ErrorAction SilentlyContinue + if (!$ListPath) { + New-ItemProperty $regPath -Name WAU_ListPath -Force | Out-Null + + #log + Write-Log "-> ListPath setting was missing. Fixed with empty string." + } + #Set WAU_ModsPath if not set $ModsPath = Get-ItemProperty $regPath -Name WAU_ModsPath -ErrorAction SilentlyContinue if (!$ModsPath) {