From 86caa304de954129c2a0ef0459a962462c2311d5 Mon Sep 17 00:00:00 2001 From: Romain <96626929+Romanitho@users.noreply.github.com> Date: Mon, 14 Mar 2022 15:49:38 +0100 Subject: [PATCH] Change notif.xml path to config folder --- 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 feb8532..3de8efe 100644 --- a/Winget-AutoUpdate/functions/Start-NotifTask.ps1 +++ b/Winget-AutoUpdate/functions/Start-NotifTask.ps1 @@ -23,7 +23,7 @@ function Start-NotifTask ($Title,$Message,$MessageType,$Balise) { if (!(Test-Path $ToastTemplateLocation)){ New-Item -ItemType Directory -Force -Path $ToastTemplateLocation } - $ToastTemplate.Save("$ToastTemplateLocation\notif.xml") + $ToastTemplate.Save("$ToastTemplateLocation\config\notif.xml") #Run Notify scheduled task to notify conneted users Get-ScheduledTask -TaskName "Winget-AutoUpdate-Notify" -ErrorAction SilentlyContinue | Start-ScheduledTask -ErrorAction SilentlyContinue @@ -49,4 +49,4 @@ function Start-NotifTask ($Title,$Message,$MessageType,$Balise) { #Wait for notification to display Start-Sleep 3 -} \ No newline at end of file +}