[wpkg-users] Troubles on custom command includes?

Marco Gaiarin gaio at sv.lnf.it
Thu Sep 25 17:44:59 CEST 2014


I'm doing a recipe for TeamViewer 'host' mode, and the recipe have:

        <stop cmd='net stop TeamViewer9' >
                <exit code='2' />
        </stop>

        <install include='stop' />
        <install cmd='"%SOFTWARE%\WPKG\TeamViewer_Host_Setup-9.0.32494.exe" /S' />
        <!-- L'installer tende ad uscire prima di aver finito... aspetto 15 secondi. -->
        <install cmd='%COMSPEC% /c ping -n 15 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' />

but the stop comand does not get executed:

 2014-09-25 17:37:56, DEBUG   : WPKG 1.3.1 starting...
 2014-09-25 17:37:56, DEBUG   : Reboot-Cmd is standard.
 2014-09-25 17:37:56, DEBUG   : Log level is 255
 [...]
 2014-09-25 17:38:01, INFO    : Package 'TeamViewer Host' (teamviewer-host): Not installed (checks failed). Preparing installation.
 2014-09-25 17:38:01, DEBUG   : Installation of references (dependencies) for 'TeamViewer Host' (teamviewer-host) successfully finished.
 2014-09-25 17:38:01, INFO    : Installing 'TeamViewer Host' (teamviewer-host)...
 2014-09-25 17:38:01, DEBUG   : Reading variables from package 'TeamViewer Host'.
 2014-09-25 17:38:01, DEBUG   : Reading variables from profile[s]
 2014-09-25 17:38:01, DEBUG   : Reading variables from hosts[s]
 2014-09-25 17:38:01, DEBUG   : Install type: install
 2014-09-25 17:38:01, DEBUG   : Found inclusion for command type stop.
 2014-09-25 17:38:01, DEBUG   : Found inclusion for command type stop.
 2014-09-25 17:38:01, DEBUG   : Fetched 4 install command(s).
 2014-09-25 17:38:01, DEBUG   : Found language definition node for language ID 410
 2014-09-25 17:38:01, DEBUG   : Executing command: '%SystemRoot%\System32\msg.exe * /TIME:10 "L'utilità di installazione automatica del software sta aggiornando il sistema. Verifica la marcatura temporale di questa segnalazione per capire se c'è qualche problema. Se tutto è a posto, salva e chiudi tutte le applicazioni aperte, perchè potrebbe essere necessario un riavvio. Se necessario, il sistema verrà infatti riavviato senza alcun preavviso. Grazie."' ('C:\windows\System32\msg.exe * /TIME:10 "L'utilità di installazione automatica del software sta aggiornando il sistema. Verifica la marcatura temporale di questa segnalazione per capire se c'è qualche problema. Se tutto è a posto, salva e chiudi tutte le applicazioni aperte, perchè potrebbe essere necessario un riavvio. Se necessario, il sistema verrà infatti riavviato senza alcun preavviso. Grazie."').
 2014-09-25 17:38:01, 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-25 17:38:13, DEBUG   : Command in installation of TeamViewer Host returned exit code [0]. Success.
 2014-09-25 17:38:13, DEBUG   : Executing command: '%COMSPEC% /c ping -n 15 127.0.0.1 1>NUL 2>NUL' ('C:\windows\system32\cmd.exe /c ping -n 15 127.0.0.1 1>NUL 2>NUL').
 2014-09-25 17:38:28, DEBUG   : Command in installation of TeamViewer Host returned exit code [0]. Success.
 2014-09-25 17:38:28, DEBUG   : Executing command: 'regedit /s "%WPKGROOT%\packages\teamviewer-host-%LOCALNET%.reg"' ('regedit /s "\\FILE\wpkg\packages\teamviewer-host-sv.reg"').
 2014-09-25 17:38:28, DEBUG   : Command in installation of TeamViewer Host returned exit code [0]. Success.
 2014-09-25 17:38:28, DEBUG   : Executing command: 'net start TeamViewer9'.
 2014-09-25 17:38:28, ERROR   : Could not process (install) package 'TeamViewer Host' (teamviewer-host):|Exit code returned non-successful value (2) on command 'net start TeamViewer9'.

Note the two 'Found inclusion for command type stop.', but actually no
included command get executed.


What i'm missing?! 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