[wpkg-users] WPKG uninstalls unmanaged software?

Falko Trojahn nospam_ft at smi-softmark.de
Wed Jun 8 11:02:28 CEST 2011


Hello Kevin,

Am 06.06.2011 13:31, Falko Trojahn wrote:
>> McAfee is part of my internal profile, but is not part of the
>> preinstall profile since not all computers that come in have a license
>> for it.
>>
>> I found that WPKG did in fact remove McAfee even though it hadn't
>> installed it.
>>
...
>
> Please send
>
> - full debug log of this process or, if you don't find it (but - if it
> is reproducible - you should ...), you have perhaps some eventlog entries.
>
> - xmls (at least of the profiles and the McAfee package)
>
> - you don't use Wpkg Client or similar on this computer, do you?
>


thanx for sending your logs in private.

 > Included is the requested information. The log file ends
 > abruptly because the antivirus removal reboots the computer.
 >
 > No, this computer has definitely never seen WPKG.
 > WPKG client is also not installed.
 >
 > I made a mistake in my problem report. Originally,
 > I stated that McAfee was included
 > in my profiles "workstation" and "server". That is actually
 > not the case.
 > I have a package.xml file McAfee, but it is actually
 > currently not used in any profile.

Well, just had a look at the version of wpkg.js you are using: 1.1.1
At http://wpkg.org/Download you find stable version 1.1.2 from Sep. 2009 
- why do you use such an old Wpkg version?

Please have a look at the revison log
http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/stable/1.1/wpkg.js?view=log#rev86
Read newer changeset descriptions using "page up" - perhaps you find an 
entry regarding your problem - we are at 1.1.3-RC6 in changeset 124.

So please, use at least version 1.1.2 (stable). I suggest using latest 
svn version from
http://wpkg.svn.sourceforge.net/viewvc/wpkg/wpkg/stable/1.1/wpkg.js?revision=124&view=markup
(just click "download" then "save as" in your Browser).

Before production use, please check in a test environment, that
the recent wpkg.js does really work as expected with your actual 
package/profile/hosts xmls. Since 1.1.1, a lot of things have changed - 
mostly preserving compatibility ...

Just to complete the analysis from your log:

...
2011-06-06 00:17:49, DEBUG   : WPKG 1.1.1 starting...
...
2011-06-06 00:18:01, DEBUG   : Checking existence of package: McAfee ASAP
2011-06-06 00:18:01, DEBUG   : Reading variables from package McAfee ASAP
...
2011-06-06 00:18:01, DEBUG   : Uninstall entry for McAfee Virus and 
Spyware Protection Service was found: test successful
2011-06-06 00:18:01, DEBUG   : Adding settings node: 'McAfee ASAP' 
(mcafeeasap), Revision 4
...
2011-06-06 00:18:06, DEBUG   : Found installed package 'McAfee ASAP' 
(mcafeeasap).
2011-06-06 00:18:06, DEBUG   : Marking package 'McAfee ASAP' 
(mcafeeasap) for remove
...
2011-06-06 00:18:08, DEBUG   : Removing package 'mcafeeasap'.
2011-06-06 00:18:08, DEBUG   : Package 'McAfee ASAP' (mcafeeasap): Not 
yet processed during this session.
2011-06-06 00:18:08, DEBUG   : Removal of depending packages for 'McAfee 
ASAP' (mcafeeasap) successfully finished.
2011-06-06 00:18:08, INFO    : Removing McAfee ASAP (mcafeeasap)...


Wpkg detects your McAfee package as installed and removes it, since it
is not assigned to your host.

It would be nice if you could really reproduce the same situation and 
use wpkg.js from svn.

But I think, in this situation, Wpkg does the things not so bad:

* it detects a package which is in your package base as "installed"

* this package is not assigned to your host, so it is removed


I've just made a quick test to reproduce your situation:

- 7zip was installed using Wpkg

- removed the 7zip package from windows\system32\wpkg.xml manually

- removed the 7zip package entry from the profile of my test station

--> we have the same situation, as if 7zip would not have been installed 
using Wpkg

- started Wpkg client -> nothing was changed.

- assigned 7zip package entry again to the profile

- started Wpkg Client -> wpkg just detected 7zip as already installed


I think you could reproduce your McAfee problem the same way.

Best regards
Falko



More information about the wpkg-users mailing list