Give an account Write access to registry key programatically



I've posted this question in another security forum without any luck. hope
you guys can help me.

This seems like a pretty straightforward question, but I can't seem to find
anything useful.

I know ASPNET (or NETWORK SERVICE) does not have registry write access by
default. so I need to give it to it programatically.

Does anyone know how can I give full access to a specific user account
(actually the one running my Web app. Wich account, is another question) to
a specific registry key? I need my web app to create different subkeys.

I want to do this in a vsinstaller custom action, so the user
running this code I believe will have adminstrator privileges.

.... I'm running a little bit desperate here.

Thanks in advance.

I'm using ASPNET, VB.NET, VS2003 (.NET 1.1.4322)

--
Not an MCSDE, MVP, MCDE, MSFT or WTF
Not a single certification, besides my degree.
I'm just an engineer with more than 14 years spent in design and
programming.
.... FYI


.



Relevant Pages

  • Re: Connecting VS.NET 2003 to IIS6/WSS
    ... successful at creating a web app with the source tree on the web server. ... >> I'm posting this question here, rather than in the programming group, ... >> web apps, web parts, etc. wants to find an IIS installation (with Windows ...
    (microsoft.public.sharepoint.windowsservices)
  • Re: SBS 2003 Wizard cant create user cause failure in error messa
    ... Can you tell us where the registry key is located. ... When I create a new user by Add User Wizard. ... The wizard could not successfully configure this user account. ... Steve Foster ...
    (microsoft.public.windows.server.sbs)
  • Re: Directory Service is busy
    ... to disable or enable the user account through programming. ... >> msExchMasterAccountSid AQEAAAAAAAUKAAAA ... >> Plz help me this regards. ...
    (microsoft.public.win2000.active_directory)
  • Re: Creating a username but.......
    ... microsoft.public.win2000.security news group, MAN ... > What is that registry key which needs to be added for ... with a $ sign hid the user account. ... There is no user manager in Windows 2000. ...
    (microsoft.public.win2000.security)
  • Re: how to protect my codes
    ... fairly safe from reverse-engineering. ... Other issues are related to Web app ... Voodoo Programming: Things programmers do that they know shouldn't work but ... My codes need to be published now,but I learn ...
    (microsoft.public.dotnet.distributed_apps)