log file on notif
parent
8ad9012ba6
commit
409eab2de8
|
@ -40,6 +40,7 @@ $Script:WorkingDir = $PSScriptRoot
|
||||||
|
|
||||||
#Set common variables
|
#Set common variables
|
||||||
$OnClickAction = "$WorkingDir\logs\updates.log"
|
$OnClickAction = "$WorkingDir\logs\updates.log"
|
||||||
|
$Button1Text = $NotifLocale.local.outputs.output[11].message
|
||||||
$Title = "Winget-AutoUpdate (WAU)"
|
$Title = "Winget-AutoUpdate (WAU)"
|
||||||
$Balise = "Winget-AutoUpdate (WAU)"
|
$Balise = "Winget-AutoUpdate (WAU)"
|
||||||
$UserRun = $True
|
$UserRun = $True
|
||||||
|
@ -55,7 +56,7 @@ if ($Logs) {
|
||||||
#Not available yet
|
#Not available yet
|
||||||
$Message = $NotifLocale.local.outputs.output[5].message
|
$Message = $NotifLocale.local.outputs.output[5].message
|
||||||
$MessageType = "warning"
|
$MessageType = "warning"
|
||||||
Start-NotifTask -Message $Message -MessageType $MessageType
|
Start-NotifTask -Message $Message -MessageType $MessageType -Button1Text $Button1Text -Button1Action $OnClickAction -ButtonDismiss
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
elseif ($Help) {
|
elseif ($Help) {
|
||||||
|
@ -82,12 +83,12 @@ else {
|
||||||
}
|
}
|
||||||
$Message = $NotifLocale.local.outputs.output[9].message
|
$Message = $NotifLocale.local.outputs.output[9].message
|
||||||
$MessageType = "success"
|
$MessageType = "success"
|
||||||
Start-NotifTask -Message $Message -MessageType $MessageType
|
Start-NotifTask -Message $Message -MessageType $MessageType -Button1Text $Button1Text -Button1Action $OnClickAction -ButtonDismiss
|
||||||
}
|
}
|
||||||
catch {
|
catch {
|
||||||
#Check failed - Just send notification
|
#Check failed - Just send notification
|
||||||
$Message = $NotifLocale.local.outputs.output[7].message
|
$Message = $NotifLocale.local.outputs.output[7].message
|
||||||
$MessageType = "error"
|
$MessageType = "error"
|
||||||
Start-NotifTask -Message $Message -MessageType $MessageType
|
Start-NotifTask -Message $Message -MessageType $MessageType -Button1Text $Button1Text -Button1Action $OnClickAction -ButtonDismiss
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -53,6 +53,9 @@
|
||||||
<!--See changelog-->
|
<!--See changelog-->
|
||||||
<message>See changelog</message>
|
<message>See changelog</message>
|
||||||
</output>
|
</output>
|
||||||
|
<output id="11">
|
||||||
|
<!--Open log file-->
|
||||||
|
<message>Open log file</message>
|
||||||
</output>
|
</output>
|
||||||
</outputs>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
|
@ -54,5 +54,9 @@
|
||||||
<!--See changelog-->
|
<!--See changelog-->
|
||||||
<message>See changelog</message>
|
<message>See changelog</message>
|
||||||
</output>
|
</output>
|
||||||
|
<output id="11">
|
||||||
|
<!--Open log file-->
|
||||||
|
<message>Open log file</message>
|
||||||
|
</output>
|
||||||
</outputs>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
|
@ -54,5 +54,9 @@
|
||||||
<!--See changelog-->
|
<!--See changelog-->
|
||||||
<message>See changelog</message>
|
<message>See changelog</message>
|
||||||
</output>
|
</output>
|
||||||
|
<output id="11">
|
||||||
|
<!--Open log file-->
|
||||||
|
<message>Open log file</message>
|
||||||
|
</output>
|
||||||
</outputs>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
|
@ -54,5 +54,9 @@
|
||||||
<!--See changelog-->
|
<!--See changelog-->
|
||||||
<message>See changelog</message>
|
<message>See changelog</message>
|
||||||
</output>
|
</output>
|
||||||
|
<output id="11">
|
||||||
|
<!--Open log file-->
|
||||||
|
<message>Open log file</message>
|
||||||
|
</output>
|
||||||
</outputs>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
|
@ -54,5 +54,9 @@
|
||||||
<!--See changelog-->
|
<!--See changelog-->
|
||||||
<message>Consulter le journal des modifications</message>
|
<message>Consulter le journal des modifications</message>
|
||||||
</output>
|
</output>
|
||||||
|
<output id="11">
|
||||||
|
<!--Open log file-->
|
||||||
|
<message>Ouvrir le fichier log</message>
|
||||||
|
</output>
|
||||||
</outputs>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
|
@ -54,5 +54,9 @@
|
||||||
<!--See changelog-->
|
<!--See changelog-->
|
||||||
<message>See changelog</message>
|
<message>See changelog</message>
|
||||||
</output>
|
</output>
|
||||||
|
<output id="11">
|
||||||
|
<!--Open log file-->
|
||||||
|
<message>Open log file</message>
|
||||||
|
</output>
|
||||||
</outputs>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
|
@ -54,5 +54,9 @@
|
||||||
<!--See changelog-->
|
<!--See changelog-->
|
||||||
<message>See changelog</message>
|
<message>See changelog</message>
|
||||||
</output>
|
</output>
|
||||||
|
<output id="11">
|
||||||
|
<!--Open log file-->
|
||||||
|
<message>Open log file</message>
|
||||||
|
</output>
|
||||||
</outputs>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
|
@ -54,5 +54,9 @@
|
||||||
<!--See changelog-->
|
<!--See changelog-->
|
||||||
<message>See changelog</message>
|
<message>See changelog</message>
|
||||||
</output>
|
</output>
|
||||||
|
<output id="11">
|
||||||
|
<!--Open log file-->
|
||||||
|
<message>Open log file</message>
|
||||||
|
</output>
|
||||||
</outputs>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
|
@ -54,5 +54,9 @@
|
||||||
<!--See changelog-->
|
<!--See changelog-->
|
||||||
<message>See changelog</message>
|
<message>See changelog</message>
|
||||||
</output>
|
</output>
|
||||||
|
<output id="11">
|
||||||
|
<!--Open log file-->
|
||||||
|
<message>Open log file</message>
|
||||||
|
</output>
|
||||||
</outputs>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
|
@ -54,5 +54,9 @@
|
||||||
<!--See changelog-->
|
<!--See changelog-->
|
||||||
<message>See changelog</message>
|
<message>See changelog</message>
|
||||||
</output>
|
</output>
|
||||||
|
<output id="11">
|
||||||
|
<!--Open log file-->
|
||||||
|
<message>Open log file</message>
|
||||||
|
</output>
|
||||||
</outputs>
|
</outputs>
|
||||||
</local>
|
</local>
|
||||||
|
|
Loading…
Reference in New Issue