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. Vista System32 access denied

Vista System32 access denied

Scheduled Pinned Locked Moved C#
csharpc++helpworkspace
4 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.
  • I Offline
    I Offline
    Identity Undisclosed
    wrote on last edited by
    #1

    I am developing an application in C# and want it to run under Vista environment. I am copying a specific file from a path to Windows/System32 Folder. However, I get access denied error even though I have logged in as administrator. Thanks.

    "C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup

    P 1 Reply Last reply
    0
    • I Identity Undisclosed

      I am developing an application in C# and want it to run under Vista environment. I am copying a specific file from a path to Windows/System32 Folder. However, I get access denied error even though I have logged in as administrator. Thanks.

      "C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup

      P Offline
      P Offline
      Paul Conrad
      wrote on last edited by
      #2

      Does the file you are copying already exist in the folder?

      "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

      I 1 Reply Last reply
      0
      • P Paul Conrad

        Does the file you are copying already exist in the folder?

        "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        I Offline
        I Offline
        Identity Undisclosed
        wrote on last edited by
        #3

        Of course. I get the access deny error in vista. If I copy to sub-folder where the application reside, I dont get any sort of issue. I assume this is because of extra security measurement taken by vista. I am looking for a possible solution, since I have seen many applications having the access to system32 folder. Thanks.

        "C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup

        M 1 Reply Last reply
        0
        • I Identity Undisclosed

          Of course. I get the access deny error in vista. If I copy to sub-folder where the application reside, I dont get any sort of issue. I assume this is because of extra security measurement taken by vista. I am looking for a possible solution, since I have seen many applications having the access to system32 folder. Thanks.

          "C makes it easy to shoot yourself in the foot. C++ makes it harder, but when you do, it blows away your whole leg." - Bjarne Stroustrup

          M Offline
          M Offline
          mav northwind
          wrote on last edited by
          #4

          You'll have to cope with UAC (look it up in wikipedia if you don't know what this means). If you want to perform certain actions Vista deems dangerous, the user has to explicitely allow these actions. By embedding a manifest in your app telling Vista that it wants to be executed as administrator, you can perform these "dangerous" actions nevertheless.

          Regards, mav -- Black holes are the places where God divided by 0...

          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