Difference between revisions of "ClamWin"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(packages.xml)
Line 1: Line 1:
 
ClamWin is an free, open source antivirus scanner for Windows.  ClamWin uses the ClamAV antivirus scanning engine.  ClamWin supports on-request and scheduled scanning, but ClamWin does not perform any on-access scanning.
 
ClamWin is an free, open source antivirus scanner for Windows.  ClamWin uses the ClamAV antivirus scanning engine.  ClamWin supports on-request and scheduled scanning, but ClamWin does not perform any on-access scanning.
 
ClamWin 0.88.1 uses Inno Setup.
 
  
 
References:
 
References:
Line 10: Line 8:
 
== packages.xml ==  
 
== packages.xml ==  
 
<pre>
 
<pre>
<!-- Version 1.0 of clamwin will switch to NSIS installer, meaning install arguments will change
+
  <package id="clamwin" name="ClamWin Free Antivirus" revision="1" reboot="false" priority="10">
See: http://forums.clamwin.com/viewtopic.php?p=5673#5673 -->
+
         <check type="uninstall" condition="exists" path="ClamWin Free Antivirus 0.91.2" />
  <package id="clamwin"  
+
         <install cmd='"%PACKAGES%\clamwin-0.91.2-setup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL' />
        name="ClamWin Free Antivirus"  
+
         <install cmd='"%PROGRAMFILES%\ClamWin\bin\WClose.exe"' />
        revision="0912"  
+
        <install cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ClamWin.conf" "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf"' />
        reboot="false"  
+
        <install cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ScheduledScans" "%PROGRAMFILES%\ClamWin\bin\ScheduledScans"' />
        priority="1">
+
        <install cmd='start "clamtray" "%PROGRAMFILES%\ClamWin\bin\ClamTray.exe"' />
         <check type="uninstall" condition="exists" path="ClamWin Free Antivirus 0.88.1" />
+
         <upgrade cmd='"%PACKAGES%\clamwin-0.91.2-setup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL'></upgrade>
         <install cmd='%SOFTWARE%\ClamWin\clamwin-0.91.2-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL' />  
+
        <upgrade cmd='"%PROGRAMFILES%\ClamWin\bin\WClose.exe"' />
         <install cmd='%SOFTWARE%\ClamWin\clam-conf.bat' >
+
        <upgrade cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ClamWin.conf" "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf"' />
            <exit code="0" />      
+
        <upgrade cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ScheduledScans" "%PROGRAMFILES%\ClamWin\bin\ScheduledScans"' />
            <exit code="1" />      
+
         <upgrade cmd='start "clamtray" "%PROGRAMFILES%\ClamWin\bin\ClamTray.exe"' />
            </install>          
+
        <remove  cmd='"%PROGRAMFILES%\ClamWin\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL' />
         <upgrade cmd='%SOFTWARE%\ClamWin\clamwin-0.91.2-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL'>
+
</package>
            <exit code="0" />
+
 
            </upgrade>      
+
<package id="clamwinconf" name="ClamWin Free Antivirus config" revision="4" reboot="false" priority="1" execute="once" >
         <upgrade cmd='%SOFTWARE%\ClamWin\clam-conf.bat' >
+
        <depends package-id="clamwin"/>
            <exit code="0" />      
+
         <install cmd='"%PROGRAMFILES%\ClamWin\bin\WClose.exe"' />
            <exit code="1" />      
+
        <install cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ClamWin.conf" "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf"' />
            </upgrade>
+
        <install cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ScheduledScans" "%PROGRAMFILES%\ClamWin\bin\ScheduledScans"' />
         <remove cmd="'%PROGRAMFILES%\ClamWin\unins000.exe' /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL" />
+
         <install cmd='cmd /C start "clamtray" "%PROGRAMFILES%\ClamWin\bin\ClamTray.exe"' />
         </package>
+
</package>
 +
 
 
</pre>
 
</pre>
  
Line 37: Line 36:
  
 
<pre>
 
<pre>
@echo off
 
REM
 
REM  This batch file configures ClamWin, so you can setup e-mail
 
REM  reports, a web proxy, schedulding, etc.
 
REM
 
REM  To use this batch file, configure ClamWin using the GUI
 
