Solved

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

Posted on 2014-12-30
6
130 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
[X]
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
6 Comments
 
LVL 12

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
Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

 
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 12

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

733 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