问题
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.
- How can I debug to see the value of these arguments after the installation ?
- 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