Install4j - 有没有办法以编程方式禁用对以前安装的检测?
Install4j - Is there a way to programmatically disable detection of previous installation?
"Detect previous installation directory" 开启
"Alert for update installation" 开启
有没有办法在某些情况下以编程方式禁用这些功能?
默认情况下,我仍然想让它们保持启用状态
经过一些试验和错误后发现了这个解决方法:
context.setInstallationDirectory(new File("some directory different from existing installation"))
这将强制安装程序不触发 "update existing installation" 序列。
应该在欢迎屏幕之前执行,例如在启动中。
什么不起作用:
- 设置
sys.confirmedUpdateInstallation=false
,"Update alert"组件将忽略它并将其覆盖为true
- "Update alert" 组件无法通过其初始化或可见性脚本禁用,它只是完全忽略这些。 (错误?)
"Detect previous installation directory" 开启
"Alert for update installation" 开启
有没有办法在某些情况下以编程方式禁用这些功能? 默认情况下,我仍然想让它们保持启用状态
经过一些试验和错误后发现了这个解决方法:
context.setInstallationDirectory(new File("some directory different from existing installation"))
这将强制安装程序不触发 "update existing installation" 序列。 应该在欢迎屏幕之前执行,例如在启动中。
什么不起作用:
- 设置
sys.confirmedUpdateInstallation=false
,"Update alert"组件将忽略它并将其覆盖为true
- "Update alert" 组件无法通过其初始化或可见性脚本禁用,它只是完全忽略这些。 (错误?)