minor changes
parent
4ae12c7ca4
commit
695beaa24f
|
@ -231,7 +231,7 @@ function Install-WingetAutoUpdate{
|
||||||
New-ItemProperty $regPath -Name WAU_UpdatePrerelease -Value 0 -PropertyType DWord -Force
|
New-ItemProperty $regPath -Name WAU_UpdatePrerelease -Value 0 -PropertyType DWord -Force
|
||||||
if ($UseWhiteList) {New-ItemProperty $regPath -Name WAU_UseWhiteList -Value 1 -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_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
|
Write-host "`nWAU Installation succeeded!" -ForegroundColor Green
|
||||||
Start-sleep 1
|
Start-sleep 1
|
||||||
|
|
|
@ -14,7 +14,7 @@ Start-Init
|
||||||
#Get WAU Configurations
|
#Get WAU Configurations
|
||||||
$Script:WAUConfig = Get-ItemProperty -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate"
|
$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)){
|
if (!($WAUConfig.WAU_PostUpdateActions -eq 0)){
|
||||||
Invoke-PostUpdateActions
|
Invoke-PostUpdateActions
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue