* "ClientDir\Info" renamed to "ClientDir\Logs"
* Logs are sorted into subdirs based on the source:
* KIT_NAME_FULL: WizardKit logs
* d7II: d7II logs
* Tools: Logs from tools called by WizardKit or d7II
* (no subdir): System information
* "ClientDir\Backups"
* Switched to "Backups\Source\{Date}" from "Backups\{Date}\Source"
35 lines
934 B
Python
35 lines
934 B
Python
# Wizard Kit: Install Visual C++ Runtimes
|
|
|
|
import os
|
|
import sys
|
|
|
|
# Init
|
|
os.chdir(os.path.dirname(os.path.realpath(__file__)))
|
|
sys.path.append(os.getcwd())
|
|
from functions.setup import *
|
|
init_global_vars()
|
|
os.system('title {}: Install Visual C++ Runtimes'.format(KIT_NAME_FULL))
|
|
global_vars['LogFile'] = r'{LogDir}\{kit_name}\Install Visual C++ Runtimes.log'.format(
|
|
kit_name=KIT_NAME_FULL, **global_vars)
|
|
|
|
if __name__ == '__main__':
|
|
try:
|
|
stay_awake()
|
|
clear_screen()
|
|
print_info('{}: Install Visual C++ Runtimes\n'.format(KIT_NAME_FULL))
|
|
other_results = {
|
|
'Error': {
|
|
'CalledProcessError': 'Unknown Error',
|
|
}}
|
|
|
|
if ask('Install Visual C++ Runtimes?'):
|
|
install_vcredists()
|
|
else:
|
|
abort()
|
|
|
|
print_standard('\nDone.')
|
|
exit_script()
|
|
except SystemExit:
|
|
pass
|
|
except:
|
|
major_exception()
|