Add ESET NOD32 AV sections

This commit is contained in:
2Shirt 2021-09-30 18:28:15 -06:00
parent fed639b674
commit 5e5c54293b
Signed by: 2Shirt
GPG key ID: 152FAC923B0E132C
3 changed files with 47 additions and 1 deletions

View file

@ -109,6 +109,8 @@ BASE_MENUS = {
),
'Install Software': (
MenuEntry('Visual C++ Runtimes', 'auto_install_vcredists'),
MenuEntry('ESET NOD32 AV', 'install_eset_nod32_av'),
MenuEntry('ESET NOD32 AV (MSP)', 'install_eset_nod32_av_msp'),
MenuEntry('Firefox', 'auto_install_firefox'),
MenuEntry('LibreOffice', 'auto_install_libreoffice', selected=False),
MenuEntry('Open Shell', 'auto_install_open_shell'),
@ -117,7 +119,10 @@ BASE_MENUS = {
'Configure System': (
MenuEntry('Configure Browsers', 'auto_config_browsers'),
MenuEntry('Open Shell', 'auto_config_open_shell'),
#MenuEntry('Disable Fast Startup', no_op),
#MenuEntry('Disable Telemetry', no_op), # O&O ShutUp 10
MenuEntry('Enable BSoD MiniDumps', 'auto_enable_bsod_minidumps'),
#MenuEntry('Enable Hibernation', no_op),
MenuEntry('Enable RegBack', 'auto_enable_regback'),
MenuEntry('Enable System Restore', 'auto_system_restore_enable'),
MenuEntry('Set System Restore Size', 'auto_system_restore_set_size'),
@ -144,6 +149,7 @@ BASE_MENUS = {
'Run Programs': (
MenuEntry('Device Manager', 'auto_open_device_manager'),
MenuEntry('HWiNFO Sensors', 'auto_open_hwinfo_sensors'),
#MenuEntry('Snappy Driver Installer', no_op),
MenuEntry('Windows Activation', 'auto_open_windows_activation'),
MenuEntry('Windows Updates', 'auto_open_windows_updates'),
MenuEntry('XMPlay', 'auto_open_xmplay'),

View file

@ -27,7 +27,8 @@ SOURCES = {
'EmsisoftCmd32': 'https://dl.emsisoft.com/EmsisoftCommandlineScanner32.exe',
'EmsisoftCmd64': 'https://dl.emsisoft.com/EmsisoftCommandlineScanner64.exe',
'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',
'ESET_NOD32_AV32': 'https://download.eset.com/com/eset/apps/home/eav/windows/latest/eav_nt32.exe',
'ESET_NOD32_AV64': 'https://download.eset.com/com/eset/apps/home/eav/windows/latest/eav_nt64.exe',
'ESET Online Scanner': 'https://download.eset.com/com/eset/tools/online_scanner/latest/esetonlinescanner_enu.exe',
'Everything32': 'https://www.voidtools.com/Everything-1.4.1.1005.x86.en-US.zip',
'Everything64': 'https://www.voidtools.com/Everything-1.4.1.1005.x64.en-US.zip',

View file

@ -135,6 +135,21 @@ REG_CHROME_UBLOCK_ORIGIN = {
)
},
}
REG_ESET_NOD32_SETTINGS = {
'HKCU': {
r'Software\ESET\ESET Security\CurrentVersion\gui\UI_CONFIG': (
('FullScreenMode', 0, 'DWORD'),
('ShowAlertStatus', 0x40000000, 'DWORD'),
('ShowDesktopAlert', 0, 'DWORD'),
('ShowSplash', 0, 'DWORD'),
),
},
'HKLM': {
r'Software\ESET\ESET Security\CurrentVersion\Config\Settings\LiveGrid': (
('LiveGridFeedbackEnabled', 1, 'DWORD'),
),
},
}
REG_WINDOWS_EXPLORER = {
# pylint: disable=line-too-long
'HKLM': {
@ -582,6 +597,16 @@ def auto_export_aida64_report():
TRY_PRINT.run('AIDA64 Report...', export_aida64_report)
def auto_install_eset_nod32_av():
"""Install ESET NOD32 AV."""
TRY_PRINT.run('ESET NOD32...', install_eset_nod32_av)
def auto_install_eset_nod32_av_msp():
"""Install ESET NOD32 AV with MSP settings."""
TRY_PRINT.run('ESET NOD32 (MSP)...', install_eset_nod32_av, msp=True)
def auto_install_firefox():
"""Install Firefox."""
TRY_PRINT.run('Firefox...', install_firefox)
@ -795,6 +820,20 @@ def restore_default_uac():
# Install Functions
def install_eset_nod32_av(msp=False):
"""Install ESET NOD32 Antivirus."""
config_file = f'eset-config{"-msp" if msp else ""}.xml'
reg_write_settings(REG_ESET_NOD32_SETTINGS)
run_tool(
'ESET', 'ESET_NOD32_AV',
'--silent', '--accepteula',
'--msi-property', 'PRODUCTTYPE=eav',
'PRODUCT_LANG=1033', 'PRODUCT_LANG_CODE=en-US',
f'ADMINCFG="{config_file}"',
cwd=True, download=True,
)
def install_firefox():
"""Install Firefox.