From 29183037131a938bce7b5729df034c8e772a8fca Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Sun, 22 May 2022 15:31:17 +0200 Subject: [PATCH] fix notif.xml folder creation --- Winget-AutoUpdate/functions/Start-NotifTask.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Winget-AutoUpdate/functions/Start-NotifTask.ps1 b/Winget-AutoUpdate/functions/Start-NotifTask.ps1 index e07ba83..db68276 100644 --- a/Winget-AutoUpdate/functions/Start-NotifTask.ps1 +++ b/Winget-AutoUpdate/functions/Start-NotifTask.ps1 @@ -25,11 +25,11 @@ function Start-NotifTask ($Title,$Message,$MessageType,$Balise) { if ($currentPrincipal -eq $false){ #Save XML to File - $ToastTemplateLocation = "$env:ProgramData\Winget-AutoUpdate\" + $ToastTemplateLocation = "$env:ProgramData\Winget-AutoUpdate\config\" if (!(Test-Path $ToastTemplateLocation)){ New-Item -ItemType Directory -Force -Path $ToastTemplateLocation } - $ToastTemplate.Save("$ToastTemplateLocation\config\notif.xml") + $ToastTemplate.Save("$ToastTemplateLocation\notif.xml") #Run Notify scheduled task to notify conneted users Get-ScheduledTask -TaskName "Winget-AutoUpdate-Notify" -ErrorAction SilentlyContinue | Start-ScheduledTask -ErrorAction SilentlyContinue