Simon Temlett
Simon Temlett

Reputation: 2487

Windows Installation Folders

Where do I find a definitive guide as to where, when I am installing a new application into Windows, the application exe's, database tables, configuration files should go?

Also guidelines to which registry keys should be used for persisting user and application data.

Best regards,

Simon

Upvotes: 6

Views: 579

Answers (2)

Piskvor left the building
Piskvor left the building

Reputation: 92752

Check out Microsoft's suggestions: Windows File System Namespace Usage Guidelines seems to be what you want. (the file name is slightly misleading - the downloadable PDF file shows these guidelines both for Windows Vista and Windows XP)

To find and query those programatically, see the MSDN Known Folders topic; also see the list of common Known Folder constants. Simplest example for SHGetKnownFolderPath and the Startup folder:

SHGetKnownFolderPath(
    FOLDERID_Startup,
    0,
    NULL,
    path_will_be_here_when_function_returns
)

Upvotes: 3

Related Questions