Merge pull request #107 from Romanitho/Fix-notification-on-some-cases

Fixed notification on some upgrade cases
pull/109/head
Romain 2022-06-15 13:21:03 +02:00 committed by GitHub
commit d767724f21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,14 @@ function Invoke-PostUpdateActions {
#log #log
Write-Log "-> $regPath created." "green" 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 #Convert about.xml if exists (previous WAU versions) to reg
$WAUAboutPath = "$WorkingDir\config\about.xml" $WAUAboutPath = "$WorkingDir\config\about.xml"