mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows Setup: remove other VeraCrypt references for registry.
This commit is contained in:
@@ -1073,6 +1073,7 @@ BOOL DoRegUninstall (HWND hwndDlg, BOOL bRemoveDeprecated)
|
|||||||
// clean other VeraCrypt entries from all users
|
// 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\\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 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)
|
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)
|
if (StatDeleteFile (szTmp2) == FALSE)
|
||||||
goto error;
|
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");
|
StringCbPrintfA (szTmp2, sizeof(szTmp2), "%s%s", szLinkDir, "\\VeraCrypt Website.url");
|
||||||
RemoveMessage (hwndDlg, szTmp2);
|
RemoveMessage (hwndDlg, szTmp2);
|
||||||
if (StatDeleteFile (szTmp2) == FALSE)
|
if (StatDeleteFile (szTmp2) == FALSE)
|
||||||
|
|||||||
Reference in New Issue
Block a user