问题
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.
来源:https://stackoverflow.com/questions/9573133/install4j-updating-program-group-name