简体   繁体   中英

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. Ie I installed one of 4 components and run again the installation and disable the component which is already installed.

You can call

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

in a "Run script" action where <ID> is the ID of the installation component.

Checking for the last selection state is analogous:

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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