diff --git a/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 b/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 index 3f1f31c..2a69a2b 100644 --- a/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 +++ b/Winget-AutoUpdate/functions/Invoke-PostUpdateActions.ps1 @@ -32,6 +32,14 @@ function Invoke-PostUpdateActions { #log Write-Log "-> $regPath created." "green" } + #Fix Notif where WAU_NotificationLevel is not set + $regNotif = Get-ItemProperty $regPath -Name WAU_NotificationLevel -ErrorAction SilentlyContinue + if (!$regNotif){ + New-ItemProperty $regPath -Name WAU_NotificationLevel -Value Full -Force + + #log + Write-Log "-> Notification level setting was missing. Fixed with 'Full' option." + } #Convert about.xml if exists (previous WAU versions) to reg $WAUAboutPath = "$WorkingDir\config\about.xml"