[wpkg-users] Retrieving a program's version

Falko Trojahn wpkg at trojahn.de
Thu Mar 13 12:47:03 CET 2014


On Wed, 12 Mar 2014 21:09:51 +0100, Frank Morawietz <nestolea at gmail.com>
wrote:
>> Or, if you'd like to play with something maybe a little overkill,
>> there's OCSInventory.
>>
>> Or, for something _certainly_ overkill, GLPI with FusionInventory.
> I agree, a solution like OCSI would be overkill. And it requires a 
> dedicated server.
> The reason, why I chose WPKG in favour of OSCI or OPSI, was that I 
> didn't want an additional server running all the time. The simplicity of

> WPKG, that requires only a network share, makes it superior for small 
> and home networks in my opinion.

Then, you can try fusioninventory agent without server (Yes!),

http://www.fusioninventory.org/documentation/agent/network_less/

May be in conjunction with
http://wpkg.org/User_contributed_software#wpkgCreateReport
you could work out a solution which includes the output of the
fusion inventory xml file to report other software (apart from wpkg
installed), too.

Find my xml for fusioninventory agent and call attached - untested, just
to
get an idea.

Best regards,
Falko

-- 
Your's sincerely - Mit freundlichen Grüßen -
Reçevez mes salutations distinguées

Falko Trojahn 
http://www.trojahn.de
-------------- next part --------------
<?xml version="1.0" encoding="UTF-8"?>

<packages>

        <package
           id="fusioninventory23"
           name="run fusion inventory agent 2.3"
      	   revision="2"
           reboot="false"
	   execute="always"
           priority="8" >
	<depends package-id="fusioninventoryagent23"/>

	<variable name="PKG_OPTIONS"          value=" /local  " />

	<install cmd='%COMSPEC% /c  if exist "%PROGRAMFILES(x86)%\FusionInventory Agent\perl\bin\fusioninventory-agent" start "%PROGRAMFILES(x86)%\FusionInventory Agent\perl\bin\perl.exe" "%PROGRAMFILES(x86)%\FusionInventory Agent\perl\bin\fusioninventory-agent" --force %PKG_OPTIONS% ' />
	<downgrade include="install" />
	<upgrade include="install" />
        </package>

    <package
            id="fusioninventoryagent23"
            name="fusion inventory agent 2.3"
            revision="%PKG_VERSION%"
            reboot="false"
            priority="8" >

        <check type="uninstall" condition="versionequalto" path="FusionInventory Agent" value="%PKG_VERSION%" />

        <variable name="PKG_VERSION"          value="2.3.6" />
        <variable name="PKG_SOURCE"           value="%SOFTWARE%\packages\fusioninventory" />
	<variable name="PKG_OPTIONS"          value="/acceptlicense /add-firewall-exception /execmode=manual  " />

        <install cmd="cmd /c regedit /s %PKG_SOURCE%\fusion2-win7_64.reg" />
	<install cmd='cmd /c %PKG_SOURCE%\fusioninventory-agent_windows-x86_%PKG_VERSION%.exe /S %PKG_OPTIONS% /runnow /local /tag=Windows ' />

        <downgrade include="upgrade" />
        <upgrade include="remove" />
        <upgrade include="install" />

        <remove  cmd='"%PROGRAMFILES(X86)%\FusionInventory-Agent\uninstFI.exe" /S' />
        <remove  cmd='"%SOFTWARE%\tools\waitforprocess.cmd" uninstFI.exe' />
    </package>
</packages>


More information about the wpkg-users mailing list