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