parent
6f5a25d65d
commit
7e17a93d42
5 changed files with 168 additions and 129 deletions
|
|
@ -61,11 +61,22 @@ def run_hwinfo_sensors():
|
||||||
f.write('SummaryOnly=0\n')
|
f.write('SummaryOnly=0\n')
|
||||||
popen_program(global_vars['Tools']['HWiNFO'])
|
popen_program(global_vars['Tools']['HWiNFO'])
|
||||||
|
|
||||||
|
def run_nircmd(*cmd):
|
||||||
|
"""Run custom NirCmd."""
|
||||||
|
extract_item('NirCmd', silent=True)
|
||||||
|
cmd = [global_vars['Tools']['NirCmd'], *cmd]
|
||||||
|
run_program(cmd, check=False)
|
||||||
|
|
||||||
def run_xmplay():
|
def run_xmplay():
|
||||||
"""Run XMPlay to test audio."""
|
"""Run XMPlay to test audio."""
|
||||||
extract_item('XMPlay', silent=True)
|
extract_item('XMPlay', silent=True)
|
||||||
cmd = [global_vars['Tools']['XMPlay'],
|
cmd = [global_vars['Tools']['XMPlay'],
|
||||||
r'{BinDir}\XMPlay\music.7z'.format(**global_vars)]
|
r'{BinDir}\XMPlay\music.7z'.format(**global_vars)]
|
||||||
|
|
||||||
|
# Unmute audio first
|
||||||
|
run_nircmd(['mutesysvolume', '0'])
|
||||||
|
|
||||||
|
# Open XMPlay
|
||||||
popen_program(cmd)
|
popen_program(cmd)
|
||||||
|
|
||||||
def run_hitmanpro():
|
def run_hitmanpro():
|
||||||
|
|
|
||||||
|
|
@ -435,6 +435,29 @@ def update_hwinfo():
|
||||||
# Cleanup
|
# Cleanup
|
||||||
remove_from_temp('HWiNFO.zip')
|
remove_from_temp('HWiNFO.zip')
|
||||||
|
|
||||||
|
def update_nircmd():
|
||||||
|
# Stop running processes
|
||||||
|
for exe in ['nircmdc.exe', 'nircmdc64.exe']:
|
||||||
|
kill_process(exe)
|
||||||
|
|
||||||
|
# Remove existing folders
|
||||||
|
remove_from_kit('NirCmd')
|
||||||
|
|
||||||
|
# Download
|
||||||
|
download_to_temp('nircmd32.zip', SOURCE_URLS['NirCmd32'])
|
||||||
|
download_to_temp('nircmd64.zip', SOURCE_URLS['NirCmd64'])
|
||||||
|
|
||||||
|
# Extract files
|
||||||
|
extract_temp_to_cbin('nircmd64.zip', 'NirCmd', sz_args=['nircmdc.exe'])
|
||||||
|
shutil.move(
|
||||||
|
r'{}\NirCmd\nircmdc.exe'.format(global_vars['CBinDir']),
|
||||||
|
r'{}\NirCmd\nircmdc64.exe'.format(global_vars['CBinDir']))
|
||||||
|
extract_temp_to_cbin('nircmd32.zip', 'NirCmd', sz_args=['nircmdc.exe'])
|
||||||
|
|
||||||
|
# Cleanup
|
||||||
|
remove_from_temp('nircmd32.zip')
|
||||||
|
remove_from_temp('nircmd64.zip')
|
||||||
|
|
||||||
def update_produkey():
|
def update_produkey():
|
||||||
# Stop running processes
|
# Stop running processes
|
||||||
for exe in ['ProduKey.exe', 'ProduKey64.exe']:
|
for exe in ['ProduKey.exe', 'ProduKey64.exe']:
|
||||||
|
|
|
||||||
|
|
@ -23,6 +23,8 @@ SOURCE_URLS = {
|
||||||
'Intel SSD Toolbox': r'https://downloadmirror.intel.com/27656/eng/Intel%20SSD%20Toolbox%20-%20v3.5.2.exe',
|
'Intel SSD Toolbox': r'https://downloadmirror.intel.com/27656/eng/Intel%20SSD%20Toolbox%20-%20v3.5.2.exe',
|
||||||
'IOBit_Uninstaller': 'https://portableapps.duckduckgo.com/IObitUninstallerPortable_7.5.0.7.paf.exe',
|
'IOBit_Uninstaller': 'https://portableapps.duckduckgo.com/IObitUninstallerPortable_7.5.0.7.paf.exe',
|
||||||
'KVRT': 'http://devbuilds.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe',
|
'KVRT': 'http://devbuilds.kaspersky-labs.com/devbuilds/KVRT/latest/full/KVRT.exe',
|
||||||
|
'NirCmd32': 'https://www.nirsoft.net/utils/nircmd.zip',
|
||||||
|
'NirCmd64': 'https://www.nirsoft.net/utils/nircmd-x64.zip',
|
||||||
'NotepadPlusPlus': 'https://notepad-plus-plus.org/repository/7.x/7.5.8/npp.7.5.8.bin.minimalist.7z',
|
'NotepadPlusPlus': 'https://notepad-plus-plus.org/repository/7.x/7.5.8/npp.7.5.8.bin.minimalist.7z',
|
||||||
'Office Deployment Tool 2016': 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_10810.33603.exe',
|
'Office Deployment Tool 2016': 'https://download.microsoft.com/download/2/7/A/27AF1BE6-DD20-4CB4-B154-EBAB8A7D4A7E/officedeploymenttool_10810.33603.exe',
|
||||||
'ProduKey32': 'http://www.nirsoft.net/utils/produkey.zip',
|
'ProduKey32': 'http://www.nirsoft.net/utils/produkey.zip',
|
||||||
|
|
@ -193,6 +195,5 @@ RST_SOURCES = {
|
||||||
'SetupRST_16.5.exe': 'https://downloadmirror.intel.com/27984/eng/SetupRST.exe',
|
'SetupRST_16.5.exe': 'https://downloadmirror.intel.com/27984/eng/SetupRST.exe',
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
print("This file is not meant to be called directly.")
|
print("This file is not meant to be called directly.")
|
||||||
|
|
|
||||||
|
|
@ -30,6 +30,9 @@ TOOLS = {
|
||||||
'64': r'HWiNFO\HWiNFO64.exe'},
|
'64': r'HWiNFO\HWiNFO64.exe'},
|
||||||
'KVRT': {
|
'KVRT': {
|
||||||
'32': r'KVRT\KVRT.exe'},
|
'32': r'KVRT\KVRT.exe'},
|
||||||
|
'NirCmd': {
|
||||||
|
'32': r'NirCmd\nircmdc.exe',
|
||||||
|
'64': r'NirCmd\nircmdc64.exe'},
|
||||||
'NotepadPlusPlus': {
|
'NotepadPlusPlus': {
|
||||||
'32': r'NotepadPlusPlus\notepadplusplus.exe'},
|
'32': r'NotepadPlusPlus\notepadplusplus.exe'},
|
||||||
'ProduKey': {
|
'ProduKey': {
|
||||||
|
|
|
||||||
|
|
@ -44,6 +44,7 @@ if __name__ == '__main__':
|
||||||
try_and_print(message='ERUNT...', function=update_erunt, other_results=other_results, width=40)
|
try_and_print(message='ERUNT...', function=update_erunt, other_results=other_results, width=40)
|
||||||
try_and_print(message='HitmanPro...', function=update_hitmanpro, other_results=other_results, width=40)
|
try_and_print(message='HitmanPro...', function=update_hitmanpro, other_results=other_results, width=40)
|
||||||
try_and_print(message='HWiNFO...', function=update_hwinfo, other_results=other_results, width=40)
|
try_and_print(message='HWiNFO...', function=update_hwinfo, other_results=other_results, width=40)
|
||||||
|
try_and_print(message='NirCmd...', function=update_nircmd, other_results=other_results, width=40)
|
||||||
try_and_print(message='ProduKey...', function=update_produkey, other_results=other_results, width=40)
|
try_and_print(message='ProduKey...', function=update_produkey, other_results=other_results, width=40)
|
||||||
|
|
||||||
# Drivers
|
# Drivers
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue