1
0
mirror of https://github.com/veracrypt/VeraCrypt.git synced 2025-11-12 03:18:26 -06:00

Windows Setup: Warn about Fast Startup during install if it is enabled and propose to disable it at the end of the installation.

This commit is contained in:
Mounir IDRASSI
2020-07-21 12:14:31 +02:00
parent f9782fb3f6
commit 290412afce
4 changed files with 21 additions and 0 deletions

View File

@@ -60,6 +60,7 @@ BOOL bStartExtraction = FALSE;
BOOL bInProgress = FALSE;
BOOL bPromptTutorial = FALSE;
BOOL bPromptReleaseNotes = FALSE;
BOOL bPromptFastStartup = FALSE;
extern BOOL bUserSetLanguage;
@@ -1203,6 +1204,15 @@ BOOL CALLBACK MainDialogProc (HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPa
bPromptTutorial = FALSE;
}
if (bPromptFastStartup
&& AskWarnYesNo ("CONFIRM_DISABLE_FAST_STARTUP", hwndDlg) == IDYES)
{
WriteLocalMachineRegistryDword (L"SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Power", L"HiberbootEnabled", 0);
bRestartRequired = TRUE;
}
bPromptFastStartup = FALSE;
if (bRestartRequired
&& AskYesNo (bUpgrade ? "UPGRADE_OK_REBOOT_REQUIRED" : "CONFIRM_RESTART", hwndDlg) == IDYES)
{