Why aren't more programs portable? I just bought a huge portable hard drive
and I'm transferring many of my applications there and finding that they
write their settings (or sometimes some other information) to the Registry
and not to the application folder. Is there a reason more software authors
choose to use the Registry instead of an .ini or .dat file or something?
This is pretty frustrating.
What Is a Windows System Registry?
The system registry is one of the most important parts of a
Windows-based computer system. The registry is a system-defined database
used by the Windows operating system to store configuration information.
Most Windows applications write data to the registry during
installation, and system components store and retrieve configuration
data through the registry. The data stored in the registry varies
according to the version of Microsoft Windows.
How Applications Use the Registry
Applications use the registry in several ways. They can add data to your
registry by creating or opening existing keys. When applications add to
the registry, the data is sorted by computer-specific data or
user-specific data. Through this distinction applications can support
multiple users and locate user profile data. An application can close a
key and write the data it contains into the registry and applications
can delete a value from a key or delete a key. Applications can also
save specific data, or parts of the system registry in a file to load
that file into the registry which is common when large amounts of data
is being handled, or when multiple entries are being added to the
registry.
In Windows 3.1, INI or initialization files were used to hold
information used to configure application programs. For example, an INI
file might have a list of the most recently used files or hold the
status of an option to save modified files. However, INI files had
several weaknesses:
* Uncertain location-INI files could be found in either the \windows
directory or the application's directory.
* Size limitations-INI files were limited to 64K bytes.
* Easy to modify-INI files were simple text files. End-users could
modify them and create technical support problems.
* Hard to back up-Since INI files can be in any directory, it was nearly
impossible to back up and restore application configurations.
These problems, and others, prompted Microsoft to design the Registry.
The Registry is a database that contains information about your
operating system, its applications and file associations. An exhaustive
list of the different types of information is too long to reproduce
here. Suffice to say that the Registry holds both hardware and software
information.
Opting for no install programs that don't write to the Registry is the
same as opting to continue to run DOS when the rest of the world has
moved on to newer Operating Systems.