简体   繁体   English

Install4j安装组件问题

[英]Install4j Installation Components issues

Hi I am wondering if is there any way to disable checkboxes for installation components not form components, and also if there is anyway to check if component is already installed by the install4j installer. 嗨,我想知道是否有任何方法可以禁用复选框而不是组成组件的安装组件,以及是否有任何方法可以检查install4j安装程序是否已安装组件。 Ie I installed one of 4 components and run again the installation and disable the component which is already installed. 即,我安装了4个组件之一,然后再次运行安装并禁用已安装的组件。

You can call 你可以打电话

context.getInstallationComponentById("<ID>").setSelected(selected);

in a "Run script" action where <ID> is the ID of the installation component. 在“运行脚本”操作中,其中<ID>是安装组件的ID。

Checking for the last selection state is analogous: 检查最后一个选择状态类似:

context.getInstallationComponentById("<ID>").isSelected()

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM