Difference between revisions of "Viewing software installed on workstations"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
Line 1: Line 1:
If you have WPKG runing on your workstations, you will probably want to see the software installed on each of them, even if the workstations are turned off.
+
If you have WPKG running on your workstations, you will probably want to see what software is installed, even if the workstations are turned off.
  
As WPKG keeps its own "database" on each machine (it's in <code>%SYSTEMROOT%\system32\wpkg.xml</code>, it's enough to copy it to a special share on your server.
+
By default, WPKG keeps its own "database" on each machine (it's in <code>%SYSTEMROOT%\system32\wpkg.xml</code> - it is enough to copy this file to a special share on your server.
  
 
If you use Samba, a share may be configured like this:
 
If you use Samba, a share may be configured like this:
Line 20: Line 20:
 
You can do this with WPKG of course:
 
You can do this with WPKG of course:
  
<package
+
<source lang="xml">
 +
<package
 
     id="wpkg-xml"
 
     id="wpkg-xml"
 
     name="wpkg.xml files from workstations"
 
     name="wpkg.xml files from workstations"
Line 27: Line 28:
 
     execute="always">
 
     execute="always">
 
   
 
   
<install timeout="15" cmd='cmd /C copy %SYSTEMROOT%\system32\wpkg.xml \\server\wpkg-xml\%COMPUTERNAME%.xml /Y' />
+
<install timeout="15" cmd='cmd /C copy %SYSTEMROOT%\system32\wpkg.xml \\server\wpkg-xml\%COMPUTERNAME%.xml /Y' />
 
   
 
   
</package>
+
</package>
 +
</source>
  
 +
Note - WPKG (wpkg.js) saves wpkg.xml file as one of its last actions. To make it easier to imagine, it works as follows:
 +
* WPKG installs software,
 +
* WPKG copies a local wpkg.xml file to the server,
 +
* WPKG updates a local wpkg.xml file.
 +
 +
Because of this, the wpkg.xml file on the server will be a previous version of a local wpkg.xml.
 +
 +
 +
To have the latest version, you can either:
 +
* use WPKG client, and copy this file as "Execute after" action,
 +
* in [[config.xml]], configure wpkg.js to save this file on the server.
  
 
[[category:Documentation]]
 
[[category:Documentation]]

Revision as of 19:13, 16 May 2008

If you have WPKG running on your workstations, you will probably want to see what software is installed, even if the workstations are turned off.

By default, WPKG keeps its own "database" on each machine (it's in %SYSTEMROOT%\system32\wpkg.xml - it is enough to copy this file to a special share on your server.

If you use Samba, a share may be configured like this:

[wpkg-xml]
  comment = WPKG workstation XML
  path = /home/samba/wpkg-xml
  browseable = no
  valid users = unattended, Administrator
  write list = Administrator
  guest ok = no

Make sure you create the appropriate directory ("path = ..." above) with correct permissions. After that, check if you can write to this share as the user which normally runs WPKG.


Additionally, you have to make sure that wpkg.xml file is copied to this share, with a proper name. We use copy command to copy the file, and %COMPUTERNAME% variable with .xml extension for the destination file.

You can do this with WPKG of course:

<package
     id="wpkg-xml"
     name="wpkg.xml files from workstations"
     revision="1"
     priority="0"
     execute="always">
 
<install timeout="15" cmd='cmd /C copy %SYSTEMROOT%\system32\wpkg.xml \\server\wpkg-xml\%COMPUTERNAME%.xml /Y' />
 
</package>

Note - WPKG (wpkg.js) saves wpkg.xml file as one of its last actions. To make it easier to imagine, it works as follows:

  • WPKG installs software,
  • WPKG copies a local wpkg.xml file to the server,
  • WPKG updates a local wpkg.xml file.

Because of this, the wpkg.xml file on the server will be a previous version of a local wpkg.xml.


To have the latest version, you can either:

  • use WPKG client, and copy this file as "Execute after" action,
  • in config.xml, configure wpkg.js to save this file on the server.