[wpkg-users] Question re upgrades

Paul McGrath J.P.McGrath at leeds.ac.uk
Thu Mar 21 16:47:27 CET 2013


Hi Antony,
  See my Evernote example for remove

    <remove cmd='MsiExec.exe /X{0BE73D3C-B5AF-11E1-933A-984BE15F174E} /qn '>     <exit code='any' />     </remove>  <!--4.5.7.7146-->
	<remove cmd='MsiExec.exe /x{A53130A2-1EB8-11E2-BCE8-984BE15F174E} /qn' >     <exit code='any' />     </remove>  <!--4.5.9.7465-->   
	<remove cmd='MsiExec.exe /x{A23AADDA-3DBF-11E2-A6F2-984BE15F174E} /qn' >     <exit code='any' />     </remove>  <!--4.6.0.7670-->     
	<remove cmd='MsiExec.exe /x{9D8BAA74-5B7D-11E2-8273-984BE15F174E} /qn' >     <exit code='any' />     </remove>  <!--4.6.1.7860-->     
	<remove cmd='MsiExec.exe /x{DCA963D4-6AA2-11E2-80AA-984BE15F174E} /qn' >     <exit code='any' />     </remove>  <!--4.6.2.7927-->     
	<remove cmd='MsiExec.exe /x{4C8BBCC8-8363-11E2-A3F4-984BE15F174E} /qn' >     <exit code='any' />     </remove>  <!--4.6.3.8096-->     
	<remove cmd='MsiExec.exe /x{DDAFC46A-90E2-11E2-B700-984BE15F174E} /qn' >     <exit code='any' />     </remove>  <!--4.6.4.8136-->   

It error traps if it doesn't exist so that it doesn't fail.  You will have to do a lot of research if the uninstall code is different per version like it is for Evernote.  Other apps use a single code that never changes like Skype.
Paul

-----Original Message-----
From: Antony Awaida [mailto:antony at bizappcenter.com] 
Sent: 21 March 2013 15:44
To: Paul McGrath
Cc: wpkg-users at lists.wpkg.org
Subject: Re: [wpkg-users] Question re upgrades

Paul:

Thanks. your answer is very helpful. One follow up question:

For packages like Skype that require a manual removal of the previous version (and we have the <upgrade include='remove' /> in the package.xml), it seems that the remove command that is executed is the one from the current version. Is there a way to include the remove of the previous version of the package?

Thanks,
Antony

On Sat, Mar 9, 2013 at 12:35 AM, Paul McGrath <J.P.McGrath at leeds.ac.uk> wrote:
> 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