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
  1. Home
  2. General Programming
  3. C#
  4. Best practice for using Registry - UAC Issues

Best practice for using Registry - UAC Issues

Scheduled Pinned Locked Moved C#
windows-adminhelpquestiondiscussion
3 Posts 3 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.
  • B Offline
    B Offline
    Brad Wick
    wrote on last edited by
    #1

    My application writes data into the Registry which is causing a UAC issue on vista. I keep data in the registry so I can access it across different applications we have (this is not a mass product but only installed on selected machines). Since I am storing data into the LocalMachine SOFTWARE keys, is that was is causing the UAC errors, or should I store the application config settings somewhere else?

    M L 2 Replies Last reply
    0
    • B Brad Wick

      My application writes data into the Registry which is causing a UAC issue on vista. I keep data in the registry so I can access it across different applications we have (this is not a mass product but only installed on selected machines). Since I am storing data into the LocalMachine SOFTWARE keys, is that was is causing the UAC errors, or should I store the application config settings somewhere else?

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Look into the use of the applicationdata folder, I beleive it is designed for this type of use instead of the registry. I think you'll find fighting Vista's UAC will drive you nuts whereas changing the data store is fairly simple.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • B Brad Wick

        My application writes data into the Registry which is causing a UAC issue on vista. I keep data in the registry so I can access it across different applications we have (this is not a mass product but only installed on selected machines). Since I am storing data into the LocalMachine SOFTWARE keys, is that was is causing the UAC errors, or should I store the application config settings somewhere else?

        L Offline
        L Offline
        Luc 648011
        wrote on last edited by
        #3

        Anything that is user specific will work just fine, such as Environment.SpecialFolder.ApplicationData and HKCurrentUser. Anything that applies to all users will fail unless you have admin rights and elevated privileges apply, as for Environment.SpecialFolder.CommonApplicationData and HKLocalMachine. The logic is: a single regular user is not allowed to influence the machine's behavior for other users. :)

        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