Discussion:
[wpkg-users] Getting rid of install before remove
Luca Manganelli
2016-12-20 13:53:16 UTC
Permalink
Hi, is it possible to avoid WPKG install before removing?

I.e.:
1) with WPKG I have installed GIMP on a PC;

2) I remove it manually from Add/remove Programs;

3) I remove the GIMP entry from the PC entry in the hosts.xml;

4) At WPKG synchronization, it re-installs and then removes the same
package.


Is it possible to avoid WPKG to install before remove? It should check
the specified package conditions (<check> node), or not?
---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Rainer Meier
2016-12-20 14:08:39 UTC
Permalink
Hi,
Post by Luca Manganelli
Hi, is it possible to avoid WPKG install before removing?
Yes. Just disable it in config.xml.
<param name='noUpgradeBeforeRemove' value='true' />


Remember: This feature assures that the latest package is installed.
Allowing you to fix up broken uninstall commands in the Package, so WPKG
will upgrade first to the latest version before attempting an uninstall.
If you disable the feature it will simply try to remove the application
using the uninstall commands of the package version located on the
client. If the uninstall fails (wrong uninstall commands or already
uninstalled and exit code does not match expected exit codes...) then
WPKG would on each synchronization re-try to uninstall the package
without success.

So Think twice if you're going to disable it.
As of my understanding also in your case installing the latest package
temporarily and then removing it cleanly would actually be a better
choice as I think your uninstall commands might perhaps fail if the
program was manually removed before.

best regards,
Rainer
---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Luca Manganelli
2016-12-20 15:16:20 UTC
Permalink
Let me explain what I want to do.

1) I have Adobe-Reader-XI and Adobe-Reader-DC packages;

2) The Adobe-Reader-DC is a monster (130 MB package+cumulative update)

3) We have about 100 PC (out of 1300) that are running on a slow and
shared link accross PC (ADSL - maximum trasfer rate 256KB/sec)

4) I'm experimenting the download of the DC package with the Microsoft
BITS (Background Intellingent Transfer Service) that runs during the
computer operativity;

5) So when I replace, for one host, the package Adobe-Reader-XI with the
DC version, I do not want to uninstall immediately the XI version (so I
removed the <remove> command), the DC setup does it automatically (so it
starts when it has all packages in local).
Post by Rainer Meier
Hi,
Post by Luca Manganelli
Hi, is it possible to avoid WPKG install before removing?
Yes. Just disable it in config.xml.
<param name='noUpgradeBeforeRemove' value='true' />
Remember: This feature assures that the latest package is installed.
Allowing you to fix up broken uninstall commands in the Package, so WPKG
will upgrade first to the latest version before attempting an uninstall.
If you disable the feature it will simply try to remove the application
using the uninstall commands of the package version located on the
client. If the uninstall fails (wrong uninstall commands or already
uninstalled and exit code does not match expected exit codes...) then
WPKG would on each synchronization re-try to uninstall the package
without success.
So Think twice if you're going to disable it.
As of my understanding also in your case installing the latest package
temporarily and then removing it cleanly would actually be a better
choice as I think your uninstall commands might perhaps fail if the
program was manually removed before.
best regards,
Rainer
---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Stefan Pendl
2016-12-20 18:55:49 UTC
Permalink
Post by Luca Manganelli
Let me explain what I want to do.
1) I have Adobe-Reader-XI and Adobe-Reader-DC packages;
2) The Adobe-Reader-DC is a monster (130 MB package+cumulative update)
3) We have about 100 PC (out of 1300) that are running on a slow and
shared link accross PC (ADSL - maximum trasfer rate 256KB/sec)
4) I'm experimenting the download of the DC package with the Microsoft
BITS (Background Intellingent Transfer Service) that runs during the
computer operativity;
5) So when I replace, for one host, the package Adobe-Reader-XI with the
DC version, I do not want to uninstall immediately the XI version (so I
removed the <remove> command), the DC setup does it automatically (so it
starts when it has all packages in local).
You could also add the package attribute "precheck-remove" set to
"always", which will skip the remove commands if the checks fail.
The checks are executed before anything is done with the package.
--
*Stefan P.*

Top-posting:
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?
---------------------------------
wpkg-users mailing list archives >> http://lists.wpkg.org/pipermail/wpkg-users/
Loading...