install4j - Updating Program Group Name

2019-08-20 09:54发布

问题:

I give the option of going back to the installation components screen, so that the user selects a different installation component if he wants to.

But, how do I update the Program Group Name.

I see a class CreateProgramGroupAction, and a method updateProgramGroupName(Context arg0) inside that. But how do i use it? I am not finding any relevant documentation on this.

回答1:

Look at the "Properties" tab after selecting the "Create program group" action. There's a property "Program group name" and by default it is set to ${installer:sys.programGroup.name}. With the following call:

context.setVariable("sys.programGroup.name", "your value");

you can override the value that is set by the "Create program group" screen.



回答2:

To add to this, make sure that you don't specify any values in properties tab in "Create Programs Action", if you are dealing with "Program Group Name" programatically.



标签: install4j