mirror of
https://github.com/veracrypt/VeraCrypt.git
synced 2025-11-11 11:08:02 -06:00
Windows: Block installation of MSI on Windows version older than Windows 10 because of driver code signing
This commit is contained in:
@@ -2250,6 +2250,14 @@ BOOL InitDll (MSIHANDLE hInstaller)
|
|||||||
_set_invalid_parameter_handler (InvalidParameterHandler);
|
_set_invalid_parameter_handler (InvalidParameterHandler);
|
||||||
RemoteSession = GetSystemMetrics (SM_REMOTESESSION) != 0;
|
RemoteSession = GetSystemMetrics (SM_REMOTESESSION) != 0;
|
||||||
|
|
||||||
|
// OS version check: from version 1.25, only Windows XP, Windows 10 and Windows 11 are supported because of new driver signing requirements
|
||||||
|
if (!IsOSVersionAtLeast(WIN_10, 0))
|
||||||
|
{
|
||||||
|
MSILogAndShow (hInstaller, MSI_ERROR_LEVEL, GetString("UNSUPPORTED_OS"));
|
||||||
|
bOK = FALSE;
|
||||||
|
goto end;
|
||||||
|
}
|
||||||
|
|
||||||
end:
|
end:
|
||||||
MSILog(hInstaller, MSI_INFO_LEVEL, L"End InitDll");
|
MSILog(hInstaller, MSI_INFO_LEVEL, L"End InitDll");
|
||||||
return bOK;
|
return bOK;
|
||||||
|
|||||||
Reference in New Issue
Block a user