From 695beaa24fbbcd338fe88c4c78c07fbe4503394a Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Mon, 23 May 2022 00:39:57 +0200 Subject: [PATCH] minor changes --- Winget-AutoUpdate-Install.ps1 | 2 +- Winget-AutoUpdate/winget-upgrade.ps1 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Winget-AutoUpdate-Install.ps1 b/Winget-AutoUpdate-Install.ps1 index f96eaa6..de6bd8b 100644 --- a/Winget-AutoUpdate-Install.ps1 +++ b/Winget-AutoUpdate-Install.ps1 @@ -231,7 +231,7 @@ function Install-WingetAutoUpdate{ New-ItemProperty $regPath -Name WAU_UpdatePrerelease -Value 0 -PropertyType DWord -Force if ($UseWhiteList) {New-ItemProperty $regPath -Name WAU_UseWhiteList -Value 1 -PropertyType DWord -Force} New-ItemProperty $regPath -Name WAU_NotificationLevel -Value $NotificationLevel -Force - New-ItemProperty $regPath -Name WAU_UpdatePostActions -Value 0 -PropertyType DWord -Force + New-ItemProperty $regPath -Name WAU_PostUpdateActions -Value 0 -PropertyType DWord -Force Write-host "`nWAU Installation succeeded!" -ForegroundColor Green Start-sleep 1 diff --git a/Winget-AutoUpdate/winget-upgrade.ps1 b/Winget-AutoUpdate/winget-upgrade.ps1 index bb472fd..ace6ce2 100644 --- a/Winget-AutoUpdate/winget-upgrade.ps1 +++ b/Winget-AutoUpdate/winget-upgrade.ps1 @@ -14,7 +14,7 @@ Start-Init #Get WAU Configurations $Script:WAUConfig = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate" -#Run post update actions +#Run post update actions if necessary if (!($WAUConfig.WAU_PostUpdateActions -eq 0)){ Invoke-PostUpdateActions }