aboutsummaryrefslogtreecommitdiff
path: root/installer/process/removeworker.cpp
diff options
context:
space:
mode:
authorVictor Tran <vicr12345@gmail.com>2020-08-03 23:25:55 +1000
committerVictor Tran <vicr12345@gmail.com>2020-08-03 23:25:55 +1000
commitfef992a12c81ad728b44617e02c3f5180c4a3cc0 (patch)
tree3b0e5f218934ebde9d13306c881260a98bf17e1c /installer/process/removeworker.cpp
parentd0bc49f9d606580053ac45058c9c9ccb4c6b26c1 (diff)
downloadtheInstaller-fef992a12c81ad728b44617e02c3f5180c4a3cc0.tar.gz
theInstaller-fef992a12c81ad728b44617e02c3f5180c4a3cc0.tar.bz2
theInstaller-fef992a12c81ad728b44617e02c3f5180c4a3cc0.zip
Add Windows Class ID informationHEADmaster
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()) {