McAfee VirusScan Enterprise
This is a silent installer and uninstaller for McAfee VirusScan Enterprise, an antivirus software. More infos from here.
McAfee Virus Scan Enterprise 8.8
I had problems with McAfee not updating correctly due to WPKG checking the uninstall check, I added in the version check which seamed to fix the problem. The second install/upgrade line is optional if your not copying across your AV settings from a previous version.
<package
id="antivirus"
name="McAfee VirusScan Enterprise 8.8"
revision="8800"
reboot="false"
priority="0" >
<check type="logical" condition="or"> <!-- Version Check, only way to ensure McAfee updates correctly -->
<check type="registry" condition="equals" path="HKLM\SOFTWARE\McAfee\DesktopProtection\szProductVer" value="8.8.0.849" />
<check type="registry" condition="equals" path="HKLM\SOFTWARE\Wow6432Node\McAfee\DesktopProtection\szProductVer" value="8.8.0.849" /> <!-- x64 check -->
</check>
<check type="uninstall" condition="exists" path="McAfee VirusScan Enterprise" />
<install cmd='%SOFTWARE%\McAV\VSE880\Setupvse.exe /qn' />
<install cmd='xcopy /y %SOFTWARE%\McAV\VSE870\MID\VSECFG.CAB "%PROGRAMFILES%\McAfee\VirusScan Enterprise\MID\" '/> <!-- mcav settings -->
<upgrade cmd='%SOFTWARE%\McAV\VSE880\Setupvse.exe /qn' />
<upgrade cmd='xcopy /y %SOFTWARE%\McAV\VSE870\MID\VSECFG.CAB "%PROGRAMFILES%\McAfee\VirusScan Enterprise\MID\" '/> <!-- mcav settings -->
<remove cmd='msiexec /x {CE15D1B6-19B6-4D4D-8F43-CF5D2C3356FF} /qn' />
</package>
McAfee Virus Scan Enterprise 8
<package id="mcafee" name="McAfee VirusScan Enterprise" revision="1" reboot="false" priority="0">
<check type="uninstall" condition="exists" path="McAfee VirusScan Enterprise" />
<install cmd='%SOFTWARE%\ent80epo\setup REBOOT=R /qb /l*v "c:\netinst\logs\vse80i.log" ' />
<remove cmd='msiexec /uninstall{5DF3D1BB-894E-4DCD-8275-159AC9829B43} /qb /l*v "c:\netinst\logs\vse80u.log" ' />
</package>
Amended*
I tried the above but the setup would fail when upgrading an existing version 8 installation to 8.5 as some framework services were already running. I stopped the services, then uninstalled the previous version 8 and then installed 8.5. I also check for the patch version, mine is currently patch 5.
<package id="mcafee85" name="McAfee VirusScan Enterprise" revision="2" reboot="false" priority="50">
<check type="logical" condition="and">
<check type="uninstall" condition="exists" path="McAfee VirusScan Enterprise" />
<check type="file" condition="versiongreaterorequal" path="%programfiles%\mcafee\virusscan enterprise\mcupdate.exe" value="8.5.0.909" />
</check>
<install cmd='net stop mcafeeframework ' >
<exit code='2' />
</install>
<install cmd='net stop mcshield ' >
<exit code='2' />
</install>
<install cmd='net stop mctaskmanager ' >
<exit code='2' />
</install>
<install cmd='MsiExec.exe /q /X{5DF3D1BB-894E-4DCD-8275-159AC9829B43} ' >
<exit code='1605' />
</install>
<install cmd='MsiExec.exe /q /X{35C03C04-3F1F-42C2-A989-A757EE691F65} ' >
<exit code='1605' />
</install>
<install cmd='%SOFTWARE%\VSE850\setupvse.exe REBOOT=R RUNAUTOUPDATE="" RUNONDEMANDSCAN="" /qb- /lv "C:\Temp\McAfee_Install.log" ' />
<upgrade cmd='msiexec /p "%software%\vse850\patch5\patch5.MSP" /qn ' />
<remove cmd='MsiExec.exe /q /X{35C03C04-3F1F-42C2-A989-A757EE691F65} ' />
</package>
A note: The above may work for some, but it caused a lot of trouble for me- autoupdates were broken after installing with the above sequence. Pjjw 02:37, 2 October 2008 (CEST)