VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2015-03-16 08:43:12 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2015-03-16 08:45:19 +0100
commitae5867f8b1377bedeffe6a8a44dce6211a0018c8 (patch)
tree0882bde947bb7f010d507ea96cda875f2d64654c
parentec4be214929fb2f56fb21dc8ff8edfdfaa020e57 (diff)
downloadVeraCrypt-ae5867f8b1377bedeffe6a8a44dce6211a0018c8.tar.gz
VeraCrypt-ae5867f8b1377bedeffe6a8a44dce6211a0018c8.zip
Windows Setup: remove other VeraCrypt references for registry.
-rw-r--r--src/Setup/Setup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/Setup/Setup.c b/src/Setup/Setup.c
index dbd16bd2..700045c9 100644
--- a/src/Setup/Setup.c
+++ b/src/Setup/Setup.c
@@ -1073,6 +1073,7 @@ BOOL DoRegUninstall (HWND hwndDlg, BOOL bRemoveDeprecated)
// clean other VeraCrypt entries from all users
SearchAndDeleteRegistrySubString (HKEY_USERS, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\FileExts\\.hc", NULL, TRUE, NULL);
SearchAndDeleteRegistrySubString (HKEY_USERS, "Software\\Microsoft\\Windows NT\\CurrentVersion\\AppCompatFlags\\Compatibility Assistant\\Persisted", "VeraCrypt", TRUE, NULL);
+ SearchAndDeleteRegistrySubString (HKEY_USERS, "Software\\Microsoft\\Windows\\CurrentVersion\\Explorer\\StartPage\\NewShortcuts", "VeraCrypt", TRUE, NULL);
if (RegOpenKeyEx(HKEY_LOCAL_MACHINE, "SYSTEM", 0, KEY_ALL_ACCESS | WRITE_DAC | WRITE_OWNER, &hKey) == ERROR_SUCCESS)
{
@@ -1471,6 +1472,11 @@ BOOL DoShortcutsUninstall (HWND hwndDlg, char *szDestDir)
if (StatDeleteFile (szTmp2) == FALSE)
goto error;
+ StringCbPrintfA (szTmp2, sizeof(szTmp2), "%s%s", szLinkDir, "\\VeraCryptExpander.lnk");
+ RemoveMessage (hwndDlg, szTmp2);
+ if (StatDeleteFile (szTmp2) == FALSE)
+ goto error;
+
StringCbPrintfA (szTmp2, sizeof(szTmp2), "%s%s", szLinkDir, "\\VeraCrypt Website.url");
RemoveMessage (hwndDlg, szTmp2);
if (StatDeleteFile (szTmp2) == FALSE)