Hello,
in my program I've got the following lines:
|
Source code
|
1
2
|
QSettings gnuPGsettings("HKEY_CURRENT_USER\\Software\\GNU\\GNUPG", QSettings::NativeFormat);
gnuPGHome = gnuPGsettings.value("HomeDir").toString();
|
The program should be protable, so no registry key should be created. Problem is, that with the first line the key is automatically created, if it doesn't already exist. So how can I prevent the creation of this key?
I already searched a lot without any helpful result.
Many thanks in advance for any help.