Create New User Account related question - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Create New User Account related question

Am planning on using the 'Create User Account' feature. Plan is to create a user X in the local administrators group. We support a varying operating system base Windows XP, Vista, 2003, 7, 2008, 2003R2, 2008R2, 2003 SBS, 2008 SBS.

Can you tell me if it will work on all these operating systems? Basically would like to learn what commands or what API Advanced installer uses to create the accounts and assign the local groups. So I can accordingly plan for it.

Any Do's and Don'ts that I need to follow. Thinking I need to force the installer to run as an administrator. How can this be achieved using the Advanced installer. Is their a way in which the installer can detect if the user running the installer is an admin.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Create New User Account related question

Hello,
We support a varying operating system base Windows XP, Vista, 2003, 7, 2008, 2003R2, 2008R2, 2003 SBS, 2008 SBS. Can you tell me if it will work on all these operating systems?
Please note that Users and Groups can only be created on Windows NT OS family. Every OS you specified above is contained in the family so everything should work fine.
Basically would like to learn what commands or what API Advanced installer uses to create the accounts and assign the local groups. So I can accordingly plan for it. Any Do's and Don'ts that I need to follow. Thinking I need to force the installer to run as an administrator.
Advanced Installer uses the Windows API to create the user accounts. Going forward I'm not very sure what you mean, can you please be more specific ?
Thinking I need to force the installer to run as an administrator. How can this be achieved using the Advanced installer. Is their a way in which the installer can detect if the user running the installer is an admin.
To achieve this you can use the EXE boostrapper with a "Require Administrator" execution level.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
anupmistry
Posts: 52
Joined: Tue Jan 12, 2010 6:39 pm

Re: Create New User Account related question

Another related question: If for whatever reason the installer fails creating the user or assigning the group to the user account what would happen? Will it rollback the entire install or just ignore that error and do the remaining part of the installs.

Hoping that it will ignore the error or show a message for user to either retry/abort this way we can have users manually create the user and then retry or rerun the installer.

Thx for your responses.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Create New User Account related question

Hello,
Another related question: If for whatever reason the installer fails creating the user or assigning the group to the user account what would happen? Will it rollback the entire install or just ignore that error and do the remaining part of the installs.
Please note that if the user or group creation fails because they already exist on the target computer, then the install can be configured by the return error policy. In any other case the package installation will fail.

For more details please read the Users and Groups Page from the user guide.

Regards,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”