mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 02:58:02 -06:00
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)
This commit is contained in:
@@ -1511,6 +1511,11 @@ BOOL DoDriverUnload_Dll (MSIHANDLE hInstaller, HWND hwnd)
|
|||||||
BootEncryption bootEnc (hwnd);
|
BootEncryption bootEnc (hwnd);
|
||||||
if (bootEnc.GetDriverServiceStartType() == SERVICE_BOOT_START)
|
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
|
try
|
||||||
{
|
{
|
||||||
// Check hidden OS update consistency
|
// Check hidden OS update consistency
|
||||||
@@ -1554,6 +1559,7 @@ BOOL DoDriverUnload_Dll (MSIHANDLE hInstaller, HWND hwnd)
|
|||||||
SystemEncryptionUpdate = TRUE;
|
SystemEncryptionUpdate = TRUE;
|
||||||
PortableMode = FALSE;
|
PortableMode = FALSE;
|
||||||
}
|
}
|
||||||
|
*****************************************/
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (...) { }
|
catch (...) { }
|
||||||
|
|||||||
Reference in New Issue
Block a user