Update existing windows user - Advanced Installer Community
Alex99
Posts: 42
Joined: Thu Feb 14, 2013 9:28 am

Update existing windows user

Hello guys,
Could you help me please?
While installation process in my installer user will be prompted to enter some user name and password and I need to check - if this user exists in windows.
But I need this(entered) user be in administrator group and if user not in this group - I need to add entered user into admins.
The simplies way that I see is -
Use Users And Groups page in advanced installer -> Bind user name and password to properties from installation UI and leave user updating process to Advanced Installer engine.
But I see only 2 options for existing users - fail installation or skip creation. Can I somehow tell to advanced installer to update some user properties(such as assing user to admins groups) via users and groups page of advanced installer. if not - could you please tell me how its can be done via other actions?(maybe some specific predefined actions).

Thanks in advance,
Alex
Daniel
Posts: 8283
Joined: Mon Apr 02, 2012 1:11 pm
Contact: Website

Re: Update existing windows user

Hello Alex,

Unfortunately we don't have predefined support for this. However, in order to achieve what you want you can use the user name and password associated properties (from your dialog) on "Users and Groups" page to create a new user (member of Administrators, and having the "Skip user creation if user already exists" option enabled). This will create the entered user account on target machine only if the related user doesn't exist.

If the entered user account already exist, then you can write your own custom action to check if the user belongs to Administrators group and if not to add it to Administrator group.

All the best,
Daniel
Daniel Radu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”