Do not anymore use a Registry key to find the GnuPG installation.
* src/common.cpp (get_gpg4win_dir): Rewrite to get rid of the the need for Registry keys. Also tell gpgme about the installation directory on the first call. Return a const string and change all callers accordingly. (get_gpgme_w32_inst_dir): Remove. * src/gpgoladdin.cpp (GpgolAddin::GpgolAddin): Do not use get_gpgme_w32_inst_dir but simply call get_gpg4win_dir for its side-effect. * src/wks-helper.cpp (get_wks_client_path): Change the order on how to find gpg-wks-client. A GnuPG subdir has now priority.
This allows to use the gpg version which comes with GpgOL. This way
we won't get into nonmatching gpgol and gnupg versions.
Note that there is still some use of Registry keys for launching
Kleopatra via the UI-Server. This should better also be changed; it
is not clear wehether this active code at all.
- GnuPG-bug-id: T7040