aboutsummaryrefslogtreecommitdiff
path: root/installer/process/removeworker.cpp
diff options
context:
space:
mode:
authorVictor Tran <vicr12345@gmail.com>2020-08-03 23:33:12 +1000
committerVictor Tran <vicr12345@gmail.com>2020-08-03 23:33:12 +1000
commit52e80e6d4405e16378471003dd8b30aa920c1f9c (patch)
treeb3b4439f6a1f4d23398a61a78d9678f39afeef3e /installer/process/removeworker.cpp
parent2917d1830456828461171f3b9e1bffd37eba0b97 (diff)
parentfef992a12c81ad728b44617e02c3f5180c4a3cc0 (diff)
downloadtheInstaller-continuous.tar.gz
theInstaller-continuous.tar.bz2
theInstaller-continuous.zip
Merge branch 'refs/heads/master' into blueprintcontinuousblueprint
Diffstat (limited to 'installer/process/removeworker.cpp')
-rw-r--r--installer/process/removeworker.cpp14
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()) {