Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8767985
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T16:57:22+00:00 2026-06-13T16:57:22+00:00

Many questions on SO say Windows developer guidelines or windows design guidelines say that

  • 0

Many questions on SO say “Windows developer guidelines” or “windows design guidelines” say that you shouldn’t write temporary or program data to the Program Files area, but as far as I can tell none of them actually link to a piece of documentation that says as much. Searching the MSDN has yielded me no results. Windows will make the area read-only, so it can be enforced by the OS, but that doesn’t mean developers didn’t try to write there anyway (e.g., when porting older, XP and earlier based programs forward.)

I realize that it seems odd to ask about it this late into Windows development (since, as a commenter below pointed out, has been enforced by the OS for more than a decade), but a document that says so is sometimes necessary to satisfy people.

With that in mind, Does Microsoft have a document published stating we shouldn’t write application data to the Program Files area, and if so, where is it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T16:57:23+00:00Added an answer on June 13, 2026 at 4:57 pm

    From Technical requirements for the Windows 7 Client Software Logo Program:

    Install to the correct folders by default

    Users should have a consistent and secure experience with the default
    installation location of files, while maintaining the option to
    install an application to the location they choose. It is also
    necessary to store application data in the correct location to allow
    several people to use the same computer without corrupting or
    overwriting each other’s data and settings.


    Windows provides specific locations in the file system to store
    programs and software components, shared application data, and
    application data specific to a user:

    • Applications should be installed to the Program Files folder by default. User data or application data must never be stored in this
      location because of the security permissions configured for this
      folder
      (emphasis added)
    • All application data that must be shared among users on the computer should be stored within ProgramData
    • All application data exclusive to a specific user and not to be shared with other users of the computer must be stored in
      Users\<username>\AppData
    • Never write directly to the “Windows” directory and or subdirectories. Use the correct methods for installing files, such as
      fonts or drivers
    • In “per-machine” installations, user data must be written at first run and not during the installation. This is because there is no
      correct user location to store data at time of installation. Attempts
      by an application to modify default association behaviors at a machine
      level after installation will be unsuccessful. Instead, defaults must
      be claimed on a per-user level, which prevents multiple users from
      overwriting each other’s defaults.

    And I’m quite sure that there’s similar stuff for every Windows version of the NT family going back to Windows NT 4 or even earlier.


    See also this question.


    Edit: the original link in this post to the Windows 7 Logo program exists no more. Here you find the current link to the Certification requirements for Windows Desktop Apps. See Section 10, Apps must install to the correct folders by default

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Seen many other similar questions like this on this website and i would say
There are many questions like this but I can't find one that seems to
Okay, I've realized that I really have asked way too many questions without contributing
Many questions here on SO ask about custom classes. I, on the other hand,
There were many questions about C++ template classes which contain static member variables, as
There's been many questions on styling on action bars, but the ones I've found
Daily there are many questions of the following type on SO: How do I
I have checked many questions here but none has my answer. I appreciate if
I've seen many questions like this, but i can't seem to find the answer:
I've seen many questions on SO about .NET 3.5 advantages, but these are more

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.