Add all of the Password properties from the CustomUserAccounts table to the MsiHiddenProperties property in the Property table. Add the names of the deferred custom actions to the MsiHiddenProperties property as well. This will prevent the installer from writing the sensitive property values (the passwords) into the log and will ensure these values are not logged when the deferred custom actions use the values as the CustomActionData property.
For the user's password to be available in the Windows Installer service, the password property must be added to the SecureCustomProperties property.
| Property | Value |
|---|---|
| MsiHiddenProperties | TESTUSERPASSWORD;CreateAccount;RemoveAccount;RollbackAccount |
| SecureCustomProperties | TESTUSERPASSWORD |
This concludes the sample.
Source: Microsoft Learn / Windows Win32 documentation by Microsoft and contributors. Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.
