Add prompt to run Post-d7II script

* Best I can do for issue #52
This commit is contained in:
2Shirt 2019-03-17 20:08:01 -06:00
parent ead4715c38
commit 89a09a322e
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
2 changed files with 9 additions and 2 deletions

View file

@ -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)

View file

@ -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