[wpkg-users] Troubles on custom command includes?
Marco Gaiarin
gaio at sv.lnf.it
Fri Sep 26 14:20:42 CEST 2014
Mandi! Rainer Meier
In chel di` si favelave...
> I would have to check the code. But due to the fact that <install />
> does not have the include attribute I don't think it's implemented.
> It might however work as the same code is executed for commands.
It's worth a try. and a recipe like:
<commands>
<command type="stop" cmd='net stop TeamViewer9' >
<exit code='2' />
</command>
</commands>
<install include='stop' />
<install cmd='"%SOFTWARE%\WPKG\TeamViewer_Host_Setup-9.0.32494.exe" /S' />
<install cmd='%COMSPEC% /c ping -n 5 127.0.0.1 1>NUL 2>NUL' />
<install include='stop' />
<install cmd='regedit /s "%WPKGROOT%\packages\teamviewer-host-%LOCALNET%.reg"' />
<install cmd='net start TeamViewer9' />
works as expected:
2014-09-26 14:05:00, INFO : Installing 'TeamViewer Host' (teamviewer-host)...
2014-09-26 14:05:00, DEBUG : Reading variables from package 'TeamViewer Host'.
2014-09-26 14:05:00, DEBUG : Reading variables from profile[s]
2014-09-26 14:05:00, DEBUG : Reading variables from hosts[s]
2014-09-26 14:05:00, DEBUG : Install type: install
2014-09-26 14:05:00, DEBUG : Found inclusion for command type stop.
2014-09-26 14:05:00, DEBUG : Found inclusion for command type stop.
2014-09-26 14:05:00, DEBUG : Fetched 6 install command(s).
2014-09-26 14:05:00, DEBUG : Found language definition node for language ID 410
2014-09-26 14:05:00, DEBUG : Executing command: 'net stop TeamViewer9'.
2014-09-26 14:05:00, INFO : Command 'net stop TeamViewer9' returned exit code [2]. This exit code indicates success.
2014-09-26 14:05:00, INFO : Command in installation of TeamViewer Host returned exit code [2]. This exit code indicates success.
2014-09-26 14:05:00, DEBUG : Executing command: '"%SOFTWARE%\WPKG\TeamViewer_Host_Setup-9.0.32494.exe" /S' ('"\\MEDIA\Software\WPKG\TeamViewer_Host_Setup-9.0.32494.exe" /S').
2014-09-26 14:05:12, DEBUG : Command in installation of TeamViewer Host returned exit code [0]. Success.
2014-09-26 14:05:12, DEBUG : Executing command: '%COMSPEC% /c ping -n 5 127.0.0.1 1>NUL 2>NUL' ('C:\windows\system32\cmd.exe /c ping -n 5 127.0.0.1 1>NUL 2>NUL').
2014-09-26 14:05:16, DEBUG : Command in installation of TeamViewer Host returned exit code [0]. Success.
2014-09-26 14:05:16, DEBUG : Executing command: 'net stop TeamViewer9'.
2014-09-26 14:05:27, DEBUG : Command in installation of TeamViewer Host returned exit code [0]. Success.
2014-09-26 14:05:27, DEBUG : Executing command: 'regedit /s "%WPKGROOT%\packages\teamviewer-host-%LOCALNET%.reg"' ('regedit /s "\\FILE\wpkg\packages\teamviewer-host-sv.reg"').
2014-09-26 14:05:28, DEBUG : Command in installation of TeamViewer Host returned exit code [0]. Success.
2014-09-26 14:05:28, DEBUG : Executing command: 'net start TeamViewer9'.
2014-09-26 14:05:30, DEBUG : Command in installation of TeamViewer Host returned exit code [0]. Success.
2014-09-26 14:05:30, DEBUG : Checking existence of package: TeamViewer Host
2014-09-26 14:05:30, DEBUG : Reading variables from package 'TeamViewer Host'.
2014-09-26 14:05:30, DEBUG : Reading variables from profile[s]
2014-09-26 14:05:30, DEBUG : Reading variables from hosts[s]
2014-09-26 14:05:30, DEBUG : Uninstall entry 'TeamViewer 9 Host' matches string 'TeamViewer 9 Host'.
2014-09-26 14:05:30, DEBUG : Uninstall entry for TeamViewer 9 Host was found: test successful.
> The include attribute was introduced with generic command handling.
> So I recommend to fix it and use commands only. As you have to touch
> the package definition anyway it's perhaps by the time to upgrade to
> new syntax.
Ahem, slowly, i will do. ;-)
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)lanostrafamiglia.it t +39-0434-842711 f +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