VeraCrypt
aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2021-09-02 00:10:43 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2021-09-02 00:20:13 +0200
commitff3cbf5672fe7599f025cf3f9f4ebe1db83a2e51 (patch)
tree1ac16ae3b7310afd6ea4f9614ad3099617088f2d
parent7bc4256c420d1da2e51ac90dd913ea4307407299 (diff)
downloadVeraCrypt-ff3cbf5672fe7599f025cf3f9f4ebe1db83a2e51.tar.gz
VeraCrypt-ff3cbf5672fe7599f025cf3f9f4ebe1db83a2e51.zip
Windows MSI: block MSI installation if System Encryption is enabled until we find a workaround for MSI service inability to access EFI environment variables (GetFirmwareEnvironmentVariable return empty values)
-rw-r--r--src/SetupDLL/Setup.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SetupDLL/Setup.c b/src/SetupDLL/Setup.c
index cc537d23..15725554 100644
--- a/src/SetupDLL/Setup.c
+++ b/src/SetupDLL/Setup.c
@@ -1511,6 +1511,11 @@ BOOL DoDriverUnload_Dll (MSIHANDLE hInstaller, HWND hwnd)
BootEncryption bootEnc (hwnd);
if (bootEnc.GetDriverServiceStartType() == SERVICE_BOOT_START)
{
+ MSILogAndShow(hInstaller, MSI_ERROR_LEVEL, L"VeraCrypt MSI installation is currently not compatible with Windows System Encryption");
+ bOK = FALSE;
+ goto end;
+
+ /************* TODO: find a workaround to the fact that MSI service cannot access EFI environment variable
try
{
// Check hidden OS update consistency
@@ -1554,6 +1559,7 @@ BOOL DoDriverUnload_Dll (MSIHANDLE hInstaller, HWND hwnd)
SystemEncryptionUpdate = TRUE;
PortableMode = FALSE;
}
+ *****************************************/
}
}
catch (...) { }