Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 686
Simon Temlett Avatar asked Jun 04 '09 10:06

Simon Temlett


People also ask

Where is Windows installation folder?

The c:\windows\installer folder stores installation information for all programs that were installed onto your PC. If you remove something from this folder, you may get unpredictable results with one or more of your applications....

Where are Windows 10 installation files?

Open the File Explorer using the icon on the Start menu or by pressing Win + E. Navigate to This PC and click on the drive where Windows is installed (typically the C Drive). Navigate to Program Files > Program Files (x86) and then scroll the list of folders until you find one with the program name you're looking for.

Can I delete Installer folder in Windows 10?

The size of the C:\Windows\Installer folder is by design and it is not supported to delete files from it. So, the question usually asked is: Can I safely remove the files in this directory? The answer is flatly: No.

What files are under Windows Installer?

When applications are installed and updated on the Windows Operating System a hidden directory "C:\Windows\Installer" is used to store the installer (. msi) files and the patch (. msp) files.


2 Answers

http://msdn.microsoft.com/en-us/library/ms995853.aspx

like image 141
matthewk Avatar answered Oct 11 '22 15:10

matthewk


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
)
like image 21
Piskvor left the building Avatar answered Oct 11 '22 15:10

Piskvor left the building