install4j - Updating Program Group Name

▼魔方 西西 提交于 2019-12-11 15:34:44

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!