[wpkg-users] Question re upgrades

Paul McGrath J.P.McGrath at leeds.ac.uk
Sat Mar 9 09:35:39 CET 2013


Antony,

to perform an upgrade you change the value of 'revision'.  You will see that some (properly constructed) packages use a variable called version so revision='version' and version='1.2.3'.
If you increment the version to = '1.2.4' then the 'upgrade' command is executed.  Only the 'upgrade' lines are executed.
Upgrade commands can include 'install' or 'remove'.  If there is no patch but a new .exe or .msi then you will want <upgrade include='install' /> and you update the line for 'install' because you will want new installs to have the latest version as well as the existing installations (which will be upgraded).  You can also have <upgrade include='remove' /> because for some software previous versions must be removed e.g. skype.
DO NOT change the 'package id' because then the computer will think this does not exist and will uninstall from all computers if there is a 'remove' line.

Look at some existing packages like skype or java to work out the logic.
Paul

________________________________________
From: wpkg-users-bounces at lists.wpkg.org [wpkg-users-bounces at lists.wpkg.org] On Behalf Of Antony Awaida [antony at bizappcenter.com]
Sent: 08 March 2013 23:39
To: wpkg-users at lists.wpkg.org
Subject: [wpkg-users] Question re upgrades

Hi there:

If a package is already installed on a client and a new version of the
package comes into scope, what happens next? Does the install command
of the new package get executed? When does the upgrade command of the
existing package get executed?

Also, it would appear that WPKG uses package-id to identify a new
version of an existing package. What if the upgrade codes of the
packages are different? Does that make any difference?

Thanks,
Antony
-------------------------------------------------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
_______________________________________________
wpkg-users mailing list
wpkg-users at lists.wpkg.org
http://lists.wpkg.org/mailman/listinfo/wpkg-users



More information about the wpkg-users mailing list