VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/SetupDLL
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2021-11-21 20:53:51 +0100
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2021-11-21 21:45:31 +0100
commit34282e9fcea97107f9697c480bfe0680d15dbfef (patch)
treeed59a4ba18805434a039de65208d5511ac07c1fd /src/SetupDLL
parent3a28821b1d3964b2b12546bc919a00bc2571d317 (diff)
downloadVeraCrypt-34282e9fcea97107f9697c480bfe0680d15dbfef.tar.gz
VeraCrypt-34282e9fcea97107f9697c480bfe0680d15dbfef.zip
Windows: Block installation of MSI on Windows version older than Windows 10 because of driver code signing
Diffstat (limited to 'src/SetupDLL')
-rw-r--r--src/SetupDLL/Setup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SetupDLL/Setup.c b/src/SetupDLL/Setup.c
index 4aec04f9..157ab323 100644
--- a/src/SetupDLL/Setup.c
+++ b/src/SetupDLL/Setup.c
@@ -2249,6 +2249,14 @@ BOOL InitDll (MSIHANDLE hInstaller)
SetUnhandledExceptionFilter (ExceptionHandler);
_set_invalid_parameter_handler (InvalidParameterHandler);
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:
MSILog(hInstaller, MSI_INFO_LEVEL, L"End InitDll");