diff options
author | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2021-08-29 23:14:56 +0200 |
---|---|---|
committer | Mounir IDRASSI <mounir.idrassi@idrix.fr> | 2021-08-30 00:27:43 +0200 |
commit | ec8a6d9b824a03c653508d90e049a515b03f5256 (patch) | |
tree | c7dfdaa8236a488503e6ad6cefd8295eaa9a4340 /src/SetupDLL/Setup.c | |
parent | 81ed4e68f789e01f82fff9f7c148905786910fc9 (diff) | |
download | VeraCrypt-ec8a6d9b824a03c653508d90e049a515b03f5256.tar.gz VeraCrypt-ec8a6d9b824a03c653508d90e049a515b03f5256.zip |
Windows MSI: avoid duplicated entry for VeraCrypt when installing MSI over an EXE based installation
Diffstat (limited to 'src/SetupDLL/Setup.c')
-rw-r--r-- | src/SetupDLL/Setup.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/SetupDLL/Setup.c b/src/SetupDLL/Setup.c index 570af5d5..d6f5ebfd 100644 --- a/src/SetupDLL/Setup.c +++ b/src/SetupDLL/Setup.c @@ -3045,6 +3045,9 @@ EXTERN_C UINT STDAPICALLTYPE VC_CustomAction_PostInstall(MSIHANDLE hInstaller) { MSILog(hInstaller, MSI_ERROR_LEVEL, L"End VC_CustomAction_PostInstall: Could not write to registry"); } + + // delete entry of EXE installation if it exists + RegDeleteKeyExW (HKEY_LOCAL_MACHINE, L"Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\VeraCrypt", KEY_WOW64_32KEY, 0); } end: |