[wpkg-users] Trouble moving a PC to a different profile...

Rainer Meier r.meier at wpkg.org
Tue Jun 16 11:39:15 CEST 2009


Hi Marco,

Let's first have a look at the VLC issue:

>  2009-06-12 10:07:00, INFO   : Removing Video LAN Client (vlc)...
>  2009-06-12 10:07:00, DEBUG  : Executing command: "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" /S
>  2009-06-12 10:07:02, DEBUG  : Command returned result: 0
>  2009-06-12 10:07:02, DEBUG  : Command in removal of Video LAN Client returned exit code [0]. Success.
>  2009-06-12 10:07:02, DEBUG  : Checking existence of package: Video LAN Client
>  2009-06-12 10:07:02, DEBUG  : Uninstall entry for VLC media player 0.9.9 was found: test successful
>  2009-06-12 10:07:02, DEBUG  : Checking vlc zombie state.
>  2009-06-12 10:07:02, ERROR  : Could not process (remove) Video LAN Client.|Package still installed.
> 
> but the software is not installed, or at least after all the wpkg run
> there's no VLC package in uninstall entry.


This is a well-known issue of the VLC installer and also documented on wpkg.org.
The uninstaller forks a process and then terminates the initial uninstall.exe
immediately. Thus leaving the uninstall entry there. As you can see WPKG reports
that VLC is still installed and therefore enters zombie state (installed but not
assigned to host).

In order to prevent this you need a more smart uninstall command. The script
attached can do that for you. Rename it to unattended-uninstall.cmd, fill in the
values in the header of the file (correct paths) as required and then call this
script instead of the uninstall.exe binary. The script will wait for the
uninstall process to finish its job before it terminates and as a result WPKG
will detect that VLC has been uninstalled properly.



> And note that this is only an example, more packages do this, for
> example:
> 
>  gaio at harry:~$ grep "Package still installed" wpkg-carpino.log 
>  2009-06-12 10:06:49, ERROR  : Could not process (remove) Microsoft .NET Framework.|Package still installed.
>  2009-06-12 10:06:54, ERROR  : Could not process (remove) Scratch.|Package still installed.
>  2009-06-12 10:07:00, ERROR  : Could not process (remove) ToolBook Neuron.|Package still installed.
>  2009-06-12 10:07:02, ERROR  : Could not process (remove) Video LAN Client.|Package still installed.
>  2009-06-12 10:07:05, ERROR  : Could not process (remove) Windows Media Player 10.|Package still installed.
> 
> it is only a matter of a badly written recipe? Or i'm missing
> something?


These ones seem to report that uninstall failed. Most probably the checks oyu
defined are still true after uninstall (or you did not specify any appropriate
uninstall command). Make sure the checks will fail after successful uninstall.

br,
Rainer
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: unattended-uninstall.txt
URL: <http://lists.wpkg.org/pipermail/wpkg-users/attachments/20090616/5e24ec36/attachment-0002.txt>


More information about the wpkg-users mailing list