Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Changing Registry Permissions Programmatically

Changing Registry Permissions Programmatically

Scheduled Pinned Locked Moved C#
csharpsysadminwindows-admintutorialquestion
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    perlmunger
    wrote on last edited by
    #1

    Does anyone know how to change the permissions or add a user to a particular registry key programmatically? I know you can do this manually with regedit so it follows that you should be able to do it programmatically. I just haven't seen any clear docs on how this might be accomplished with C#. I've looked at using the Registry functions in the framework, however, nothing stands out as a way to accomplish this. Any suggestions? Thanks. -Matt p.s. I am trying to do this from an installer/deployment app. ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

    L 1 Reply Last reply
    0
    • P perlmunger

      Does anyone know how to change the permissions or add a user to a particular registry key programmatically? I know you can do this manually with regedit so it follows that you should be able to do it programmatically. I just haven't seen any clear docs on how this might be accomplished with C#. I've looked at using the Registry functions in the framework, however, nothing stands out as a way to accomplish this. Any suggestions? Thanks. -Matt p.s. I am trying to do this from an installer/deployment app. ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

      L Offline
      L Offline
      leppie
      wrote on last edited by
      #2

      perlmunger wrote: I've looked at using the Registry functions in the framework, however, nothing stands out as a way to accomplish this. Any suggestions? I suggest you read it again! Its all rather clear... leppie::AllocCPArticle("Zee blog");
      Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.

      P 1 Reply Last reply
      0
      • L leppie

        perlmunger wrote: I've looked at using the Registry functions in the framework, however, nothing stands out as a way to accomplish this. Any suggestions? I suggest you read it again! Its all rather clear... leppie::AllocCPArticle("Zee blog");
        Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.

        P Offline
        P Offline
        perlmunger
        wrote on last edited by
        #3

        Jerk! ;-) Seriously though, all I see is information on reading the permissions, not changing them. Do you have particular links you can point me to? -Matt p.s. I'm surprised at you leppie. You've not been a smart ass when answering my questions before. :-D ------------------------------------------ The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups