在 xml 操作中将函数作为参数传递

时间:2021-05-06 14:10:50

标签: xml windows powershell powershell-3.0 powershell-4.0

我基本上要做的是通过 Windows 的 Toast 通知的 Powershell 的 XML 模板中的操作按钮调用一个函数。

它适用于字符串和其他变量,但不适用于函数。任何建议将不胜感激。

<action content="Install now" imageUri="$PSScriptRoot\install.png" arguments=""function:$Get-Version"" activationType="protocol" />

0 个答案:

没有答案
相关问题