diff options
| author | Victor Tran <vicr12345@gmail.com> | 2020-08-03 23:33:12 +1000 |
|---|---|---|
| committer | Victor Tran <vicr12345@gmail.com> | 2020-08-03 23:33:12 +1000 |
| commit | 52e80e6d4405e16378471003dd8b30aa920c1f9c (patch) | |
| tree | b3b4439f6a1f4d23398a61a78d9678f39afeef3e /installer/process/removeworker.cpp | |
| parent | 2917d1830456828461171f3b9e1bffd37eba0b97 (diff) | |
| parent | fef992a12c81ad728b44617e02c3f5180c4a3cc0 (diff) | |
| download | theInstaller-blueprint.tar.gz theInstaller-blueprint.tar.bz2 theInstaller-blueprint.zip | |
Merge branch 'refs/heads/master' into blueprintcontinuousblueprint
Diffstat (limited to 'installer/process/removeworker.cpp')
| -rw-r--r-- | installer/process/removeworker.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/installer/process/removeworker.cpp b/installer/process/removeworker.cpp index 5356f26..39a890b 100644 --- a/installer/process/removeworker.cpp +++ b/installer/process/removeworker.cpp @@ -74,6 +74,20 @@ bool RemoveWorker::startWork() { QDir dest(metadata.value("installPath").toString()); dest.removeRecursively(); + if (metadata.contains("clsid")) { + QSettings* comServer; + if (metadata.value("global").toBool()) { + comServer = new QSettings(QStringLiteral("HKEY_LOCAL_MACHINE\\SOFTWARE\\Classes\\CLSID"), QSettings::NativeFormat); + } else { + comServer = new QSettings(QStringLiteral("HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID"), QSettings::NativeFormat); + } + + comServer->remove(metadata.value("clsid").toString()); + comServer->sync(); + + comServer->deleteLater(); + } + //Remove registry entry QSettings* settings; if (metadata.value("global").toBool()) { |
