VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Setup/Wizard.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2019-01-26 00:18:03 (GMT)
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2019-01-26 00:20:51 (GMT)
commita20b3083b058901572953364dccbdd4cad8f3c5a (patch)
tree6a208ab4663e8e7d7da021ac61c8aa290fa0edde /src/Setup/Wizard.c
parent7b95b375a0aeb7fcba50437944d94bab074e7df4 (diff)
downloadVeraCrypt-a20b3083b058901572953364dccbdd4cad8f3c5a.zip
VeraCrypt-a20b3083b058901572953364dccbdd4cad8f3c5a.tar.gz
Windows: Add a build configuration containing EFI bootloader signed with custom SecureBoot key instead
Diffstat (limited to 'src/Setup/Wizard.c')
-rw-r--r--src/Setup/Wizard.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Setup/Wizard.c b/src/Setup/Wizard.c
index 94e3aae..a497d4e 100644
--- a/src/Setup/Wizard.c
+++ b/src/Setup/Wizard.c
@@ -845,9 +845,9 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
SendMessage (GetDlgItem (hwndDlg, IDC_BOX_TITLE), WM_SETFONT, (WPARAM) hUserBoldFont, (LPARAM) TRUE);
#ifndef PORTABLE
- SetWindowText (hwndDlg, L"VeraCrypt Setup " _T(VERSION_STRING));
+ SetWindowText (hwndDlg, L"VeraCrypt Setup " _T(VERSION_STRING) _T(VERSION_STRING_SUFFIX));
#else
- SetWindowText (hwndDlg, L"VeraCrypt Portable " _T(VERSION_STRING));
+ SetWindowText (hwndDlg, L"VeraCrypt Portable " _T(VERSION_STRING) _T(VERSION_STRING_SUFFIX));
#endif
DonColorSchemeId = GetDonVal (2, 9);
@@ -948,6 +948,13 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
bExtractOnly = TRUE;
nCurPageNo = EXTRACTION_OPTIONS_PAGE - 1;
}
+#ifdef VC_EFI_CUSTOM_MODE
+ else if (bUpgrade && !CheckSecureBootCompatibility (hwndDlg))
+ {
+ WarningDirect(L"This installer version supports only custom EFI SecureBoot.\nPlease use regular installer to update your system", hwndDlg);
+ return 1;
+ }
+#endif
}
#endif
else if (nCurPageNo == EXTRACTION_OPTIONS_PAGE)