all groups > dotnet setup > august 2005 >
You're in the

dotnet setup

group:

Create User Roles/Assign users to roles in .NET



Create User Roles/Assign users to roles in .NET rb531
8/31/2005 3:23:03 PM
dotnet setup: hi,

I have an application that does some role-based security. When I deploy this
application on the production server, I want to create the new roles in the
installer. How can I do this?

I am using Installer component to write Custom Actions. But I couldnt find
any namespace to do this Role Creation and Assignment job.

Please suggest.

thanks
Re: Create User Roles/Assign users to roles in .NET Phil Wilson
9/1/2005 8:35:15 AM
I don't know of any .NET support for creating roles, so an installer class
custom action won't work. I believe you're looking for code that creates
user groups that map to roles. This is a link to C++ code that creates users
and groups, and you can have C++ custom actions.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/netmgmt/netmgmt/creating_a_local_group_and_adding_a_user.asp

--
Phil Wilson
[Microsoft MVP-Windows Installer]
Definitive Guide to Windows Installer
http://apress.com/book/bookDisplay.html?bID=280

[quoted text, click to view]

AddThis Social Bookmark Button