[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/se3-wpkg/sources/wpkg/ -> packages.xml.orig (source)

   1  <?xml version="1.0" encoding="UTF-8"?>
   2  
   3  <!-- Available package database.
   4  
   5       This is a list of all packages that can be deployed to workstations.
   6       
   7       Each package has the following attributes:
   8       
   9          id          A unique identifier representing the package. Should be
  10                      short and to the point.
  11                  
  12          name        Longer textual description of the package. This should be
  13                      the full product name.
  14                  
  15          revision    User created integer to represent the "version" of the
  16                      specific package. Should be incremented when creating a new
  17                      release.
  18                      
  19          reboot      If "true" system reboots when done installing, removing or
  20                      upgrading the package.
  21                      
  22          priority    Specifies a numeric value that determines in what order a
  23                      package will be installed.
  24                      
  25      The following additional elements can or must be included within a package:
  26      
  27          depends     Specifies that this package depends on another package and
  28                      optionally version. Either that package must be installed or
  29                      must be installable.
  30      
  31          install     Contains command(s) to be run when the package is to be
  32                      installed.
  33                      
  34          remove      Contains command(s) to be run when the package is to be
  35                      removed.
  36                      
  37          upgrade     Contains commands(s) to be run when the package is already
  38                      installed, but the new revision number is greater than the
  39                      old revision number.
  40                      
  41          env         Sets an environmental variable to the specified value 
  42              (not yet implemented).
  43                      
  44      THIS IS A SAMPLE FILE
  45      
  46      For more info, see http://wpkg.org/index.php/Category:Documentation
  47                      
  48  -->
  49  
  50  <packages>
  51  
  52      <package
  53          id="wpkg1"
  54          name="Windows Packager sample 1"
  55          revision="1"
  56          reboot="false"
  57          priority="0">
  58          
  59          <!--
  60      Three check conditions: "registry" (checks the registry), "file" (checks for a presence of a file)
  61      and "uninstall" - checks in Software Add/Remove.
  62      This means: if the "registry" condition is not met (i.e., the specified registry entry doesn't exist),
  63      or, "file" condition is not met (i.e., that file doesn't exist), or, "uninstall" condition is not met
  64      (i.e., software is not listed in Software Add/Remove), WPKG will try to execute "install cmd".
  65      After it's executed, WPKG will check the exit code (should be 0 in this example) *and* verify all the checks.
  66      If *any* of the checks is not met, software is considered *not* installed.
  67      So enter these values carefully!
  68      Remember that you don't have to specify all three check conditions, usually one of them is enough:
  69      if the software you are about to install will show up in Software Add/Remove, it is sufficient to specify just
  70      "uninstall" check.    
  71          -->
  72          
  73          <check type="registry" condition="exists" path="HKLM\Software\wpkg\full\key\not\part\of\it" />
  74          <check type="file" condition="exists" path="C:\wpkg\wpkg.bat" />
  75      <check type="uninstall" condition="exists" path="WPKG 0.6-test1" />
  76          
  77          <install cmd='msiexec /i (path to msi)'>
  78              <exit code="0" />
  79          </install>
  80          
  81          <remove  cmd='msiexec /x (path to msi)' />
  82          
  83          <upgrade cmd='msiexec /i (path to msi)' />
  84          
  85      </package>
  86  
  87      <package
  88          id="wpkg2"
  89          name="Windows Packager sample 2"
  90          revision="1"
  91          reboot="false"
  92          priority="0">
  93  
  94      <!-- One profile can depend on other profiles -->    
  95          <depends package-id="some-library" />
  96      
  97          
  98          <!--
  99      No check conditions; script will be executed *each time* wpkg.js is called - each time PC is booted.
 100          -->
 101          
 102          
 103          <install cmd='\\server\path\script.bat' />
 104          
 105      </package>
 106  
 107      <package
 108          id="wpkg3"
 109          name="Windows Packager sample 3"
 110          revision="1"
 111          reboot="false"
 112          priority="1">
 113          <!--
 114      The higher the priority, the earlier the package will be installed. In our case, in profile "administration",
 115      "wpkg3" would be installed first (because priority 1 > priority 0), then "wpkg1", because it has the same
 116      priority as "wpkg2", but is higher on the list.
 117          -->
 118  
 119          
 120          <!--
 121      Checks in Software Add/Remove only.
 122          -->
 123      <check type="uninstall" condition="exists" path="Sample Package Software 1.6" />
 124          
 125          
 126          <install cmd='\\server\packages\software\package.exe /quiet /install'>
 127              <exit code="0" />
 128          </install>
 129          
 130          <remove  cmd='\\server\packages\software\package.exe /quiet /uninstall' />
 131          
 132          <upgrade cmd='' />
 133  
 134          
 135      </package>
 136  
 137      <package
 138      id="time"
 139      name="Time Synchonization"
 140      revision="1"
 141      reboot="false"
 142      priority="100"
 143      notify="false"
 144      execute="always">
 145  
 146      <!--
 147      notify="false" - does not notify the user (with "true" user would be notified)
 148      execute="always" - always executes "install cmd" - sets time in this example
 149      execute="once" - executes only once, and never again
 150      -->
 151  
 152      <install cmd="net time \\timeserver /set /yes" />
 153  
 154      </package>
 155                                                        
 156  
 157  
 158  </packages>


Generated: Tue Mar 17 22:47:18 2015 Cross-referenced by PHPXref 0.7.1