Update notif config to config folder
parent
57601cf97c
commit
d18dbd8e67
|
@ -1,7 +1,7 @@
|
||||||
#Send Notif Script
|
#Send Notif Script
|
||||||
|
|
||||||
#get xml notif config
|
#get xml notif config
|
||||||
[xml]$NotifConf = Get-Content "$env:ProgramData\Winget-AutoUpdate\notif.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
|
[xml]$NotifConf = Get-Content "$env:ProgramData\Winget-AutoUpdate\config\notif.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
|
||||||
if (!($NotifConf)) {break}
|
if (!($NotifConf)) {break}
|
||||||
|
|
||||||
#Load Assemblies
|
#Load Assemblies
|
||||||
|
@ -18,4 +18,4 @@ $LauncherID = "Windows.SystemToast.Winget.Notification"
|
||||||
#Prepare and Create Toast
|
#Prepare and Create Toast
|
||||||
$ToastMessage = [Windows.UI.Notifications.ToastNotification]::New($ToastXML)
|
$ToastMessage = [Windows.UI.Notifications.ToastNotification]::New($ToastXML)
|
||||||
$ToastMessage.Tag = $NotifConf.toast.tag
|
$ToastMessage.Tag = $NotifConf.toast.tag
|
||||||
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($LauncherID).Show($ToastMessage)
|
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier($LauncherID).Show($ToastMessage)
|
||||||
|
|
Loading…
Reference in New Issue