我想在自定义操作中添加说明,但似乎install4J找不到我的BeanInfo。 我尝试了install4J附带的customCode-sample,它也不起作用。 我的代码分布在一个jar中。我试图将其添加到扩展文件夹中,并在“自定义代码”中引用它。 豆:
package example;
import com.install4j.api.actions.AbstractInstallAction;
import com.install4j.api.context.InstallerContext;
import com.install4j.api.context.UserCanceledException;
public class MyAction extends AbstractInstallAction{
private static final long serialVersionUID = 2655170043113696434L;
@Override
public boolean install(InstallerContext context) throws UserCanceledException {
return false;
}
}
BeanInfo:
package example;
import com.install4j.api.beaninfo.ActionBeanInfo;
public class MyActionBeanInfo extends ActionBeanInfo {
protected MyActionBeanInfo() {
super("My Action", "Execute my Code", "Other", false, true, 0, MyAction.class);
}
}
Manifest:
Name: example/MyAction.class
Install-Action: true
我想念什么?