[wpkg-users] remove does not work of type <check type="file" condition="versionequalto" path="%programfiles%\pidgin\pidgin.exe" value="2.5.3.0" />

Johannes.Brix at evidian.com Johannes.Brix at evidian.com
Fri Jan 2 17:21:19 CET 2009


Hello,

I don't know if this is a bug of wpkg.js or of my config, 
but removing this package doesn't remove it from wpkg.xml.

<package
   id="pidgin"
   name="Pidgin"
   revision="2530"
   reboot="false"
   priority="1">
   <check type="file" condition="versionequalto" 
path="%programfiles%\pidgin\pidgin.exe" value="2.5.3.0" />
   <install cmd='cmd /C taskkill /F /T /IM pidgin.exe' >
      <exit code='1' />
      <exit code='128' /> 
   </install> 
   <install cmd='\\evd-ads2\wpkg\Pidgin\pidgin-2.5.3.exe /L=1031 /S /NOUI' 
/>
   <install cmd='\\evd-ads2\wpkg\Pidgin\pidgin-install.cmd' />
   <upgrade cmd='cmd /C taskkill /F /T /IM pidgin.exe' >
      <exit code='1' />
      <exit code='128' /> 
   </upgrade> 
   <upgrade cmd='\\evd-ads2\wpkg\Pidgin\pidgin-2.5.3.exe /L=1031 /S /NOUI' 
/>
   <upgrade cmd='\\evd-ads2\wpkg\Pidgin\pidgin-install.cmd' />
   <remove cmd='\\evd-ads2\wpkg\Pidgin\pidgin-remove.cmd' >
      <exit code='0' />
   </remove>
</package>
---------------------------------------------------------
Message during execution:

Installing dependencies of 'Pidgin' (pidgin).
Installing 'Pidgin' (pidgin)...
Command 'cmd /C taskkill /F /T /IM pidgin.exe' returned  exit code [128]. 
This exit code is not an error.
Command in installation of Pidgin returned exit code [128]. This exit code 
indicates success.
Processing (install) of Pidgin successful.
Removing Pidgin (pidgin)...
Command '\\evd-ads2\wpkg\Pidgin\pidgin-remove.cmd' returned  exit code 
[0]. This exit code is not an error.
Command in removal of Pidgin returned  exit code [0]. This exit code 
indicates success.
Could not process (remove) Pidgin.
Package still installed.
---------------------------------------------------------
>From the log:

2009-01-02 16:43:25, DEBUG  : Executing command : cmd /C taskkill /F /T 
/IM pidgin.exe
2009-01-02 16:43:27, INFO   : Command 'cmd /C taskkill /F /T /IM 
pidgin.exe' returned  exit code [128]. This exit code is not an error.
2009-01-02 16:43:27, INFO   : Command in installation of Pidgin returned 
exit code [128]. This exit code indicates success.
2009-01-02 16:43:27, DEBUG  : Executing command : 
\\evd-ads2\wpkg\Pidgin\pidgin-2.5.3.exe /L=1031 /S /NOUI
2009-01-02 16:43:50, DEBUG  : Command in installation of Pidgin returned 
exit code [0]. Success.
2009-01-02 16:43:50, DEBUG  : Executing command : 
\\evd-ads2\wpkg\Pidgin\pidgin-install.cmd
2009-01-02 16:43:53, DEBUG  : Command in installation of Pidgin returned 
exit code [0]. Success.
2009-01-02 16:43:53, DEBUG  : Checking existence of package: Pidgin
2009-01-02 16:43:53, DEBUG  : Finding version of 
C:\Programme\pidgin\pidgin.exe|
2009-01-02 16:43:53, DEBUG  : Obtained version "2.5.3.0".
2009-01-02 16:43:53, DEBUG  : Leaving getFileVersion with version 2.5.3.0
2009-01-02 16:43:53, DEBUG  : Checking file version 2.5.3.0 is 
versionequalto (than) 2.5.3.0 - got result 0
2009-01-02 16:43:53, DEBUG  : Checking version of 
'C:\Programme\pidgin\pidgin.exe' : Is 2.5.3.0 = 2.5.3.0 ? true
2009-01-02 16:43:53, DEBUG  : Removing currently existing settings node 
first: 'Pidgin' (pidgin), Revision 2530
2009-01-02 16:43:53, DEBUG  : Adding settings node: 'Pidgin' (pidgin), 
Revision 2530
2009-01-02 16:43:53, INFO   : Processing (install) of Pidgin successful.
2009-01-02 16:43:53, DEBUG  : Restoring previous environment.
2009-01-02 16:43:53, INFO   : Removing Pidgin (pidgin)...
2009-01-02 16:43:53, DEBUG  : Executing command: 
\\evd-ads2\wpkg\Pidgin\pidgin-remove.cmd
2009-01-02 16:43:56, DEBUG  : Command returned result: 0
2009-01-02 16:43:56, INFO   : Command 
'\\evd-ads2\wpkg\Pidgin\pidgin-remove.cmd' returned  exit code [0]. This 
exit code is not an error.
2009-01-02 16:43:56, INFO   : Command in removal of Pidgin returned  exit 
code [0]. This exit code indicates success.
2009-01-02 16:43:56, DEBUG  : Checking existence of package: Pidgin
2009-01-02 16:43:56, DEBUG  : Finding version of 
C:\Programme\pidgin\pidgin.exe|
2009-01-02 16:43:56, DEBUG  : Obtained version "2.5.3.0".
2009-01-02 16:43:56, DEBUG  : Leaving getFileVersion with version 2.5.3.0
2009-01-02 16:43:56, DEBUG  : Checking file version 2.5.3.0 is 
versionequalto (than) 2.5.3.0 - got result 0
2009-01-02 16:43:56, DEBUG  : Checking version of 
'C:\Programme\pidgin\pidgin.exe' : Is 2.5.3.0 = 2.5.3.0 ? true
2009-01-02 16:43:56, DEBUG  : Checking pidgin zombie state.
2009-01-02 16:43:56, ERROR  : Could not process (remove) Pidgin.|Package 
still installed.
---------------------------------------------------------

Pidgin has been properly removed, but WKPG is not able to remove it from 
the list. 
>From the log, I see that wpkg.js checks the file version of pidgin.exe,
but this file doesn't exist any more.
It seems that it is checking some cached data.
Perhaps, there is refresh needed somewhere.

Thank you for your help and kind regards,

Johannes

---------------------------------------------------------------------------
Johannes Brix, CISSP, CISA               Phone:    ++49 (0)2 20 33 05 15 
32
Senior Support Engineer                  Mobile:   ++49 (0)  17 35 88 76 
48
Evidian Customer Care Köln               Web: support.evidian.com
 www.evidian.com
---------------------------------------------------------------------------




More information about the wpkg-users mailing list