Merge pull request #495 from Romanitho/fix
Roll back notification task as system as it only works on SandBoxpull/501/head
commit
aa1f97fd44
|
@ -132,8 +132,8 @@ function Start-NotifTask {
|
|||
$ToastTemplate.toast.SetAttribute("launch", $OnClickAction) | Out-Null
|
||||
}
|
||||
|
||||
#if not "Interactive" user, run Winget-AutoUpdate-Notify scheduled task
|
||||
if ($SessionID -eq 0) {
|
||||
#if running as System, run Winget-AutoUpdate-Notify scheduled task
|
||||
if ($IsSystem) {
|
||||
|
||||
#Save XML to File
|
||||
$ToastTemplateLocation = "$($WAUConfig.InstallLocation)\config\"
|
||||
|
|
Loading…
Reference in New Issue