Add ESET NOD32 AV install sections
* Installs with custom config
This commit is contained in:
parent
84120f1505
commit
2301c89b8c
7 changed files with 3404 additions and 2 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
# Wizard Kit: Functions - Setup
|
# Wizard Kit: Functions - Setup
|
||||||
|
|
||||||
from functions.common import *
|
from functions.common import *
|
||||||
|
from functions.update import *
|
||||||
|
from settings.sources import *
|
||||||
|
|
||||||
# STATIC VARIABLES
|
# STATIC VARIABLES
|
||||||
HKCU = winreg.HKEY_CURRENT_USER
|
HKCU = winreg.HKEY_CURRENT_USER
|
||||||
|
|
@ -237,6 +239,30 @@ def install_classicstart_skin():
|
||||||
os.makedirs(dest_path, exist_ok=True)
|
os.makedirs(dest_path, exist_ok=True)
|
||||||
shutil.copy(source, dest)
|
shutil.copy(source, dest)
|
||||||
|
|
||||||
|
def install_eset_nod32_av(scan_pups=True):
|
||||||
|
"""Install ESET NOD32 AV with custom config."""
|
||||||
|
extract_item('ESETConfigs', silent=True)
|
||||||
|
config_file = '{BinDir}\ESETConfigs\{config_file}.xml'.format(
|
||||||
|
config_file='eset-config' if scan_pups else 'eset-config-no-pup',
|
||||||
|
**global_vars)
|
||||||
|
|
||||||
|
# Download
|
||||||
|
result = try_and_print(message='Downloading Setup...', cs='Done',
|
||||||
|
other_results=OTHER_RESULTS, function=download_generic,
|
||||||
|
out_dir=global_vars['ClientDir'],
|
||||||
|
out_name='eav_nt64.exe',
|
||||||
|
source_url=SOURCE_URLS['ESET NOD32'])
|
||||||
|
if not result['CS']:
|
||||||
|
raise GenericError('Failed to download ESET NOD32')
|
||||||
|
|
||||||
|
# Install
|
||||||
|
cmd = [r'{ClientDir}\eav_nt64.exe'.format(**global_vars),
|
||||||
|
'--silent', '--accepteula', '--msi-property',
|
||||||
|
'PRODUCTTYPE=eav', 'PRODUCT_LANG=1033', 'PRODUCT_LANG_CODE=en-US',
|
||||||
|
'ADMINCFG="{}"'.format(config_file)]
|
||||||
|
try_and_print(message='Installing ESET NOD32 AV...',
|
||||||
|
other_results=OTHER_RESULTS, function=run_program, cmd=cmd)
|
||||||
|
|
||||||
def install_firefox_extensions():
|
def install_firefox_extensions():
|
||||||
"""Extract Firefox extensions to installation folder."""
|
"""Extract Firefox extensions to installation folder."""
|
||||||
dist_path = r'{PROGRAMFILES}\Mozilla Firefox\distribution\extensions'.format(
|
dist_path = r'{PROGRAMFILES}\Mozilla Firefox\distribution\extensions'.format(
|
||||||
|
|
|
||||||
|
|
@ -551,6 +551,13 @@ def update_adobe_reader_dc():
|
||||||
download_generic(
|
download_generic(
|
||||||
dest, 'Adobe Reader DC.exe', SOURCE_URLS['Adobe Reader DC'])
|
dest, 'Adobe Reader DC.exe', SOURCE_URLS['Adobe Reader DC'])
|
||||||
|
|
||||||
|
def update_eset_config():
|
||||||
|
"""Copy config files to .cbin before compress_item"""
|
||||||
|
dest = r'{}\ESETConfigs'.format(global_vars['cbindir'])
|
||||||
|
include_path = r'{}\_include\ESETConfigs'.format(global_vars['CBinDir'])
|
||||||
|
if os.path.exists(include_path):
|
||||||
|
shutil.copytree(include_path, dest)
|
||||||
|
|
||||||
def update_office():
|
def update_office():
|
||||||
# Remove existing folders
|
# Remove existing folders
|
||||||
remove_from_kit('_Office')
|
remove_from_kit('_Office')
|
||||||
|
|
|
||||||
26
.bin/Scripts/install_eset_nod32_av.py
Normal file
26
.bin/Scripts/install_eset_nod32_av.py
Normal file
|
|
@ -0,0 +1,26 @@
|
||||||
|
# Wizard Kit: Install ESET NOD32 AV
|
||||||
|
|
||||||
|
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 ESET NOD32 AV'.format(KIT_NAME_FULL))
|
||||||
|
global_vars['LogFile'] = r'{LogDir}\Install ESET NOD32 AV.log'.format(**global_vars)
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
try:
|
||||||
|
stay_awake()
|
||||||
|
clear_screen()
|
||||||
|
print_info('{}: Install ESET NOD32 AV\n'.format(KIT_NAME_FULL))
|
||||||
|
scan_pups = ask('Enable PUP scans in ESET?')
|
||||||
|
install_eset_nod32_av(scan_pups)
|
||||||
|
print_standard('\nDone.')
|
||||||
|
exit_script()
|
||||||
|
except SystemExit:
|
||||||
|
pass
|
||||||
|
except:
|
||||||
|
major_exception()
|
||||||
|
|
@ -8,6 +8,12 @@ LAUNCHERS = {
|
||||||
'L_ITEM': 'activate.py',
|
'L_ITEM': 'activate.py',
|
||||||
'L_ELEV': 'True',
|
'L_ELEV': 'True',
|
||||||
},
|
},
|
||||||
|
'Install ESET NOD32 AV': {
|
||||||
|
'L_TYPE': 'PyScript',
|
||||||
|
'L_PATH': 'Scripts',
|
||||||
|
'L_ITEM': 'install_eset_nod32_av.py',
|
||||||
|
'L_ELEV': 'True',
|
||||||
|
},
|
||||||
'System Checklist': {
|
'System Checklist': {
|
||||||
'L_TYPE': 'PyScript',
|
'L_TYPE': 'PyScript',
|
||||||
'L_PATH': 'Scripts',
|
'L_PATH': 'Scripts',
|
||||||
|
|
|
||||||
|
|
@ -12,6 +12,7 @@ SOURCE_URLS = {
|
||||||
'ClassicStartSkin': 'http://www.classicshell.net/forum/download/file.php?id=3001&sid=9a195960d98fd754867dcb63d9315335',
|
'ClassicStartSkin': 'http://www.classicshell.net/forum/download/file.php?id=3001&sid=9a195960d98fd754867dcb63d9315335',
|
||||||
'Du': 'https://download.sysinternals.com/files/DU.zip',
|
'Du': 'https://download.sysinternals.com/files/DU.zip',
|
||||||
'ERUNT': 'http://www.aumha.org/downloads/erunt.zip',
|
'ERUNT': 'http://www.aumha.org/downloads/erunt.zip',
|
||||||
|
'ESET NOD32 AV': 'https://download.eset.com/com/eset/apps/home/eav/windows/latest/eav_nt64.exe',
|
||||||
'Everything32': 'https://www.voidtools.com/Everything-1.4.1.895.x86.zip',
|
'Everything32': 'https://www.voidtools.com/Everything-1.4.1.895.x86.zip',
|
||||||
'Everything64': 'https://www.voidtools.com/Everything-1.4.1.895.x64.zip',
|
'Everything64': 'https://www.voidtools.com/Everything-1.4.1.895.x64.zip',
|
||||||
'FastCopy32': 'http://ftp.vector.co.jp/69/93/2323/FastCopy341.zip',
|
'FastCopy32': 'http://ftp.vector.co.jp/69/93/2323/FastCopy341.zip',
|
||||||
|
|
|
||||||
1668
.cbin/_include/ESETConfigs/eset-config-no-pup.xml
Normal file
1668
.cbin/_include/ESETConfigs/eset-config-no-pup.xml
Normal file
File diff suppressed because it is too large
Load diff
1668
.cbin/_include/ESETConfigs/eset-config.xml
Normal file
1668
.cbin/_include/ESETConfigs/eset-config.xml
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue