Added VCRedist install script and launcher
This commit is contained in:
parent
9ba9ece589
commit
dcd5fa1b7a
2 changed files with 42 additions and 0 deletions
34
.bin/Scripts/install_vcredists.py
Normal file
34
.bin/Scripts/install_vcredists.py
Normal file
|
|
@ -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()
|
||||||
|
|
@ -432,6 +432,14 @@ LAUNCHERS = {
|
||||||
'L_NCMD': 'True',
|
'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': {
|
r'Misc': {
|
||||||
'ConEmu (as ADMIN)': {
|
'ConEmu (as ADMIN)': {
|
||||||
'L_TYPE': 'Executable',
|
'L_TYPE': 'Executable',
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue