Commit graph

8 commits

Author SHA1 Message Date
Paul Wetter
94625157ca Added CustomAction and Detection
Added functionality for custom actions and detection so you can have the toast display if a script returns a $true  It can then build and run a custom protocol.

The main goal here is to be able to create flexibility to toast for any custom action.  And if desired, build a custom action protocol for that execution.

## Config XML Changes
* CustomActions element area.  This includes the DetectionScript, Action, and optional ExecutionScript
** If the ExecutionScript is enabled, a new protocol with the Action Name is created.  Note that you have to set the Action element to match the named custom action here if you want to use it.
## New Variables
* CustomActionsEnabled - Enables/Disables the custom action
* CustomDetection - The destection script.
* CustomAction - The XML that contains the action name and Script.
* CustomActionName - The name of the custom action.
## Functions
* Write-FullCustomAction - Writes the action script to the requested directory for the protocol to reference.
* Write-FullCustomProtocol - Writes the protocol information into the registry so the action can be called from there.
## New Check
* Additional Check for conflicts with custom actions being enabled.
## Misc
* Code for determining  the results of custom actions, if enabled.
* Custom action Toast display section.
* modified default toast to not display when custom actions are enabled.
2020-10-17 01:15:25 -05:00
Martin Bengtsson
f18c741a79
Fixed an error in the custom protocols 2020-09-05 08:44:55 +02:00
Martin Bengtsson
f6e3eba754
Updated in version 2.0.1 2020-09-03 20:48:32 +02:00
Martin Bengtsson
95701bd3cd
Uploaded as a part of version 2.0.0 2020-08-23 09:07:55 +02:00
Martin Bengtsson
f3cadfbaf3
Uploaded as a part of version 2.0.0 2020-08-22 21:06:10 +02:00
Martin Bengtsson
4fbd0531ea
Add files via upload
Fixed Personal Greeting error
2020-07-11 08:47:44 +02:00
Martin Bengtsson
c091fa17c9
Add files via upload 2020-07-05 21:24:31 +02:00
Martin Bengtsson
0b1c326aa2
Add files via upload 2020-07-03 21:23:56 +02:00