How to prevent files from being virtualized, i.e. copied from ProgramData folder into AllUsers folder?

336 Views Asked by At

I'm storing application data in the

C:\ProgramData folder. 

I want to prevent this data from being copied into

C:\Users\All Users\

What do I need to do in my application to disable this functionality?

1

There are 1 best solutions below

0
On

C:\Users\All Users is a symbolic link to C:\ProgramData. C:\ProgramData is the "real" location while C:\Users\All Users is there just for compatibility.

So nothing is actually copied to C:\Users\All Users, it just points to C:\ProgramData where the files actually are.

Reference

Edit: I found this somehow-similar SuperUser question