how to create user and put it in the specified group - Advanced Installer Community
apachemaven
Posts: 10
Joined: Wed Jul 11, 2012 10:29 am

how to create user and put it in the specified group

Hi:

I want to create user in the target computer and put the user in the iis group.(iis_wpg in server2003 and iis_Iusrs in server2008)..


Now I meet two problems:

1) since the group name in server 2003 and server 2008,which one I should use when creating the user?

2) in the create user tab, when I want to add it to group,the poped window just show the groups in local computer,but the user will be created at the target computer,how to set the group in target computer?

3) It seems that user name can not gatherd through the dialog,it can just be set in the user-group tab.

4) Is there anything about user's password check? Since in 2008 there is a very strict password policy For exmaple ,the length the character and etc.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: how to create user and put it in the specified group

Hello,
since the group name in server 2003 and server 2008,which one I should use when creating the user?
If you want to condition the appurtenance of a user depending on the operating system, you can condition it from the "Install Condition" field from the "User Account Properties" pane.
The "How do I install resources based on the Operating System version?" article can help you with the condition.
in the create user tab, when I want to add it to group,the poped window just show the groups in local computer,but the user will be created at the target computer,how to set the group in target computer?
Any group you add under "Groups" will be created on the target machine. After this, you can set any user under "Users" to be part of that group by adding it in the "Member of" list.
It seems that user name can not gatherd through the dialog,it can just be set in the user-group tab.
I'm afraid I don't understand what you mean by this. Can you please be more specific?
Is there anything about user's password check? Since in 2008 there is a very strict password policy For exmaple ,the length the character and etc.
The user's password can be configured from the "User Account Properties" right pane available when the user is selected in the "Accounts" tree.

For more related information you can read the following user guide articles:
Users and Groups Page
User Account Properties
Group Properties

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
apachemaven
Posts: 10
Joined: Wed Jul 11, 2012 10:29 am

Re: how to create user and put it in the specified group

mihai.petcu wrote:Hello,
It seems that user name can not gatherd through the dialog,it can just be set in the user-group tab.
I'm afraid I don't understand what you mean by this. Can you please be more specific?
I mean I want to create a dialog which contains a textbox to gather the user name,then I create the user with the name.
Is there anything about user's password check? Since in 2008 there is a very strict password policy For exmaple ,the length the character and etc.
The user's password can be configured from the "User Account Properties" right pane available when the user is selected in the "Accounts" tree.i
I know I can set the password in the "user account properties" page,but I do not want set the password,I want the user who use our application set the password during the installing.

Is this clear? If not,please let me know. I will explain more.
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: how to create user and put it in the specified group

Have you seen "Use a property to set password" option from the "User Account Properties" pane?
It is described in the "Property" section of User Account Properties user guide article I previously posted.

The defined property is used if you want that password to be set at install time by the user.
If you set password property you must also create a new dialog with a control where the user will enter the password. You can do that using the Dialog Editor.

Is this what you are looking for? If not, please give us more details about the intended behavior.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
apachemaven
Posts: 10
Joined: Wed Jul 11, 2012 10:29 am

Re: how to create user and put it in the specified group

mihai.petcu wrote:Have you seen "Use a property to set password" option from the "User Account Properties" pane?
It is described in the "Property" section of User Account Properties user guide article I previously posted.

The defined property is used if you want that password to be set at install time by the user.
I know this,however the system may have some password validation(for example,in server 2008,the password must meet the min-length and some specified characters).

I wonder if the advanced installer can do the validation?
Is this what you are looking for? If not, please give us more details about the intended behavior.

All the best,
Mihai
I want to create a user and put it in the iis group (iis_wpg in server 2003 and iis_iusrs in 2008) .

And my application have to run on both platform.

How to make it?
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: how to create user and put it in the specified group

I wonder if the advanced installer can do the validation?
In order to determine the min-length, you'll have to develop your own custom action.
You could validate the password field for special characters from Advanced Installer, but since you're already developing a custom action, I recommend you include all validations in it.
After developing the custom action, you can follow How to validate parameters in custom dialog post to set your Advanced Installer project.
I want to create a user and put it in the iis group (iis_wpg in server 2003 and iis_iusrs in 2008) .
If you want to condition the group appurtenance of a user depending on the operating system, you can condition it from the "Install Condition" field from the "User Account Properties" pane.
Just add both users as members of the groups you need and condition their installation. This way, only one user will be installed in its specified group depending on the target machine OS.
The "How do I install resources based on the Operating System version?" article can help you with the condition.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”