This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Trying to create a user account at install time
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Apr 14, 2014
12:34 PM
Trying to create a user account at install time
I'm having trouble getting InstallShield 2013 to create a Windows user account at install time without using logon dialogs. In my Basic MSI project, I've created the following properties in Property Manager as per the help documentation:
ISNetApiLogonUsername = [%COMPUTERNAME]\TestUser
ISNetApiLogonGroup = Users
ISNetApiLogonPassword = TestPassword
However, when I run my install, my new user account doesn't get created. Am I missing something?
ISNetApiLogonUsername = [%COMPUTERNAME]\TestUser
ISNetApiLogonGroup = Users
ISNetApiLogonPassword = TestPassword
However, when I run my install, my new user account doesn't get created. Am I missing something?
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 02, 2014
02:10 AM
It may be a doc issue, but if you look at the dialog box that you can use to create a new user account, the property names are:
It would make sense that they would be public properties so they could be specified on a command line.
Hope that helps.
- IS_NET_API_NEW_USER_SERVER
- IS_NET_API_NEW_USER_GROUP
- IS_NET_API_NEW_USER_NAME
- IS_NET_API_NEW_USER_PASSWORD
It would make sense that they would be public properties so they could be specified on a command line.
Hope that helps.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Jun 03, 2014
01:28 PM
If you follow the information in help topic you linked to, the user account should be created. If it isn't being created, we would recommend creating a verbose log of the installation. In the log, look for the ISNetApi* custom actions to ensure they are present and running. If none are present, the custom actions did not get added correctly when the ISNetApiLogon* properties were added to the Property Manager in the project. Try removing and readding the properties and then check the Custom Actions view to see if the actions are present and sequenced (enable the Show All Custom Actions option to see hidden actions).
After the ISNetApiInstall action in the verbose log, look for any log messages that could indicate the account could not be created. If the actions are running and do not log any indication of a failure to create the account, try running the project on another machine or try a test project on the failing machine to see if this could be a machine specific or project specific issue.
One thing to be aware of is password complexity requirements can prevent an account from being created on the machine or domain specified. Check to see if there are any policy settings in place on this machine or domain being used for minimum password complexity.
After the ISNetApiInstall action in the verbose log, look for any log messages that could indicate the account could not be created. If the actions are running and do not log any indication of a failure to create the account, try running the project on another machine or try a test project on the failing machine to see if this could be a machine specific or project specific issue.
One thing to be aware of is password complexity requirements can prevent an account from being created on the machine or domain specified. Check to see if there are any policy settings in place on this machine or domain being used for minimum password complexity.