REM  and copy the clamwin.conf and ScheduledScans to your server.
 
REM 
 
 
mkdir "%PROGRAMFILES%\clamwin"
 
mkdir "%PROGRAMFILES%\clamwin\bin"
 
copy /y %SOFTWARE%\ClamWin\clamwin-nt.conf "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf"
 
copy /y %SOFTWARE%\ClamWin\ScheduledScans "%PROGRAMFILES%\ClamWin\bin\ScheduledScans"
 
 
VER | FIND "XP" > nul
 
IF not errorlevel 1 GOTO Win_2000XP
 
 
VER | FIND "Windows 2000" > nul
 
IF not errorlevel 1 GOTO Win_2000XP
 
 
VER | FIND "98" > nul
 
IF not errorlevel 1 GOTO Win_9xME
 
 
VER | FIND "Millennium" > nul
 
IF not errorlevel 1 GOTO Win_9xME
 
 
VER| FIND "95" > nul
 
IF not errorlevel 1 GOTO Win_9xME
 
 
goto Win_unknown
 
 
:Win_2000XP
 
echo on
 
"%PROGRAMFILES%\ClamWin\bin\WClose.exe"
 
copy /y %SOFTWARE%\ClamWin\clamwin-nt.conf "%APPDATA%\.clamwin\ClamWin.conf"
 
copy /y %SOFTWARE%\ClamWin\ScheduledScans "%APPDATA%\.clamwin\"
 
start "clamtray" "%PROGRAMFILES%\ClamWin\bin\ClamTray.exe"
 
goto end
 
 
:Win_9xME
 
echo You are running Windows 95, 98, or ME
 
echo not yet implemented
 
goto end
 
 
:Win_unknown
 
echo "ERROR: Your Windows version is unknown!"
 
 
:end
 
  
 
</pre>
 
</pre>

Revision as of 02:04, 16 November 2007

ClamWin is an free, open source antivirus scanner for Windows. ClamWin uses the ClamAV antivirus scanning engine. ClamWin supports on-request and scheduled scanning, but ClamWin does not perform any on-access scanning.

References:


packages.xml

 <package id="clamwin" name="ClamWin Free Antivirus" revision="1" reboot="false" priority="10">
        <check type="uninstall" condition="exists" path="ClamWin Free Antivirus 0.91.2" />
        <install cmd='"%PACKAGES%\clamwin-0.91.2-setup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL' />
        <install cmd='"%PROGRAMFILES%\ClamWin\bin\WClose.exe"' />
        <install cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ClamWin.conf" "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf"' />
        <install cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ScheduledScans" "%PROGRAMFILES%\ClamWin\bin\ScheduledScans"' />
        <install cmd='start "clamtray" "%PROGRAMFILES%\ClamWin\bin\ClamTray.exe"' />
        <upgrade cmd='"%PACKAGES%\clamwin-0.91.2-setup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL'></upgrade>
        <upgrade cmd='"%PROGRAMFILES%\ClamWin\bin\WClose.exe"' />
        <upgrade cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ClamWin.conf" "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf"' />
        <upgrade cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ScheduledScans" "%PROGRAMFILES%\ClamWin\bin\ScheduledScans"' />
        <upgrade cmd='start "clamtray" "%PROGRAMFILES%\ClamWin\bin\ClamTray.exe"' />
        <remove  cmd='"%PROGRAMFILES%\ClamWin\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL' />
</package>

<package id="clamwinconf" name="ClamWin Free Antivirus config" revision="4" reboot="false" priority="1" execute="once" >
        <depends package-id="clamwin"/>
        <install cmd='"%PROGRAMFILES%\ClamWin\bin\WClose.exe"' />
        <install cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ClamWin.conf" "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf"' />
        <install cmd='cmd /C copy /y "%PACKAGES%\ClamWin\ScheduledScans" "%PROGRAMFILES%\ClamWin\bin\ScheduledScans"' />
        <install cmd='cmd /C start "clamtray" "%PROGRAMFILES%\ClamWin\bin\ClamTray.exe"' />
</package>

clam-conf.bat



Tip: Avoiding e-mail alerts on phishing

http://forums.clamwin.com/viewtopic.php?p=3251#3251

clamscanparams = --no-html