[wpkg-users] Trouble moving a PC to a different profile...
Marco Gaiarin
gaio at sv.lnf.it
Tue Jun 16 11:26:41 CEST 2009
I'm triying to understood what happen (WPG 1.0.4).
A pc in profile 'default' moved to profile 'diretta' for some days,
then moved again to profile 'default'.
This PC try again and again everytime boots to 'install-before-remove'
the packages that was in 'diretta' and not in 'default'.
VLC example:
1) WPKG find in wpkg.xml that VLC was installed, and mark for remove
(right).
2009-06-12 10:04:26, DEBUG : Found installed package 'Video LAN Client' (vlc).
2009-06-12 10:04:26, DEBUG : Marking package 'Video LAN Client' (vlc) for remove
2) WPKG do an 'install-before-remove of the package:
2009-06-12 10:05:08, DEBUG : Going to install package 'Video LAN Client' (vlc), Revision 99001, (execute flag is '', notify flag is 'true').
2009-06-12 10:05:08, DEBUG : Package 'Video LAN Client' (vlc): Not yet processed during this session.
2009-06-12 10:05:08, DEBUG : Checking existence of package: Video LAN Client
2009-06-12 10:05:08, DEBUG : Uninstall entry for VLC media player 0.9.9 missing: test failed
2009-06-12 10:05:08, DEBUG : Package 'Video LAN Client' (vlc): Installed but checks failed. Re-Installing.
2009-06-12 10:05:08, INFO : Installing dependencies of 'Video LAN Client' (vlc).
2009-06-12 10:05:08, INFO : Installing 'Video LAN Client' (vlc)...
2009-06-12 10:05:08, DEBUG : Reading variables from package
2009-06-12 10:05:08, DEBUG : Reading variables from package Video LAN Client
2009-06-12 10:05:08, DEBUG : Stored 0 variables from package
2009-06-12 10:05:08, DEBUG : Reading variables from profile[s]
2009-06-12 10:05:08, DEBUG : Getting profiles which apply to this node.
2009-06-12 10:05:08, DEBUG : 2 profiles apply to this host.
2009-06-12 10:05:08, DEBUG : Reading variables from profile base
2009-06-12 10:05:08, DEBUG : Reading variables from profile default
2009-06-12 10:05:08, DEBUG : Reading variables from host .+
2009-06-12 10:05:08, DEBUG : Install type: install
2009-06-12 10:05:08, DEBUG : Fetched 1 install command(s).
2009-06-12 10:05:08, DEBUG : Executing command : "%SOFTWARE%\WPKG\vlc-0.9.9-win32.exe" /S
2009-06-12 10:05:46, DEBUG : Command in installation of Video LAN Client returned exit code [0]. Success.
2009-06-12 10:05:46, DEBUG : Checking existence of package: Video LAN Client
2009-06-12 10:05:46, DEBUG : Uninstall entry for VLC media player 0.9.9 was found: test successful
2009-06-12 10:05:46, DEBUG : Removing currently existing settings node first: 'Video LAN Client' (vlc), Revision 99001
2009-06-12 10:05:46, DEBUG : Adding settings node: 'Video LAN Client' (vlc), Revision 99001
2009-06-12 10:05:46, INFO : Processing (install) of Video LAN Client successful.
2009-06-12 10:05:46, DEBUG : Restoring previous environment.
3) WPKG remove the package, command exit successfully but the
subsequent check of uninstall entry fail:
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.
My VLC recipe is:
<package
id="vlc"
name="Video LAN Client"
revision="99001"
reboot="false"
priority="50">
<check type="uninstall" condition="exists" path="VLC media player 0.9.9" />
<install cmd='"%SOFTWARE%\WPKG\vlc-0.9.9-win32.exe" /S' />
<upgrade cmd='cmd /c if exist "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" "%ProgramFiles%\VideoLAN\VLC\uninstall.exe" /S _?=%ProgramFiles%\VideoLAN\VLC' />
<upgrade cmd='"%SOFTWARE%\WPKG\vlc-0.9.9-win32.exe" /S' />
<remove cmd='"%ProgramFiles%\VideoLAN\VLC\uninstall.exe" /S' />
</package>
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?
Thanks.
--
dott. Marco Gaiarin GNUPG Key ID: 240A3D66
Associazione ``La Nostra Famiglia'' http://www.sv.lnf.it/
Polo FVG - Via della Bontà, 7 - 33078 - San Vito al Tagliamento (PN)
marco.gaiarin(at)sv.lnf.it tel +39-0434-842711 fax +39-0434-842797
Dona il 5 PER MILLE a LA NOSTRA FAMIGLIA!
http://www.lanostrafamiglia.it/chi_siamo/5xmille.php
(cf 00307430132, categoria ONLUS oppure RICERCA SANITARIA)
More information about the wpkg-users
mailing list