Options

Installing Software on Microsoft OS

gojericho0gojericho0 Member Posts: 1,059 ■■■□□□□□□□
Why is it when you install software on Windows it puts most of the files in the directory you create, but puts others in the Windows or system folders? Why can't it just put everything in one folder?

Comments

  • Options
    JDMurrayJDMurray Admin Posts: 13,031 Admin
    One upon a time in the MS-DOS days, programs were self-contained and did not normally share files. Every installed DOS program and all of its files lived in separate subdirectories. A program's subdirectory could be easily moved on disk without breaking other programs. Life was simple and good.

    Under Windows, it was decided that most applications would share a common set of libraries and run-time files. If Windows apps were installed entirely into a single folder like MS-DOS programs, these files could not be easily shared, and more importantly, expensive disk space would be wasted by redundantly storing identical files in multiple subfolders.

    To solve this problem, Microsoft created specific system folders where "shared components" would be stored which multiple programs could use, and "The Registry" to identify what was stored there. This saved disk space, but created a condition known a "DLL Hell," in which one installation overwrote a newer DLL with an older version of the same DLL, possibly breaking other programs. Thus, life was not entirely good (but it created jobs for software and IT people).

    With the invention of inexpensive disk space, Windows Vista, and Microsoft .NET, the trend today is to go back to storing each program (almost) entirely into a separate folder one again. If you need to store files in a common area, you will still be able to do that, but it is not a requirement. Technically, it was not a requirement under earlier versions of Windows either, and that was one of the solutions for DLL Hell.

    Who knows what operating system design innovations Microsoft will bring us all tomorrow... icon_eek.gif
  • Options
    gojericho0gojericho0 Member Posts: 1,059 ■■■□□□□□□□
    Thanks JD!

    You always give very good detailed answers. I saw you mentioned an install\uninstall utility from http://www.martau.com/ another post so i downloaded it to capture some of these changes in action inorder to understand more of the behind the scenes transactions of windows
  • Options
    JDMurrayJDMurray Admin Posts: 13,031 Admin
    I enjoy my detailed trips down memory lane. icon_wink.gif

    I haven't used an installation capture utility for a couple of years now, so I'll be interested in hearing how you like it. There are many to choose from, and I don't really know if there's one that's clearly above the rest in features versus ease of use.
Sign In or Register to comment.