Difference between revisions of "ClamWin"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(64 bit works. verysilent. don't download during install. 0.98.1. Fixed quote error.)
 
Line 1: Line 1:
 
This is a silent installer and uninstaller for ClamWin.
 
This is a silent installer and uninstaller for ClamWin.
 +
 +
See also [[ClamSentinel]] for real time 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 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.
Line 12: Line 14:
 
== packages.xml ==  
 
== packages.xml ==  
 
<source lang="xml">
 
<source lang="xml">
   <package id="clamwin" name="ClamWin Free Antivirus" revision="0953" priority="10" reboot="false">
+
<!--
    <check type="uninstall" condition="exists" path="ClamWin Free Antivirus 0.95.3"/>
+
Tested on:
    <install cmd="%SOFTWARE%\ClamWin\clamwin-0.95.3-setup.exe /sp- /silent /norestart /notb"/>
+
   Windows XP 32bit
    <install cmd="%PROGRAMFILES%\ClamWin\bin\WClose.exe"/>
+
  Windows 7 64bit
    <install cmd="cmd /C copy /y "%SOFTWARE%\ClamWin\ClamWin.conf" "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf""/>
+
-->
    <install cmd="cmd /C copy /y "%SOFTWARE%\ClamWin\ScheduledScans" "%PROGRAMFILES%\ClamWin\bin\ScheduledScans""/>
+
<package id="clamwin" name="ClamWin Free Antivirus" revision="%version%-20140612" priority="10" reboot="false">
 +
        <variable architecture="x86" name="progfiles" value="%PROGRAMFILES%" />
 +
        <variable architecture="x64" name="progfiles" value="%PROGRAMFILES(X86)%" />
 +
        <variable name="version" value="0.98.1" />
 +
 
 +
        <!-- Instead of %version% we match .*, for any Clam version -->
 +
        <check type="uninstall" condition="exists" path="ClamWin Free Antivirus .*"/>
 +
 
 +
        <!--
 +
                DownloadDB would be fine, but it wants to popup a GUI.
 +
                Additionally, any proxy settings, etc won't be available for it yet.
 +
        -->
 +
        <install cmd="%SOFTWARE%\ClamWin\clamwin-%version%-setup.exe /sp- /verysilent /suppressmsgboxes /norestart /notb /mergetasks=!DownloadDB "/>
 +
        <install cmd="%progfiles%\ClamWin\bin\WClose.exe"/>
 +
        <!--
 +
                Perhaps use http://www.clamwin.com/images/stories/ClamWin.conf
 +
        -->
 +
        <install cmd='cmd /C copy /y "%SOFTWARE%\ClamWin\ClamWin.conf" "%progfiles%\ClamWin\bin\ClamWin.conf"'/>
  
    <upgrade cmd="%PROGRAMFILES%\ClamWin\bin\WClose.exe"/>
+
        <upgrade cmd="%progfiles%\ClamWin\bin\WClose.exe"/>
    <upgrade cmd="%SOFTWARE%\ClamWin\clamwin-0.95.3-setup.exe /sp- /silent /norestart /notb"/>
+
        <upgrade include="install"/>
    <upgrade cmd="%PROGRAMFILES%\ClamWin\bin\WClose.exe"/>
+
    <upgrade cmd="cmd /C copy /y "%SOFTWARE%\ClamWin\ClamWin.conf" "%PROGRAMFILES%\ClamWin\bin\ClamWin.conf""/>
+
    <upgrade cmd="cmd /C copy /y "%SOFTWARE%\ClamWin\ScheduledScans" "%PROGRAMFILES%\ClamWin\bin\ScheduledScans""/>
+
  
    <remove cmd="%PROGRAMFILES%\ClamWin\bin\WClose.exe"/>
+
        <remove cmd="%progfiles%\ClamWin\bin\WClose.exe"/>
    <remove cmd="%PROGRAMFILES%\ClamWin\unins000.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL"/>
+
        <remove cmd="%progfiles%\ClamWin\unins000.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL"/>
 
</package>
 
</package>
  

Latest revision as of 22:26, 12 June 2014

This is a silent installer and uninstaller for ClamWin.

See also ClamSentinel for real time 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.

References:


The /NOTB option is necessary with newer versions to prevent the installation of the "Ask Toolbar" package along with ClamWin. (Lower case /notb is needed for version 97.7)

packages.xml

<!--
Tested on:
  Windows XP 32bit
  Windows 7 64bit
-->
<package id="clamwin" name="ClamWin Free Antivirus" revision="%version%-20140612" priority="10" reboot="false">
        <variable architecture="x86" name="progfiles" value="%PROGRAMFILES%" />
        <variable architecture="x64" name="progfiles" value="%PROGRAMFILES(X86)%" />
        <variable name="version" value="0.98.1" />

        <!-- Instead of %version% we match .*, for any Clam version -->
        <check type="uninstall" condition="exists" path="ClamWin Free Antivirus .*"/>

        <!--
                DownloadDB would be fine, but it wants to popup a GUI.
                Additionally, any proxy settings, etc won't be available for it yet.
        -->
        <install cmd="%SOFTWARE%\ClamWin\clamwin-%version%-setup.exe /sp- /verysilent /suppressmsgboxes /norestart /notb /mergetasks=!DownloadDB "/>
        <install cmd="%progfiles%\ClamWin\bin\WClose.exe"/>
        <!--
                Perhaps use http://www.clamwin.com/images/stories/ClamWin.conf
        -->
        <install cmd='cmd /C copy /y "%SOFTWARE%\ClamWin\ClamWin.conf" "%progfiles%\ClamWin\bin\ClamWin.conf"'/>

        <upgrade cmd="%progfiles%\ClamWin\bin\WClose.exe"/>
        <upgrade include="install"/>

        <remove cmd="%progfiles%\ClamWin\bin\WClose.exe"/>
        <remove cmd="%progfiles%\ClamWin\unins000.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /NOCANCEL"/>
</package>

Tip: Avoiding e-mail alerts on phishing

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

clamscanparams = --no-html