Difference between revisions of "ClamWin"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(major package update... actually works now)
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.87.1 uses Inno Setup.
+
ClamWin 0.88.1 uses Inno Setup.
  
 
References:
 
References:
 
* http://www.samag.com/documents/s=9464/sam0501a/0501a.htm
 
* http://www.samag.com/documents/s=9464/sam0501a/0501a.htm
 
* http://www.winlibre.com/wiki/doku.php?id=winlibre_dev:travail_en_cours
 
* http://www.winlibre.com/wiki/doku.php?id=winlibre_dev:travail_en_cours
 
Warning: The following setup has not been tested very much yet.
 
  
 
Warning: ClamWin uses cygwin.  If you have multiple programs using different versions of cygwin DLLs, you may have problems!
 
Warning: ClamWin uses cygwin.  If you have multiple programs using different versions of cygwin DLLs, you may have problems!
  
Note: I tried an uninstall condition for clamwin, and I don't know why it fails?
 
  
 +
== packages.xml ==
  
  <package id="clamwin"
+
<pre>
         name="ClamWin Free Antivirus"
+
  <package id="clamwin"  
         revision="1"
+
         name="ClamWin Free Antivirus"  
         reboot="false"
+
         revision="5"  
 +
         reboot="false"  
 
         priority="1">
 
         priority="1">
<!-- I don't know why the uninstall condition fails -->
+
        <check type="uninstall" condition="exists" path="ClamWin Free Antivirus 0.88.1" />
<!--        <check type="uninstall" condition="exists" path="ClamWin" /> -->
+
         <install cmd='\\server\public\software\windows\clamwin-0.88.1-setup.exe SP- /SILENT /NORESTART /NOCANCEL'>
        <check type="file" condition="exists" path="%PROGRAMFILES%\clamwin\bin\clamtray.exe" />
+
         <install cmd='\\server\public\software\windows\clamwin-0.87.1-setup.exe /SP- /SILENT /NORESTART /NOCANCEL'>
+
 
               <exit code="0" />
 
               <exit code="0" />
        </install>
+
            </install>
         </package>
+
         <install cmd='\\server\netlogon\wpkg\clamwin\clam-conf.bat' >
<package id="clamwin-win9x"  name="ClamWin Configuration for Windows 95, 98, ME"
+
            <exit code="0" />      
                revision="1"  reboot="false" priority="0" execute="once">
+
            <exit code="1" />      
        <install cmd='mkdir c:\program files\clamwin' />
+
            </install>          
        <install cmd='mkdir c:\program files\clamwin\bin' />
+
         <upgrade cmd='\\server\public\software\windows\clamwin-0.88.1-setup.exe SP- /SILENT /NORESTART /NOCANCEL'>
         <install cmd='cp \\server\netlogon\wpkg\clamwin\clamwin-9x.conf %PROGRAMFILES%\ClamWin\bin\ClamWin.conf' />
+
            <exit code="0" />
        <install cmd='cp \\server\netlogon\wpkg\clamwin\ScheduledScans %PROGRAMFILES%\ClamWin\bin\ScheduledScans' />         
+
            </upgrade>      
        </package>
+
         <upgrade cmd='\\server\netlogon\wpkg\clamwin\clam-conf.bat' >
<package id="clamwin-winnt"  name="ClamWin Configuration for Windows NT, 2000, XP"
+
            <exit code="0" />      
                revision="1"  reboot="false" priority="0" execute="once">
+
            <exit code="1" />       
        <install cmd='mkdir c:\program files\clamwin' />
+
            </upgrade>
        <install cmd='mkdir c:\program files\clamwin\bin' />
+
         <install cmd='cp \\server\netlogon\wpkg\clamwin\clamwin-nt.conf %PROGRAMFILES%\ClamWin\bin\ClamWin.conf' />
+
        <install cmd='cp \\server\netlogon\wpkg\clamwin\ScheduledScans %PROGRAMFILES%\ClamWin\bin\ScheduledScans' />
+
 
         </package>
 
         </package>
 +
</pre>
 +
 +
== clam-conf.bat ==
 +
 +
<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 \\server\netlogon\wpkg\clamwin\clamwin-nt.conf "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf"
 +
copy /y \\server\netlogon\wpkg\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 "ME" > 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 \\server\netlogon\wpkg\clamwin\clamwin-nt.conf "%USERPROFILE%\Application Data\.clamwin\ClamWin.conf"
 +
copy /y \\server\netlogon\wpkg\clamwin\ScheduledScans "%USERPROFILE%\Application Data\.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>
  
  
 +
       
 
[[category:Silent Installers|ClamWin]]
 
[[category:Silent Installers|ClamWin]]

Revision as of 18:56, 13 April 2006

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:

Warning: ClamWin uses cygwin. If you have multiple programs using different versions of cygwin DLLs, you may have problems!


packages.xml

 <package id="clamwin" 
        name="ClamWin Free Antivirus" 
        revision="5" 
        reboot="false" 
        priority="1">
        <check type="uninstall" condition="exists" path="ClamWin Free Antivirus 0.88.1" />
        <install cmd='\\server\public\software\windows\clamwin-0.88.1-setup.exe SP- /SILENT /NORESTART /NOCANCEL'>
               <exit code="0" />
            </install>
        <install cmd='\\server\netlogon\wpkg\clamwin\clam-conf.bat' >
            <exit code="0" />        
            <exit code="1" />        
            </install>            
        <upgrade cmd='\\server\public\software\windows\clamwin-0.88.1-setup.exe SP- /SILENT /NORESTART /NOCANCEL'>
            <exit code="0" />
            </upgrade>        
        <upgrade cmd='\\server\netlogon\wpkg\clamwin\clam-conf.bat' >
            <exit code="0" />        
            <exit code="1" />        
            </upgrade>
        </package>

clam-conf.bat

@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 \\server\netlogon\wpkg\clamwin\clamwin-nt.conf "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf"
copy /y \\server\netlogon\wpkg\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 "ME" > 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 \\server\netlogon\wpkg\clamwin\clamwin-nt.conf "%USERPROFILE%\Application Data\.clamwin\ClamWin.conf"
copy /y \\server\netlogon\wpkg\clamwin\ScheduledScans "%USERPROFILE%\Application Data\.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