WizardKit/.bin/Scripts/transferred_keys.py
Alan Mason 41d6cfc209 2017-08: Retroactive Updates
* Bugfixes
  * Windows 10 v1703 / Redstone 2 / Creator's Update now recognized (attempt #2)
2017-11-17 00:57:07 -07:00

38 lines
1 KiB
Python

# Wizard Kit: Transferred Keys
import os
import sys
# Init
os.chdir(os.path.dirname(os.path.realpath(__file__)))
os.system('title Wizard Kit: ProductKey Tool')
sys.path.append(os.getcwd())
from functions import *
init_global_vars()
global_vars['LogFile'] = '{LogDir}\\Transferred Keys.log'.format(**global_vars)
def abort():
print_warning('Aborted.')
pause("Press Enter to exit...")
exit_script()
if __name__ == '__main__':
try:
other_results = {
'Error': {
'CalledProcessError': 'Unknown Error',
},
'Warning': {
'GenericError': 'No keys found',
}}
stay_awake()
try_and_print(message='Extracting keys...', function=extract_keys, other_results=other_results)
try_and_print(message='Displaying keys...', function=save_keys, print_return=True)
# Done
print_standard('\nDone.')
exit_script()
except SystemExit:
pass
except:
major_exception()