diff --git a/.bin/Scripts/functions/sw_diags.py b/.bin/Scripts/functions/sw_diags.py index 1b965766..3aa2838c 100644 --- a/.bin/Scripts/functions/sw_diags.py +++ b/.bin/Scripts/functions/sw_diags.py @@ -197,8 +197,10 @@ def run_rkill(): shutil.move(item.path, dest) -def show_alert_box(message, title='Wizard Kit Warning'): +def show_alert_box(message, title=None): """Show Windows alert box with message.""" + if not title: + title = '{} Warning'.format(KIT_NAME_FULL) message_box = ctypes.windll.user32.MessageBoxW message_box(None, message, title, 0x00001030) diff --git a/.bin/Scripts/system_checklist.py b/.bin/Scripts/system_checklist.py index c4ee11eb..45df9a86 100644 --- a/.bin/Scripts/system_checklist.py +++ b/.bin/Scripts/system_checklist.py @@ -134,13 +134,18 @@ if __name__ == '__main__': function=run_xmplay, cs='Started', other_results=other_results) try: check_secure_boot_status(show_alert=True) - except: + except Exception: # Only trying to open alert message boxes pass # Done print_standard('\nDone.') pause('Press Enter exit...') + if D7_MODE: + show_alert_box( + message='Please run the Post-d7II script after ending the session.', + title='{} Notice'.format(KIT_NAME_FULL), + ) exit_script() except SystemExit: pass