[wpkg-users] Troubles on custom command includes?

Rainer Meier r.meier at wpkg.org
Thu Sep 25 17:52:45 CEST 2014


Hi Marco,
On 25.09.2014 17:44, Marco Gaiarin wrote:
>
> 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' />
[...]
> Note the two 'Found inclusion for command type stop.', but actually no
> included command get executed.
>
>
> What i'm missing?! Thanks.

The syntax is wrong. There is no node type "<stop>" and WPKG ignores it. If you 
want to classify commands and include them, please use "<command>" node:

<commands>

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

   <command type="install" include='stop' />
   <command type="install" 
cmd='"%SOFTWARE%\WPKG\TeamViewer_Host_Setup-9.0.32494.exe" ' />
   <command type="install" cmd='%COMSPEC% /c ping -n 15 127.0.0.1 1>NUL 2>NUL' />
   <command type="install" include='stop' />
   <command type="install" cmd='regedit /s 
"%WPKGROOT%\packages\teamviewer-host-%LOCALNET%.reg"' />
   <command type="install" cmd='net start TeamViewer9' />

</commands>


br,
Rainer



More information about the wpkg-users mailing list