Install4j: how to specify a password value in Java Invocation of Launcher

…衆ロ難τιáo~ 提交于 2019-12-11 13:23:47

问题


In Install4j, I have a form to let the user configure a login/password (with the variable names: login and password)

Then I want to create a launcher using the login/password values in Java Invocation Launcher.

See the screenshot below.

  1. How can I debug to see the value of these arguments after the installation ?
  2. The ${installer:password} is really the entered value by the user ?


回答1:


You probably use a "Password field" form component. The bound variable for a password field component is not written to the response file. That's why it's not available for the launchers.

Add a "Set a variable" action for another variable, i.e. "clearPassword", set the script to

context.getVariable("password")

and select the "Register for response file" property of that action. Then you can use ${installer:clearPassword} in the launcher arguments.

Also you have a typo, it should be ${installer:login} and not {installer:login}.



来源:https://stackoverflow.com/questions/24776367/install4j-how-to-specify-a-password-value-in-java-invocation-of-launcher

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