Questions tagged [programdata]
44 questions
72
votes
2 answers
What is the difference between ProgramData and AppData?
I need to store some user-specific configuration data for my program. Both Application Data/AppData (in the user's directory) and ProgramData (in the root of the system drive) seem like reasonable places to put it.
What is the difference between…

Ganeshja
- 2,675
- 12
- 36
- 57
55
votes
1 answer
What is the significance of the ProgramData folder in Windows?
What is the importance of the ProgramData folder in Windows?
I have noticed that many installed programs store files in a subdirectory of the ProgramData folder. Is there a specific reason for that?
I have to create an installer for my application.…

Ullan
- 1,311
- 8
- 21
- 34
16
votes
3 answers
Write in "ProgramData" folder (W7 and Vista) .NET
I install my app under "Program Files" directory. And I install data, under "ProgramData" directory:
Environment.SpecialFolder.CommonApplicationData
In programData I have created folder to save data. Example:
C:\ProgramData\MyApp\MyData\here I have…

aco
- 819
- 4
- 15
- 32
15
votes
2 answers
How to get the application specific data folder (ProgramData)?
I need to read and write files that contain application specific data, shared between all the users.
I tried to use Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), but it returns only C:\ProgramData.
My question is :
Does…

paulinodjm
- 205
- 1
- 2
- 6
15
votes
5 answers
Vista and ProgramData
What is the right place to store program data files which are the same for every user but have to be writeable for the program? What would be the equivalent location on MS Windows XP? I have read that C:\ProgramData is not writeable after…

frast
- 2,700
- 1
- 25
- 34
15
votes
2 answers
Win32 function to get path to C:\ProgramData
My app needs to install some files that can be edited by the application at run time. Install shield provides an alias [CommonAppDataFolder] that will resolve to c:\programData on Vista and Windows 7 and will also work on Windows XP. Is there a…

Mike2012
- 7,629
- 15
- 84
- 135
12
votes
2 answers
How to create subfolder in C:\ProgramData and deploy configuration files into that folder?
I tried this using the following code but the subfolder inside the "ProgramData" folder is not created. My requirement is to install some files in install directory provided by user and deploy a few configuration files into "ProgramData", e.g.…

Nikhil Arackal Sivadas
- 123
- 1
- 1
- 5
8
votes
2 answers
Nullsoft installer, howto make ProgramData subfolder writable
ProgramData folder is the best place for storing your application's writeable files shared by all users. But when Nsis installer is run with admin privileges (which is required to write to Program Files), then folders and files created in…

SiliconMind
- 2,185
- 4
- 25
- 49
5
votes
1 answer
Why would one ever use the %TEMP% folder now that Storage Sense can clean it at any time?
Starting with Windows 10, Storage Sense has allowed users to specify %TEMP% folder cleanup that are as frequent as once a day. Technically it can run even more often is set to activate on low disk space, depending on one's disk usage patterns.
In…

Ohad Schneider
- 36,600
- 15
- 168
- 198
5
votes
1 answer
How to copy files to CommonAppDataFolder?
In WiX I have

Jader Dias
- 217
- 3
- 8
5
votes
2 answers
Common Application Data Path in windows installer
As I searched there is a folder in windows partition named "ProgramData" that contains applications' data which is used by applications in run time. Since this folder does not need admin permission and it is common between system users it is the…

Reza Ameri
- 1,803
- 3
- 24
- 32
4
votes
2 answers
File redirection from Program data to AppData\Local\VirtualStore\ProgramData
I am using C# with .net 3.5
I am saving my program data in a file under: C:\Program Data\MyProgramName\fileName.xml
After installing and running my application one time I uninstalled it (during uninstallation I'm removing all the files from "program…

user844541
- 2,868
- 5
- 32
- 60
4
votes
1 answer
Environment.SpecialFolder.CommonApplicationData returning Program Files/App folder
I developed WPF application (.NET 4.5) which is storing some config files at CommonApplicationData folder.
For that purpose I'm using following:
string AppDataFolder = Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData);
Also…

rjovic
- 1,207
- 2
- 16
- 37
4
votes
1 answer
Change path to save mysettings - VB.NET 2008
I am using mysettings to save user settings.
This config file is saved in this path:
c:\ Documents and
Settings \ \ [Local
Settings] Application
Data\\\
Is possible to change this path? For example, in my case I save app data in…

aco
- 819
- 4
- 15
- 32
3
votes
1 answer
How to create a folder under %allusersprofile% during Setup with VS 2003 Setup Project?
I need to create a folder under "%allusersprofile%/Program Data" during the install process.
The Setup file is created with VS 2003 setup project, and in it you can use several Known Folders... but as I see none maps to %allusersprofile% or…

Romias
- 13,783
- 7
- 56
- 85