diff options
| author | Victor Tran <vicr12345@gmail.com> | 2020-08-03 23:25:55 +1000 |
|---|---|---|
| committer | Victor Tran <vicr12345@gmail.com> | 2020-08-03 23:25:55 +1000 |
| commit | fef992a12c81ad728b44617e02c3f5180c4a3cc0 (patch) | |
| tree | 3b0e5f218934ebde9d13306c881260a98bf17e1c /installer/process/removeworker.cpp | |
| parent | d0bc49f9d606580053ac45058c9c9ccb4c6b26c1 (diff) | |
| download | theInstaller-fef992a12c81ad728b44617e02c3f5180c4a3cc0.tar.gz theInstaller-fef992a12c81ad728b44617e02c3f5180c4a3cc0.tar.bz2 theInstaller-fef992a12c81ad728b44617e02c3f5180c4a3cc0.zip | |
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()) { |
