View Full Version : How to mask password in response file

05-09-2006, 04:23 PM
Hi ,
I am using a password control in a user defined dialog. I dont know how to mask this password in response file for silent install.

The documentation provides guidelines for password dialog not for password control.

did anybody try this before?


05-12-2006, 09:51 AM
Can you use the same code as in the Password dialog events?

05-15-2006, 03:12 PM
Storing a password in a silent mode response file does not sound like a good idea. I may suggest displaying a message box when your installer runs with -options-record flag telling the user that they have to provide the password using a different method (but not a command line parameter, because that is not secure at all).

I may recommend storing a password in a different temporary file, which gets created before the install and removed right after the silent install. The response file would have a path to the temp file, and the silent event handler for the dialog would read from that file and use the password for the silent installation session. The temp file with the password must be unavailable for other users (file attribute 600 or even 400 on UNIX platforms) and must be deleted as soon as it becomes unnecessary.

Would that work?


05-16-2006, 01:05 AM
Thanks Alex for your idea. If we i use a temp file, i am not sure how the will enter the password.

Basically I want the functionality silimar to Password dialog.

I have the dialog which has user name and password fields. After getting these values from user , i am logging into an external system for doing some task.

Every things is good during GUI installation. because i get the password by using PasswordControl.getText() method.

During silent install, i need to pass this password from resp file. But i can not hardcode Password in resp file. I can ask the user to encrypt the password using com.installshield.util.runtime.PasswordUtils and enter that in resp file.

But i dont know how to decode that password so as to pass to external system for authentication.


I can not use password dialog because it wont allow me to move to next dialog unless the user enters the right password.

07-07-2006, 10:45 AM
Hi - did you ever find a resolution to this? I'm facing the same issue now.