Open ESET or KVRT during system_setup.py mode 2
This commit is contained in:
parent
6f44a37cd0
commit
bb0a74b98c
1 changed files with 15 additions and 0 deletions
|
|
@ -3,6 +3,7 @@
|
|||
# vim: sts=2 sw=2 ts=2
|
||||
|
||||
import os
|
||||
import pathlib
|
||||
import sys
|
||||
|
||||
# Init
|
||||
|
|
@ -413,6 +414,20 @@ def open_all_the_things():
|
|||
open_windows_activation()
|
||||
sleep(3)
|
||||
run_xmplay()
|
||||
if setup_mode == 'Dat':
|
||||
# System needs full AV scan
|
||||
print_standard('Please run a full virus scan before continuing')
|
||||
eset_path = pathlib.Path(
|
||||
f'{os.environ.get("PROGRAMFILES", "")}/ESET/ESET Security/ecmds.exe')
|
||||
if eset_path.exists():
|
||||
popen_program([eset_path, '/launch'])
|
||||
else:
|
||||
try:
|
||||
run_kvrt()
|
||||
except Exception:
|
||||
# Meh
|
||||
pass
|
||||
pause('Press Enter to exit...')
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
|
|
|
|||
Loading…
Reference in a new issue