install4j - Updating Program Group Name

2019-08-20 09:49发布

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.

标签: install4j
2条回答
聊天终结者
2楼-- · 2019-08-20 10:08

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.

查看更多
We Are One
3楼-- · 2019-08-20 10:09

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.

查看更多
登录 后发表回答