Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

When did INI files in the C:\Windows folder become bad practice?

Posted on 2014-12-30
6
129 Views
Last Modified: 2015-01-15
Back in the Windows 3.1 days, programs would store configuration data in .INI files stored in the C:\Windows folder.

Nowadays, of course, this isn't a good idea anymore and it is surpassed by newer technologies like the Registry, and saving data in the user's AppData folder. For lots and lots of good reasons.

Is there a SPECIFIC Microsoft reference article or KB article that discusses this change in best practices, or some other kind of documentation I can point at to say when this shift in thinking occured on Microsoft's part? Maybe some kind of "introduction to the Registry" document from '95?

I'm trying to convince a stubborn vendor to update their software.
0
Comment
Question by:Frosty555
6 Comments
 
LVL 11

Assisted Solution

by:andreas
andreas earned 250 total points
ID: 40524658
0
 
LVL 1

Accepted Solution

by:
goldied earned 250 total points
ID: 40524678
Hey, just Google for user account control. I've worked for a software vendor and anything that has to write to the c: drive in system folders or even in its own root folder will fail.

This is the reason for what was originally dubbed windows logo certification. Your vendor needs to become Microsoft certified in order to be fully compliant.

http://msdn.microsoft.com/en-gb/library/windows/desktop/dd371701%28v=vs.85%29.aspx
0
 
LVL 48

Expert Comment

by:dbrunton
ID: 40524870
Probably Windows NT introduced the idea of using the Registry rather than ini files.

See http://en.wikipedia.org/wiki/Windows_Registry#Virtualization

If you read the article it DOES NOT mean that Windows will take care of the ini problem.
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 38

Expert Comment

by:BillDL
ID: 40525498
An interesting question was posed here:
http://blogs.msdn.com/b/oldnewthing/archive/2006/02/22/536920.aspx#536935
and it led to the posting of a pros vs cons blog entry here:
http://blogs.msdn.com/b/oldnewthing/archive/2007/11/26/6523907.aspx

It all depends on the complexity of the "program".  It would be practically impossible to store all the configuration data for an application suite like Microsoft Office in INI or XML-based config files, but for programs like IrfanView image editor, CCleaner, and so on, I see no compelling reason why the program settings should not be stored in an INI file in the program's own folder.
0
 
LVL 11

Expert Comment

by:andreas
ID: 40525509
under win vista and up the c:\program files cannot be writteen to without admin rights. files wirtten with user rights end up in the profile folder of the user in some shadow directories, so the settings apply only rto this user created the file. if a file already persistent in the folder from installation and needs to be modified im not sure if a copy will go to the shadow dir or if it only can be modified with admin access. Thus putting files to the programs folder is laso no good way.
0
 
LVL 70

Expert Comment

by:Éric Moreau
ID: 40525527
I wouldn't agree that the registry is a better option over config files. When programming in .Net, you are encouraged to use App.Config files (a kind of INI file XML formatted) as one is already created when creating a new project.
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Accessing two networks from one PC 30 112
SSIS Start 2 21
Octopus Deploy: need a Time Event that fires every midnight 2 15
Windows 10, Hotmail and AdChoices 7 14
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
When you try to extract and to view the contents of a Microsoft Update Standalone Package (MSU) for Windows Vista, you cannot extract the files from the MSU. Here we are going to explain how to extract those hotfix details without using any third pa…
The viewer will learn how to successfully create a multiboot device using the SARDU utility on Windows 7. Start the SARDU utility: Change the image directory to wherever you store your ISOs, this will prevent you from having 2 copies of an ISO wit…
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

828 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question