Difference between revisions of "ClamWin"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(packages.xml)
m
Line 6: Line 6:
 
* 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
 
<strike>Warning: ClamWin uses cygwin.  If you have multiple programs using different versions of cygwin DLLs, you may have problems!</strike> [http://www.clamwin.com/content/view/122/1/ ClamWin 0.88.1 was the first to remove the Cygwin].
 
  
  
Line 19: Line 17:
 
         priority="1">
 
         priority="1">
 
         <check type="uninstall" condition="exists" path="ClamWin Free Antivirus 0.88.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'>
+
         <install cmd='%SOFTWARE%\ClamWin\clamwin-0.88.1-setup.exe SP- /SILENT /NORESTART /NOCANCEL' />  
              <exit code="0" />
+
         <install cmd='%SOFTWARE%\ClamWin\clam-conf.bat' >
            </install>
+
         <install cmd='\\server\netlogon\wpkg\clamwin\clam-conf.bat' >
+
 
             <exit code="0" />         
 
             <exit code="0" />         
 
             <exit code="1" />         
 
             <exit code="1" />         
 
             </install>             
 
             </install>             
         <upgrade cmd='\\server\public\software\windows\clamwin-0.88.1-setup.exe SP- /SILENT /NORESTART /NOCANCEL'>
+
         <upgrade cmd='%SOFTWARE%\ClamWin\clamwin-0.88.1-setup.exe SP- /SILENT /NORESTART /NOCANCEL'>
 
             <exit code="0" />
 
             <exit code="0" />
 
             </upgrade>         
 
             </upgrade>         
         <upgrade cmd='\\server\netlogon\wpkg\clamwin\clam-conf.bat' >
+
         <upgrade cmd='%SOFTWARE%\ClamWin\clam-conf.bat' >
 
             <exit code="0" />         
 
             <exit code="0" />         
 
             <exit code="1" />         
 
             <exit code="1" />         
 
             </upgrade>
 
             </upgrade>
         <remove cmd='C:\Program Files\ClamWin\unins000.exe' />
+
         <remove cmd='%PROGRAMFILES%\ClamWin\unins000.exe' />
 
         </package>
 
         </package>
 
</pre>
 
</pre>
Line 51: Line 47:
 
mkdir "%PROGRAMFILES%\clamwin"
 
mkdir "%PROGRAMFILES%\clamwin"
 
mkdir "%PROGRAMFILES%\clamwin\bin"
 
mkdir "%PROGRAMFILES%\clamwin\bin"
copy /y \\server\netlogon\wpkg\clamwin\clamwin-nt.conf "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf"
+
copy /y %SOFTWARE%\ClamWin\clamwin-nt.conf "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf"
copy /y \\server\netlogon\wpkg\clamwin\ScheduledScans "%PROGRAMFILES%\ClamWin\bin\ScheduledScans"
+
copy /y %SOFTWARE%\ClamWin\ScheduledScans "%PROGRAMFILES%\ClamWin\bin\ScheduledScans"
  
 
VER | FIND "XP" > nul
 
VER | FIND "XP" > nul
Line 74: Line 70:
 
echo on
 
echo on
 
"%PROGRAMFILES%\ClamWin\bin\WClose.exe"
 
"%PROGRAMFILES%\ClamWin\bin\WClose.exe"
copy /y \\server\netlogon\wpkg\clamwin\clamwin-nt.conf "%USERPROFILE%\Application Data\.clamwin\ClamWin.conf"
+
copy /y %SOFTWARE%\ClamWin\clamwin-nt.conf "%USERPROFILE%\Application Data\.clamwin\ClamWin.conf"
copy /y \\server\netlogon\wpkg\clamwin\ScheduledScans "%USERPROFILE%\Application Data\.clamwin\"
+
copy /y %SOFTWARE%\ClamWin\ScheduledScans "%USERPROFILE%\Application Data\.clamwin\"
 
start "clamtray" "%PROGRAMFILES%\ClamWin\bin\ClamTray.exe"
 
start "clamtray" "%PROGRAMFILES%\ClamWin\bin\ClamTray.exe"
 
goto end
 
goto end
Line 93: Line 89:
  
 
          
 
          
[[category:Silent Installers|ClamWin]]
+
[[category:Silent Installers]]

Revision as of 20:09, 30 September 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:


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='%SOFTWARE%\ClamWin\clamwin-0.88.1-setup.exe SP- /SILENT /NORESTART /NOCANCEL' /> 
        <install cmd='%SOFTWARE%\ClamWin\clam-conf.bat' >
            <exit code="0" />        
            <exit code="1" />        
            </install>            
        <upgrade cmd='%SOFTWARE%\ClamWin\clamwin-0.88.1-setup.exe SP- /SILENT /NORESTART /NOCANCEL'>
            <exit code="0" />
            </upgrade>        
        <upgrade cmd='%SOFTWARE%\ClamWin\clam-conf.bat' >
            <exit code="0" />        
            <exit code="1" />        
            </upgrade>
        <remove cmd='%PROGRAMFILES%\ClamWin\unins000.exe' />
        </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 %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 "%USERPROFILE%\Application Data\.clamwin\ClamWin.conf"
copy /y %SOFTWARE%\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