Fix notif
parent
666fddb31b
commit
dbfa68ac8e
|
@ -1,7 +1,8 @@
|
|||
#Send Notif Script
|
||||
|
||||
#get xml notif config
|
||||
[xml]$NotifConf = Get-Content "$env:ProgramData\Winget-AutoUpdate\config\notif.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
|
||||
$WAUinstalledPath = Get-ItemPropertyValue -Path "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Winget-AutoUpdate\" -Name InstallLocation
|
||||
[xml]$NotifConf = Get-Content "$WAUinstalledPath\config\notif.xml" -Encoding UTF8 -ErrorAction SilentlyContinue
|
||||
if (!($NotifConf)) {
|
||||
break
|
||||
}
|
||||
|
|
|
@ -27,7 +27,7 @@ function Start-NotifTask ($Title, $Message, $MessageType, $Balise, $OnClickActio
|
|||
if ($IsSystem) {
|
||||
|
||||
#Save XML to File
|
||||
$ToastTemplateLocation = "$env:ProgramData\Winget-AutoUpdate\config\"
|
||||
$ToastTemplateLocation = "$($WAUConfig.InstallLocation)\config\"
|
||||
if (!(Test-Path $ToastTemplateLocation)) {
|
||||
New-Item -ItemType Directory -Force -Path $ToastTemplateLocation
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue