Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Program Files and ProgramData?

How do I decide which of my application's files go in Program Files (FOLDERID_ProgramFilesX64) and which go in ProgramData? (FOLDERID_ProgramData)? I don't understand what the reason is for splitting up my application's fixed files into these two categories or how I should decide which file goes in what.

For example - image files which my application displays, are they "program" or "data"?

Is there any problem with just putting everything under one or the other?

The application is installed for All Users and has no user-specific configuration files or data.

like image 816
M.M Avatar asked Dec 16 '14 04:12

M.M


People also ask

What is the difference between Program Files and Program Files 86x?

The Program Files stores all the 64-bit programs and the Program Files (x86) stores all the 32-bit programs. x86 stands for different processor types, i.e. 286, 386, 486, 586/Pentium.

What is ProgramData file?

The ProgramData folder in Windows 11/10 contains all the data, settings, and user files that are required by the installed software and UWP apps. This directory contains application data for all users. This folder is used for application data that is not user-specific.

What is difference between AppData and ProgramData?

Program Files is for storing the program itself, AppData is to store user specific information related to the program. (And ProgramData is to store not user-specific information related to the program).

Do I need Program Files and Program Files x86?

The regular Program Files folder holds 64-bit applications, while "Program Files (x86)" is used for 32-bit applications. Installing a 32-bit application in a PC with a 64-bit Windows automatically gets directed to Program Files (x86). See Program Files and x86.


1 Answers

Program Files is for executables and other static files that came as part of the installation. ProgramData is for user-agnostic data generated during execution such as shared cache, shared databases, shared settings, shared preferences, etc. User-specific data goes in the AppData folder. Note that these are for non-user-visible data. User-visible data belongs in the documents folder (or music, video, custom sibling folder, etc.).

Please see Special Folders and Custom Folders for a detailed explanation. Note that the terminology used varies slightly between the name used in the documentation here, the name of the folder, and the name used by various enumerations used to get these paths from the system.

like image 153
James Avatar answered Oct 09 '22 09:10

James