mirror of
https://github.com/tnodir/fort
synced 2024-11-15 06:55:54 +00:00
UI: Remove Global Windows Explorer integration on Uninstall
This commit is contained in:
parent
d41332f991
commit
1cd580fcd2
@ -245,6 +245,8 @@ void FortManager::uninstall()
|
||||
StartupUtil::setAutoRunMode(StartupUtil::StartupDisabled); // Remove auto-run
|
||||
StartupUtil::setServiceInstalled(false); // Uninstall service
|
||||
StartupUtil::setExplorerIntegrated(false); // Remove Windows Explorer integration
|
||||
StartupUtil::clearGlobalExplorerIntegrated(); // COMPAT: Remove Global Windows Explorer
|
||||
// integration
|
||||
DriverCommon::provUnregister(); // Unregister booted provider
|
||||
}
|
||||
|
||||
|
@ -298,6 +298,13 @@ void StartupUtil::setExplorerIntegrated(bool integrate)
|
||||
}
|
||||
}
|
||||
|
||||
void StartupUtil::clearGlobalExplorerIntegrated()
|
||||
{
|
||||
RegKey regShell(RegKey::HKLM, regShellMenu, RegKey::DefaultReadWrite);
|
||||
|
||||
regShell.removeRecursively(APP_NAME);
|
||||
}
|
||||
|
||||
QString StartupUtil::registryPasswordHash()
|
||||
{
|
||||
const RegKey regApp(RegKey::HKLM, R"(SOFTWARE)");
|
||||
|
@ -22,6 +22,8 @@ public:
|
||||
static bool isExplorerIntegrated();
|
||||
static void setExplorerIntegrated(bool integrate);
|
||||
|
||||
static void clearGlobalExplorerIntegrated();
|
||||
|
||||
static QString registryPasswordHash();
|
||||
static void setRegistryPasswordHash(const QString &passwordHash);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user