Install4j 中 windows 安装程序的自定义脚本
Custom Script for windows installer in Install4j
我想 运行 在 windows 平台上安装结束时自定义脚本。如下
icacls C:\InstallDir /remove "NT Authority\Authenticated Users" /t
我们只想让非特权用户无法访问安装目录。有没有办法在 install4j 中添加自定义脚本来实现相同的目的。任何不同的建议也会有所帮助。
您可以使用以下属性将“运行 可执行文件或批处理文件”操作添加到安装程序的“安装”屏幕:
“可执行文件”属性:${installer:sys.system32Dir}\icacls.exe
“参数”属性(每行一个参数):
${installer:sys.installationDir}
${installer:sys.installationDir}
/remove
“等待终止”属性:已选择
“重定向标准输出”属性:到日志文件
“重定向标准错误”属性:到日志文件
“条件表达式”属性:Util.isWindows()
NT Authority\Authenticated 用户
/t
我想 运行 在 windows 平台上安装结束时自定义脚本。如下
icacls C:\InstallDir /remove "NT Authority\Authenticated Users" /t
我们只想让非特权用户无法访问安装目录。有没有办法在 install4j 中添加自定义脚本来实现相同的目的。任何不同的建议也会有所帮助。
您可以使用以下属性将“运行 可执行文件或批处理文件”操作添加到安装程序的“安装”屏幕:
“可执行文件”属性:${installer:sys.system32Dir}\icacls.exe
“参数”属性(每行一个参数):
${installer:sys.installationDir}
${installer:sys.installationDir}
/remove
“等待终止”属性:已选择
“重定向标准输出”属性:到日志文件
“重定向标准错误”属性:到日志文件
“条件表达式”属性:Util.isWindows()
NT Authority\Authenticated 用户
/t