来自 Install4j 的 Powershell 脚本

Powershell scripts from Install4j

我在文件 (.ps1) 中有 powershell 脚本,如何在安装期间从 Install4j 运行 它?

如果选择"Run Script"控件,需要在里面写什么?

谢谢。

我宁愿为此目的使用 "Run executable" 操作。然后你可以调用可执行文件

${installer:sys.system32Dir}\WindowsPowerShell\v1.0\powershell.exe

以命令为参数。