minor changes

pull/83/head
Romain 2022-05-23 00:39:57 +02:00
parent 4ae12c7ca4
commit 695beaa24f
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -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
}