Skip to content

Commit

Permalink
Merge pull request #495 from Romanitho/fix
Browse files Browse the repository at this point in the history
Roll back notification task as system as it only works on SandBox
  • Loading branch information
Romanitho committed Nov 23, 2023
2 parents 79ff32b + ab73693 commit aa1f97f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Winget-AutoUpdate/functions/Start-NotifTask.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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\"
Expand Down

0 comments on commit aa1f97f

Please sign in to comment.