Commit graph

6 commits

Author SHA1 Message Date
Paul Wetter
dfb785e077
Merge branch 'master' into master 2020-12-31 22:06:08 -06:00
Martin Bengtsson
46a5d9b239
Add files via upload 2020-11-16 16:00:50 +01:00
Paul Wetter
014e69d8a8 Cleaned up bug i created in existing xml 2020-10-17 01:27:34 -05:00
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
f3cadfbaf3
Uploaded as a part of version 2.0.0 2020-08-22 21:06:10 +02:00
Martin Bengtsson
0b1c326aa2
Add files via upload 2020-07-03 21:23:56 +02:00