Does Microsoft have a best practices document regarding the storage of App Data vs User Data on different Windows Platforms?

前端 未结 2 485
一整个雨季
一整个雨季 2020-12-02 23:36

When creating an application that will be targeted to many versions of Windows what is the best practice to determine where application specific data should be stored. Speci

2条回答
  •  自闭症患者
    2020-12-03 00:19

    These are usually described in the Windows Software Logo Program (link broken). The link is to the Windows 7 logo requirements document, but similar documents exists for XP, Windows 2003, Vista and Windows 2008. In the Technical Requirements section you'll find some of the information you're looking for:

    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\\AppData

    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.

    EDIT:

    Windows 10 users, look for the Certification requirements for Windows Desktop Apps (Section 10)

提交回复
热议问题