Reputation: 235
I have a problem with UAC permission in windows 7 & vista . My application copies it self to C:/file.exe . The problem is the application says "Access to path is denied" , so I've changed "requestedExecutionLevel" in manifest file to "requireAdministrator" , and it worked well . But I had a problem on UAC disabled machines , it says again " Access to path is denided" , so how I can solve this problem on UAC disabled machines ?
Upvotes: 0
Views: 184
Reputation: 1069
It is because the C:/, actually the driver which the OS is installed to, folder is a protected folder that requires administrator privileges for writing operations. This also happens in some other folders like Program Files folder and its all subfolders.
Thus, simply move your file to somewhere else.
Upvotes: 1