this->registry->setValue("\\SystemFileAssociations\\.png\\shell\\View image tiled\\command", "T12345");
this->registry = new QSettings("HKEY_CLASSES_ROOT", QSettings::NativeFormat);
this->registry->setValue("\\SystemFileAssociations\\.png\\shell\\View image tiled\\command", "T12345");
To copy to clipboard, switch view to plain text mode
Results in "HKEY_CLASSES_ROOT" having an entry *named* "HKEY_CLASSES_ROOT/SystemFileAssociations/.png/shell/View image tiled/command" with a value of "T12345"
this
->registry
= new QSettings("HKEY_CLASSES_ROOT\\SystemFileAssociations\\.png\\shell\\View image tiled\\command",
QSettings::NativeFormat);
this->registry->setValue(".", "T12345");
this->registry = new QSettings("HKEY_CLASSES_ROOT\\SystemFileAssociations\\.png\\shell\\View image tiled\\command", QSettings::NativeFormat);
this->registry->setValue(".", "T12345");
To copy to clipboard, switch view to plain text mode
Results in nothing being created if in non-admin, but created in the right spot if running as admin.
So setValue() assumes the first parameter is a complete name, and not a path to a name, even if broken with slashes.
Alright, so I need elevated permissions, and I need to use a different QSettings for each key I want to edit.
I'll try and have my current program execute the settings window as a sub-program or something.
Bookmarks