停止 install4j 通过命令行添加桌面快捷方式



我想通过命令行在无人值守模式下安装程序,而不是获得桌面快捷方式。

这是我运行的命令:

ZAP_2_7_0_windows.exe -q -varfile "C:Program FilesZAP_64_bit.Npackdcustomdir.varfile"

这是.varfile

sys.installationDir=C:\Program Files\ZAP_64_bit

安装程序后,将创建一个桌面快捷方式。如何阻止它发生?

将项目中"添加桌面链接"操作的"条件表达式"属性设置为

!context.isUnattended()

或者,如果要通过.varfile控制它,请将其设置为

!context.getBooleanVariable("preventDesktopLink")

并添加行

preventDesktopLink$Boolean=true

.varfile.

最新更新