parent
ead4715c38
commit
89a09a322e
2 changed files with 9 additions and 2 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue