Difference between revisions of "OcsInventory Agent"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(adding customized ocspackage.exe and updating some infos)
(updated version check to work in the event a 32-bit agent is installed on Win64)
Line 15: Line 15:
 
<packages>
 
<packages>
 
<package id='ocsinventory' name='OcsInventory' revision='1' priority='5' reboot='false' >
 
<package id='ocsinventory' name='OcsInventory' revision='1' priority='5' reboot='false' >
     <check type='file' condition='versiongreaterorequal'  
+
     <check type="logical" condition="or">
    path='%PROGRAMFILES%\OCS Inventory Agent\OCSInventory.exe' value='4.0.6.1' />
+
      <check type='file' condition='versiongreaterorequal'  
 +
      path='%PROGRAMFILES%\OCS Inventory Agent\OCSInventory.exe' value='4.0.6.1' />
 +
      <check type='file' condition='versiongreaterorequal'
 +
      path='%PROGRAMFILES(x86)%\OCS Inventory Agent\OCSInventory.exe' value='4.0.6.1' />
 +
    </check>
 
     <install cmd='%SOFTWARE%\ocsinventory\OcsAgentSetup.exe /S /SERVER:your.server.here /NP' />
 
     <install cmd='%SOFTWARE%\ocsinventory\OcsAgentSetup.exe /S /SERVER:your.server.here /NP' />
 
     <upgrade cmd='%SOFTWARE%\ocsinventory\OcsAgentSetup.exe /S /SERVER:your.server.here /NP /UPGRADE' />
 
     <upgrade cmd='%SOFTWARE%\ocsinventory\OcsAgentSetup.exe /S /SERVER:your.server.here /NP /UPGRADE' />

Revision as of 23:42, 23 March 2011

OcsInventory-ng Windows Agent

Silent install for OcsInventory-ng Agent for Windows.

 OcsInventory is an application that automatically inventories computer systems, 
 reporting back to a central web-based interface. Agents are available for 
 Microsoft Windows 95/98/Me/NT4/2000/XP/2003, Linux, *BSD, Mac OS X, Sun Solaris 
 and IBM AIX.

Using the standard OcsAgentSetup.exe

<?xml version="1.0" encoding="UTF-8"?>

<packages>
<package id='ocsinventory' name='OcsInventory' revision='1' priority='5' reboot='false' >
    <check type="logical" condition="or">
      <check type='file' condition='versiongreaterorequal' 
       path='%PROGRAMFILES%\OCS Inventory Agent\OCSInventory.exe' value='4.0.6.1' />
      <check type='file' condition='versiongreaterorequal' 
       path='%PROGRAMFILES(x86)%\OCS Inventory Agent\OCSInventory.exe' value='4.0.6.1' />
    </check>
    <install cmd='%SOFTWARE%\ocsinventory\OcsAgentSetup.exe /S /SERVER:your.server.here /NP' />
    <upgrade cmd='%SOFTWARE%\ocsinventory\OcsAgentSetup.exe /S /SERVER:your.server.here /NP /UPGRADE' />
    <remove cmd='"%PROGRAMFILES%\OCS Inventory Agent\uninst.exe" /S' />
</package>
</packages>

Be sure to adjust the check version depending on the version you install, and substitute your OCS server for your.server.here.

Using a customized ocspackage.exe

Before all, create your customized ocspackage.exe following the upstream documentation.

<?xml version="1.0" encoding="UTF-8"?>

<packages>
<package
        id="ocsinventoryagent"
        name="OCS Inventory Agent"
        revision="4061"
        priority="60"
        reboot="false">

        <check type="uninstall" condition="exists" path="OCS Inventory Agent 4.0.6.1" />
        <install cmd='%SOFTWARE%\ocsagent\ocspackage.exe' />
        <upgrade cmd='%SOFTWARE%\ocsagent\ocspackage.exe' />
</package>
</packages>