If you wish to build ClamAV from source using Visual Studio 2015, please head over to the Win32 ClamAV Build Instructions located in our source release materials on ClamAV.net and on GitHub.
Important: Installing ClamAV using the Installer will require Administrator privileges.
-
Download: http://www.clamav.net/downloads/production/ClamAV-0.101.0.exe
-
Locate the file in your Downloads directory.
-
Right-click on
ClamAV-0.101.0.exe
and selectRun as administrator
. You may receive a warning message along the lines of "Windows protected your PC". SelectMore info
and then selectRun anyway
. -
Select
I accept the agreement
and clickNext
. -
Click
Next
again. If you've removed a previous installation of ClamAV, you may receive the prompt "The folder ... already exists...". If you do, selectYes
. -
Click
Install
. -
Click
Finish
. -
Press the Windows-key and type
powershell
but DO NOT pressEnter
. Right-click onWindows PowerShell
at the top of the menu and selectRun as administrator
. Your computer may warn youDo you want to allow this app to make changes to your device?
ClickYes
. -
Verify that the prompt in the PowerShell window looks like this:
PS C:\WINDOWS\system32>
-
In the Adminstrator PowerShell window, enter the following to navigate to the ClamAV install directory:
cd "c:\program files\clamav"
Continue on to "First Time Set-Up" below...
- Download: https://www.clamav.net/downloads/production/clamav-0.101.0-win-x64-portable.zip
- Unzip it.
- Open the
clamav-0.101.0-win-x64-portable
directory. - Hold down Shift and then right-click on the background in the current directory (but not on one of the files). Select
"Open PowerShell window here"
. If that option doesn't appear, try again.
Continue on to "First Time Set-Up"...
In the PowerShell window, perform the following tasks:
- Run:
copy .\conf_examples\freshclam.conf.sample .\freshclam.conf
- Run:
write.exe .\freshclam.conf
- WordPad will pop up. Delete the line that says "Example". Save the file and close WordPad.
Before you can start the ClamAV scanning engine (using either clamd
or clamscan
), you must first have ClamAV Virus Database (.cvd) file(s) installed in the appropriate location on your system. The default location for these database files is C:\Program Files\ClamAV\database, the database directory of your ` (in Windows).
Continuing in the PowerShell window:
- Run:
.\freshclam.exe
- freshclam will download some files and drop them in the database directory. This can take a minute or two depending on how fast your internet connection is. The files are a pretty large.
- You are now ready to perform scans with ClamAV. If you using the portable install package, you may now copy the entire
clamav-0.100.1-win-x64-portable
directory to the computer(s) you wish to scan.
-
Run this to scan the files in the current directory:
.\clamscan.exe .
This will scan the current directory. At the end of the scan, it will display a summary. If you notice in the clamscan output, it only scanned something like 60 files, even though there are more files in subdirectories. By default, clamscan will only scan files in the current directory.
-
Run this to scan all the files in the current directory:
.\clamscan.exe --recursive .
-
Run this to scan ALL the files on your C: drive, it will take quite a while. Keep in mind that you can cancel it at any time by pressing
Ctrl-C
:.\clamscan --recursive C:\
-
For more information on ways you can use clamscan, run:
.\clamscan.exe --help
You may have noticed that clamscan
takes a while to get started. This is because it loads the signature database each time you start a scan. If you require faster scanning of individual files, you will want to use clamd
with clamdscan
instead.
Continuing in the PowerShell window:
- Run:
The application will take a moment to load and then appear to hang, but it is in fact waiting for scanning commands from
.\clamd.exe
clamdscan
. - Open a second PowerShell window as you did above, in the same directory.
- In the second PowerShell window, you can now run
clamdscan
much the same way you did withclamscan
above..\clamdscan.exe .