From 3dfd4a533264807898a2d1b58f113ba48ee6f13d Mon Sep 17 00:00:00 2001 From: Mounir IDRASSI Date: Sun, 23 Jul 2017 11:57:25 +0200 Subject: Windows: display notice about creating new Rescue Disk at first boot after upgrade. --- src/Common/Dlgcode.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'src/Common/Dlgcode.c') diff --git a/src/Common/Dlgcode.c b/src/Common/Dlgcode.c index 5dedcd7e..a5c5a293 100644 --- a/src/Common/Dlgcode.c +++ b/src/Common/Dlgcode.c @@ -2534,6 +2534,7 @@ void SavePostInstallTasksSettings (int command) case TC_POST_INSTALL_CFG_REMOVE_ALL: _wremove (GetConfigPath (TC_APPD_FILENAME_POST_INSTALL_TASK_TUTORIAL)); _wremove (GetConfigPath (TC_APPD_FILENAME_POST_INSTALL_TASK_RELEASE_NOTES)); + _wremove (GetConfigPath (TC_APPD_FILENAME_POST_INSTALL_TASK_RESCUE_DISK)); break; case TC_POST_INSTALL_CFG_TUTORIAL: @@ -2544,6 +2545,10 @@ void SavePostInstallTasksSettings (int command) f = _wfopen (GetConfigPath (TC_APPD_FILENAME_POST_INSTALL_TASK_RELEASE_NOTES), L"w"); break; + case TC_POST_INSTALL_CFG_RESCUE_DISK: + f = _wfopen (GetConfigPath (TC_APPD_FILENAME_POST_INSTALL_TASK_RESCUE_DISK), L"w"); + break; + default: return; } @@ -2584,6 +2589,14 @@ void DoPostInstallTasks (HWND hwndDlg) bDone = TRUE; } + if (FileExists (GetConfigPath (TC_APPD_FILENAME_POST_INSTALL_TASK_RESCUE_DISK))) + { + if (AskYesNo ("AFTER_UPGRADE_RESCUE_DISK", hwndDlg) == IDYES) + PostMessage (hwndDlg, VC_APPMSG_CREATE_RESCUE_DISK, 0, 0); + + bDone = TRUE; + } + if (bDone) SavePostInstallTasksSettings (TC_POST_INSTALL_CFG_REMOVE_ALL); } -- cgit v1.2.3