Why can I write to a specific directory with program files with UAC?

This is strange to me. Let me list the setting:

  • Application with manifest (i.e. won't be redirected to the virtual store)
  • UAC enabled (cannot write to other program file directories or other areas and uac prompt appears)
  • Can be written to "c: \ program files \% app_name% \% directory% \" both from my application (both admin cannot be launched) and non admin command line
  • Unable to write to "c: \ program files \% app_name% \% directory% \% subdirectory% \".

Any ideas? Are there hidden permissions or registry settings somewhere? Maybe this directory was created when UAC was turned off, so now it's fair play? Could it be that this directory was created during XP and its fair play?

It seems to me that I cannot write to other directories of program files and to a subdirectory. However, I have no idea why I am actually allowed to write to the% directory%?

Note: if I move the% directory% to a different area (appdata), I still can't write to the subdirectory (confused).

Let me know any ideas you have or anything I can test.

thank

+1


source to share


1 answer


EDIT: Arr sorry, I pulled your post too quickly, it looks like this is not a problem!

Have you looked at where the written files actually go?

Vista has a feature where files written to Program Files folders by applications are redirected to local storage for each user. This store is located in the% userprofile% \ AppData \ Local \ VirtualStore folder



This means that legacy applications that wrote program files for user preferences still work correctly and also allow multiple users to use the program without conflicts.

The browser has a Compatibility Files button that takes you to this user store. Perhaps your recordings end there?

I'm not sure why you can't write to a subdirectory. Security permissions?

+1


source







All Articles