Hi, I am still trying to figure out read/write permissions for:
Environment.SpecialFolder.CommonApplicationData (which maps out to "C:\ProgramData\")
I have created a standard VB.Net application and installed it using the official Microsoft Visual Studio 2017 Installer Project on a standard Win 10 computer. If a non-admin "standard user" runs this application, can this user:
1) Create a subfolder in this CommonApplicationData folder (e.g. "C:\ProgramData\MyApp\"?
2) Read AND Write to files in this subfolder?
What about for a local admin user, who runs this same app WITHOUT using the UAC "Run as administrator" (or modified in the Manifest). Can this local admin user:
3) Create a subfolder in this CommonApplicationData folder (e.g. "C:\ProgramData\MyApp\"?
4) Read AND Write to files in this subfolder?
I have tested it, and it seems to work on my development computer using a standard user, but in scouring the web, I have found other sources stating that the folders/files may need to have their permissions manually modified, which I have no interest in doing.
This is supposed to hold common data to be used by all users on this computer (rather than using the local, roaming, etc. folders). I would also prefer not to use network drives, SQL databases, etc.