To prepare for installing and configuring custom scanning, see Configure virus scanning before uploading a package
The custom scanner example shown below makes use of the ClamAV virus scanner.
-
Download Clam AV Win.X64.Zip file, located at ClamAV Downloads.
-
Create a folder on the system and extract the .ZIP file to that folder. For example: C:\ClamAV folder.
-
From the ClamAV installation package, locate the clamd.conf and freshclam.conf files and copy them to the ClamAV folder. See, ClamAV configuration.
-
Open a command prompt window and enter the following command: C:\ClamAV>freshclam.exe . This downloads the latest virus definitions.
-
To install ClamAV, enter the following command: C:\ClamAV>clamd –install. The command response is: Service ClamD successfully created.
-
To install the ClamAV Virus Updater service, enter the following command: C:\ClamAV>freshclam -install. The command response is: Service FreshClam successfully created.
-
From the Windows Control Panel, select Administrative Tools > Services.
-
In the Services list, select the Startup Type to Automatic for the ClamAV FreshClam and the ClamAV ClamD services.
-
To activate the service in the code, open the appsettings.json file located in WebApi.Service project.
-
Set the Active value to "true", in the “ClamAVServer” section.
-
Save and close the appsettings.json file.
-
Restart the Smart Engineering Manager server.
We recommend downloading and configuring the ClamAV service on the same machine on
which Smart Engineering Manager is installed.