Difference between revisions of "Package dependencies"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
m
Line 3: Line 3:
 
The format is very simple, and similar to the one used for [[profile dependencies]]
 
The format is very simple, and similar to the one used for [[profile dependencies]]
  
The example used in [[Packages.xml]] has been modified to make it dependant on another package called  "other-package":
+
The example used in [[Packages.xml]] has been modified to make it dependent on another package called  "other-package":
 
<pre>
 
<pre>
<?xml version="1.0" encoding="UTF-8"?>
 
 
<packages>
 
<packages>
<package id="setadminpassword"
+
<package
          name="Set admin password"
+
id="wpkg1"
          revision="1"
+
name="Windows Packager sample 1"
          priority="999"
+
revision="1"
          reboot="false"
+
reboot="false"
          execute="once"
+
priority="0"
          depends package-id="other-package">
+
depends="other-package">
      <install cmd='cmd /c net user administrator password' />
+
...
</package>
+
</packages>
+
 
</pre>
 
</pre>
  
 
Note that "package dependencies" are now defined differently than in 0.9.6 and 0.9.7; this previous format is not supported.
 
Note that "package dependencies" are now defined differently than in 0.9.6 and 0.9.7; this previous format is not supported.
 
  
 
A description from wpkg-users mailing list by Dr. Frank Lee:
 
A description from wpkg-users mailing list by Dr. Frank Lee:

Revision as of 15:12, 20 May 2009

Packages can depend on each other (i.e., you have to install Firefox before installing some Firefox plugin etc.).

The format is very simple, and similar to the one used for profile dependencies

The example used in Packages.xml has been modified to make it dependent on another package called "other-package":

<packages>
<package
id="wpkg1"
name="Windows Packager sample 1"
revision="1"
reboot="false"
priority="0"
depends="other-package">
...

Note that "package dependencies" are now defined differently than in 0.9.6 and 0.9.7; this previous format is not supported.

A description from wpkg-users mailing list by Dr. Frank Lee:

The 'dependancy' just adds the packages to the list, which is then 
installed in order of priority. If 'foo' depends on 'bar' being present 
for 'foo' to install properly, 'bar' ought to have a higher priority than 
'foo'.

In the example above, B should be set at a higher priority than A for 
success. (I usually have 900-999 as the priority for OS patches, 700-799 
for antivirus etc, 500-599 for 'mission critical' applications, 300-399 
for useful things and 100-199 for end-user things like office. Even 
numbered centuries are 'reserved for future expansion'...)

See also "Priority vs Dependancy -- Order of Installation" thread:
http://lists.wpkg.org/pipermail/wpkg-users/2007-November/thread.html#2000