Adding a Custom CustomUserAccounts Table
A specification of the sample is that user account information be read from a custom table in the installation database and not hard-coded into the custom action.
Add a custom table to the sample installation database named CustomUserAccounts to hold user account information. See Examples of Database Queries Using SQL and Script for an example of how to add a custom table. Use the following schema for the CustomUserAccounts table. See Column Definition Format for an explanation of the column types.
|UserName||s72||Y||N||Name of user account being created.|
|Password||s72||N||Name of property containing the password for the account. This is a public property set on the command line or through an edit control in the user interface. This edit control should have the Password Control Attribute.|
|Attributes||i4||Y||Attributes for account. These are defined as the DWORD values for the usri1_flags member of the USER_INFO_1 structure.|
After the CustomUserAccounts table has been added to the database you may edit this table using Orca, a table editor provided with the Windows Installer SDK, or another editor. Enter the following record in the CustomUserAccounts table to create a password secured user account for a user called TestUser. Note that 512 is the numeric value for UF_NORMAL_ACCOUNT.
Add the following records to the _Validation table for the custom table.
Continue to Authoring the ActionText and Error Tables.
Build date: 11/16/2013