VeraCrypt
aboutsummaryrefslogtreecommitdiff
path: root/src/Setup/Setup.c
diff options
context:
space:
mode:
authorMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-23 11:57:25 +0200
committerMounir IDRASSI <mounir.idrassi@idrix.fr>2017-07-23 14:52:12 +0200
commit3dfd4a533264807898a2d1b58f113ba48ee6f13d (patch)
tree6b0185e853ba7ce1d52bea917af13d2e7bb59962 /src/Setup/Setup.c
parent7cc2a3527dd27f49f617c4bfb915fd00098801ab (diff)
downloadVeraCrypt-3dfd4a533264807898a2d1b58f113ba48ee6f13d.tar.gz
VeraCrypt-3dfd4a533264807898a2d1b58f113ba48ee6f13d.zip
Windows: display notice about creating new Rescue Disk at first boot after upgrade.
Diffstat (limited to 'src/Setup/Setup.c')
-rw-r--r--src/Setup/Setup.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/Setup/Setup.c b/src/Setup/Setup.c
index a3d14c65..3da3609d 100644
--- a/src/Setup/Setup.c
+++ b/src/Setup/Setup.c
@@ -59,6 +59,7 @@ BOOL bMakePackage = FALSE;
BOOL bDone = FALSE;
BOOL Rollback = FALSE;
BOOL bUpgrade = FALSE;
+BOOL bUpdateRescueDisk = FALSE;
BOOL bDowngrade = FALSE;
BOOL SystemEncryptionUpdate = FALSE;
BOOL PortableMode = FALSE;
@@ -1688,7 +1689,10 @@ BOOL UpgradeBootLoader (HWND hwndDlg)
bootEnc.InstallBootLoader (true);
if (bootEnc.GetInstalledBootLoaderVersion() <= TC_RESCUE_DISK_UPGRADE_NOTICE_MAX_VERSION)
+ {
+ bUpdateRescueDisk = TRUE;
Info (IsHiddenOSRunning() ? "BOOT_LOADER_UPGRADE_OK_HIDDEN_OS" : "BOOT_LOADER_UPGRADE_OK", hwndDlg);
+ }
}
return TRUE;
}
@@ -2276,6 +2280,10 @@ void DoInstall (void *arg)
if (bUpgrade)
{
SavePostInstallTasksSettings (TC_POST_INSTALL_CFG_RELEASE_NOTES);
+ if (bUpdateRescueDisk)
+ {
+ SavePostInstallTasksSettings (TC_POST_INSTALL_CFG_RESCUE_DISK);
+ }
}
else if (bPossiblyFirstTimeInstall)
{