0

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?

DaveDev
  • 41,155
  • 72
  • 223
  • 385
  • Aren't those just the same location anyways? `C:\Users\All Users` is a link (or whatever is the correct terminology) to `C:\ProgramData` (had it backwards, confirmed in explorer). – Chris O Aug 22 '12 at 16:01
  • This specific kind of virtualization is in place to handle misbehaving legacy applications. Is there a particular reason why you *need* it to use C:\ProgramData ? – PhonicUK Aug 22 '12 at 16:02
  • 1
    @ChrisO is right (well.. sort of). `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. – Adi Aug 22 '12 at 16:03

1 Answers1

1

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

Community
  • 1
  • 1
Adi
  • 5,089
  • 6
  • 33
  • 47