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