SOLVED

Where is APPDATA going to

%3CLINGO-SUB%20id%3D%22lingo-sub-2774596%22%20slang%3D%22en-US%22%3EWhere%20is%20APPDATA%20going%20to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2774596%22%20slang%3D%22en-US%22%3E%3CP%3ESee%20the%20screenshot%20from%20my%20package%20below.%3C%2FP%3E%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Pollewops_0-1632323468532.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F312087i92CB9425222050A4%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Pollewops_0-1632323468532.png%22%20alt%3D%22Pollewops_0-1632323468532.png%22%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3CP%3ECan%20someone%20tell%20me%20where%20the%20%5B%7BAppData%7D%5D%20folder%20is%20going%20to%20be%20placed.%20When%20installing%20the%20package%20I%20can'%20t%20find%20it%20on%20my%20system.%26nbsp%3B%3C%2FP%3E%3CP%3EI%20thought%20it%20will%20be%20somewhere%20here%2C%20but%20is%20isn't%20.%3C%2FP%3E%3CP%3EC%3A%5CUsers%5C%3CUSERNAME%3E%5CAppData%5CLocal%5CPackages%5CAccessClientSolutions-0101.01-ENG_fg0t8wag126gc%3C%2FUSERNAME%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ESome%20files%20are%20placed%20here%20in%20appdata%2C%20which%20i%20need%20to%20access%20from%20a%20shortcut.%20But%20i%20can'%20t%20find%20the%20files%20and%20then%20i%20can'%20t%20configure%20the%20shortcut%20to%20use%20those%20files%20if%20that%20is%20possible.%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2789402%22%20slang%3D%22en-US%22%3ERe%3A%20Where%20is%20APPDATA%20going%20to%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2789402%22%20slang%3D%22en-US%22%3EThe%20AppData%20folder%20in%20your%20package%20will%20appear%20under%20the%20VFS%20folder%20under%20the%20package%20root%2C%20just%20like%20all%20other%20VFS%20folders.%20Except%20that%20without%20the%20PSF%20FileRedirectionFixup%2C%20your%20app%20is%20unlikely%20to%20see%20the%20files.%20Explanation%3A%3CBR%20%2F%3E%3CBR%20%2F%3ESoftware%20running%20in%20the%20container%20(without%20PSF)%20generally%20maps%20native%20file%20requests%20to%20also%20check%20the%20appropriate%20VFS%20folders%20under%20your%20package%20root.%20Unfortunately%2C%20it%20doesn't%20map%20requests%20to%20the%20local%20AppData%20or%20LocalAppData%20folders%20to%20the%20VFS%20folders.%20We%20don't%20know%20why%2C%20it%20just%20is%20that%20way.%3CBR%20%2F%3E%3CBR%20%2F%3EAdding%20in%20the%20FileRedirectionFixup%20of%20the%20PSF%20can%20make%20these%20folders%20visible%2C%20as%20well%20as%20making%20them%20modifiable.%20When%20one%20of%20those%20files%20is%20referenced%2C%20it%20would%20be%20copied%20out%20to%20the%20user's%20AppData%2FLocal%2FPackages%2F%5BPackageName%5D%5CLocalCache%5CMicrosoft%5CWritablePackageRoot%5CVFS%3CBR%20%2F%3EAppData%20folder%20and%20opened%20from%20there.%3C%2FLINGO-BODY%3E
Contributor

See the screenshot from my package below.

Pollewops_0-1632323468532.png

Can someone tell me where the [{AppData}] folder is going to be placed. When installing the package I can' t find it on my system. 

I thought it will be somewhere here, but is isn't .

C:\Users\<username>\AppData\Local\Packages\AccessClientSolutions-0101.01-ENG_fg0t8wag126gc

 

Some files are placed here in appdata, which i need to access from a shortcut. But i can' t find the files and then i can' t configure the shortcut to use those files if that is possible.

 

1 Reply
best response confirmed by Pollewops (Contributor)
Solution
The AppData folder in your package will appear under the VFS folder under the package root, just like all other VFS folders. Except that without the PSF FileRedirectionFixup, your app is unlikely to see the files. Explanation:

Software running in the container (without PSF) generally maps native file requests to also check the appropriate VFS folders under your package root. Unfortunately, it doesn't map requests to the local AppData or LocalAppData folders to the VFS folders. We don't know why, it just is that way.

Adding in the FileRedirectionFixup of the PSF can make these folders visible, as well as making them modifiable. When one of those files is referenced, it would be copied out to the user's AppData/Local/Packages/[PackageName]\LocalCache\Microsoft\WritablePackageRoot\VFS
AppData folder and opened from there.