Create a New Windows User with an MSI Installer without user input.

Create a New Windows User with an MSI Installer without user input.

Synopsis

Adding a New User on the target machine can simply be achieved by adding the "Logon Information Panel and Associated Child Dialogs" Dialog to your project.
The steps below discuss how the same can be achieved without end user input.

Discussion

These steps will create a New User on the target machine in the Administrators group:
1. Add "Logon Information Panel and Associated Child Dialogs".
Adding this Dialog box creates the necessary custom actions required to create a new account.
In the dialog view Right click "All Dialogs" select "New Dialog" and select "Logon Information Panel and Associated Child Dialogs" from the list.When prompted add this after "InstallWelcome"
2. Change the "Next" and "Back" buttons on the "Install Welcome" and "License Agreement" dialogs to skip the "Logon Information Panel and Associated Child Dialogs" therefore effectively hiding it from view.
3. Set the following 3 properties in the Property Manager:
ISNetApiLogonUsername = [%COMPUTERNAME]\NEWUSER
ISNetApiLogonPassword = password1
ISNetApiLogonGroup = Administrators
4. Build and launch the installer as an Administrator.
Was this article helpful? Yes No
No ratings
Version history
Revision #:
1 of 1
Last update:
‎Dec 02, 2017 01:57 PM
Updated by: