Difference between revisions of "OcsInventory Agent"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(corrected link to ocsinventory-ng website)
(adding customized ocspackage.exe and updating some infos)
Line 1: Line 1:
SIlent installer for [http://www.ocsinventory-ng.org/ OcsInventory] Agent.  
+
== OcsInventory-ng Windows Agent  ==
*working link: http://www.ocsinventory-ng.org/index.php?page=1-01 (Nov 26, 2008)
+
 
 +
Silent install for [http://ocsinventory-ng.org OcsInventory-ng[https://launchpad.net/ocsinventory-windows-agent Agent for Windows].
  
 
   OcsInventory is an application that automatically inventories computer systems,  
 
   OcsInventory is an application that automatically inventories computer systems,  
Line 7: Line 8:
 
   and IBM AIX.
 
   and IBM AIX.
  
The packages.xml definition:
+
=== Using the standard OcsAgentSetup.exe ===
  
 
<source lang="xml">
 
<source lang="xml">
 +
<?xml version="1.0" encoding="UTF-8"?>
 +
 +
<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='file' condition='versiongreaterorequal'  
     path='%PROGRAMFILES%\OCS Inventory Agent\OCSInventory.exe' value='4.0.3.2' />
+
     path='%PROGRAMFILES%\OCS Inventory Agent\OCSInventory.exe' value='4.0.6.1' />
 
     <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' />
 
     <remove cmd='"%PROGRAMFILES%\OCS Inventory Agent\uninst.exe" /S' />
 
     <remove cmd='"%PROGRAMFILES%\OCS Inventory Agent\uninst.exe" /S' />
 
</package>
 
</package>
 +
</packages>
 
</source>
 
</source>
  
 
Be sure to adjust the check version depending on the version you install, and substitute your OCS server for ''your.server.here''.
 
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 [http://wiki.ocsinventory-ng.org/index.php/Documentation:Agent upstream documentation].
 +
 +
<source lang="xml">
 +
<?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>
 +
</source>
 +
  
 
[[Category: Silent Installers]]
 
[[Category: Silent Installers]]

Revision as of 14:06, 1 December 2009

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='file' condition='versiongreaterorequal' 
     path='%PROGRAMFILES%\OCS Inventory Agent\OCSInventory.exe' value='4.0.6.1' />
    <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>