how to write to AppData\Local\App folder instead of PackageName\AppData\Local\App #4018
-
I am having a packaged win ui 3 app whose main purpose is to authenticate user and store idtoken in a cred.json file. The reason being, i have another win32 dll, which loads into windows registration server, and calls few apis with the stored idtoken in cred.json. Unfortunately, Win ui app creates its own private space in PackageName\AppData\Local\App. So what do i do here to make my win ui app use AppData\Local\App folder. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
This is a function of the application package itself. This behaviour is documented. Your only real option is to disable Windows' virtualization of AppData. The steps to do this are also documented. |
Beta Was this translation helpful? Give feedback.
-
Maybe you could use CredVault to store the credential token instead of a file on the filesystem? Then you could avoid poking out of hte virtualization bubble. See https://learn.microsoft.com/windows/win32/api/wincred/nf-wincred-credwritea for how to securely store a credential user-wide with an identifier of your choosing as the |
Beta Was this translation helpful? Give feedback.
This is a function of the application package itself. This behaviour is documented. Your only real option is to disable Windows' virtualization of AppData. The steps to do this are also documented.