I have an application that writes program settings to the windows registry that is absolutely necessary so.storing to a file is not an option.
To simplify this, I wo
In newer versions of Delphi this is no longer necessary.
Under Project Options, then Application, there is a section for the manifest:
Screenshot from version 10.2.1 Tokyo
This automatically takes care of the XP manifest mentioned as a warning at the botom of Kobik's answer.
I do not know from which Delphi version this was available.
(Free free to edit this answer if you know).
(Edit Ian Murphy Feb 2019: It is not available in XE2)