简体   繁体   中英

UAC error (VB.NET)

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 ?

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM