Physical location of Windows Store applications and data on a PC

When developing Windows Store applications for the Windows 8, it’s important (or at least interesting) to know where the applications get stored after installing it through the Store, where all the files go when we write to the LocalFolder, RoamingFolder, and TemporaryFolder, and also where the values that we add to the collections LocalSettings and RoamingSettings are physically stored.

All the applications that are installed through the Store are physically stored in the folder %ProgramFiles%\WindowsApps, which usually is C:\Program Files\WindowsApps.

In this folder are all the files that are needed for the application to run, and, by default, this folder has the permissions set in a way that prevents the normal user to access its content, but it is possible to change this permissions if we want to, and this is a topic for another post.

The data files for each application are stored in the folder %USERPROFILE%\AppData\Local\Packages\{PackageId}, which usually is C:\Users\{UserName}\AppData\Local\Packages\{PackageId}, where {UserName} corresponds to the Windows user name and {PackageId} corresponds to the Windows Store application package identifier.

Inside of each package folder we have folders like LocalState, RoamingState, and TempState, which corresponds to the place where the files stored through LocalFolder, RoamingFolder, and TemporaryFolder respectively, and the folder Settings which has a file settings.dat where all the values we add to the collections LocalSettings and RoamingSettings are stored.

Interestingly enough, the Store application is not stored in the same folder as all the other Windows Store applications, and is located at %windir%\WinStore, which usually is C:\Windows\WinStore.

Summary:

Windows Store applications %ProgramFiles%\WindowsApps
The “Store” application %windir%\WinStore
LocalFolder %USERPROFILE%\AppData\Local\Packages\{PackageId}\LocalState
RoamingFolder %USERPROFILE%\AppData\Local\Packages\{PackageId}\RoamingState
TemporaryFolder %USERPROFILE%\AppData\Local\Packages\{PackageId}\TempState
LocalSettings %USERPROFILE%\AppData\Local\Packages\{PackageId}\Settings\settings.dat
RoamingSettings %USERPROFILE%\AppData\Local\Packages\{PackageId}\Settings\settings.dat
This entry was posted in Windows 8 and tagged , , , . Bookmark the permalink.

3 Responses to Physical location of Windows Store applications and data on a PC

  1. Pingback: Get access to the %ProgramFiles%WindowsApps folder and view apps source code | Caio Proiete (EN)

  2. Pingback: Where Windows Store Apps Actually Store Stuff | public class Random : Coding {

  3. Edwin Heidbuurt says:

    Great post!
    Exactly the answer I was looking for.

    Best Regards,
    Edwin

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>