diff --git a/.bin/Scripts/install_vcredists.py b/.bin/Scripts/install_vcredists.py new file mode 100644 index 00000000..307c5708 --- /dev/null +++ b/.bin/Scripts/install_vcredists.py @@ -0,0 +1,34 @@ +# 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}\Install Visual C++ Runtimes.log'.format(**global_vars) + +if __name__ == '__main__': + try: + stay_awake() + os.system('cls') + 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() diff --git a/.bin/Scripts/settings/launchers.py b/.bin/Scripts/settings/launchers.py index 149e45f1..2ec4e0ca 100644 --- a/.bin/Scripts/settings/launchers.py +++ b/.bin/Scripts/settings/launchers.py @@ -432,6 +432,14 @@ LAUNCHERS = { 'L_NCMD': 'True', }, }, + r'Installers\Extras\Runtimes': { + 'Visual C++ Runtimes': { + 'L_TYPE': 'PyScript', + 'L_PATH': 'Scripts', + 'L_ITEM': 'install_vcredists.py', + 'L_ELEV': 'True', + }, + }, r'Misc': { 'ConEmu (as ADMIN)': { 'L_TYPE': 'Executable',