Authoring the User Interface for Password Input
For each password that must be entered by the user, add an edit control on a dialog that stores the value of the password into a property. This edit control should have the Password Control Attribute. This specifies that the property entered is a password and prevents the installer from writing the property to the log file.
The control attributes for the password edit control are msidbControlAttributesVisible, msidbControlAttributesEnabled, and msidbControlAttributesPasswordInput (1 + 2 + 2097152). The X, Y, Width, Height, and Control_Next depend on the layout of the control on the dialog.
Dialog_ | Control_ | Type | X | Y | Width | Height | Attributes | Property | Text | Control_Next | Help |
---|---|---|---|---|---|---|---|---|---|---|---|
MyDialog | TestUserPasswordEdit | Edit | 25 | 120 | 300 | 20 | 2097155 | TESTUSERPASSWORD | Cancel |
Continue to Securing the installation.