winsw / winsw

A wrapper executable that can run any executable as a Windows service, in a permissive license.
MIT License
11.88k stars 1.56k forks source link

SystemTray #289

Open airtonct opened 6 years ago

airtonct commented 6 years ago

Good Morning,

If I use an application that uses SysTray it does not appear ... how to solve it?

Best regards

oleg-nenashev commented 6 years ago

Hi, the service would need to run in the interactive mode at least: https://github.com/kohsuke/winsw/blob/master/doc/xmlConfigFile.md#interactive

airtonct commented 6 years ago

Thanks for the answer, my xml is like this: `

I2tecIntegracao
<name>I2tecIntegracao</name>
<description>Serviço de integração entre modulos da aplicação I2tec.</description>
<executable>java</executable>
<arguments>-Xmx256m -jar "integracao.jar"</arguments>
<logmode>rotate</logmode>
<interactive/>

` but the problem continues. =(

airtonct commented 6 years ago

I am using an implementation with Springboot, without creating the service with winsw the SysTray works, however when I use winsw the SysTray does not appear

oleg-nenashev commented 6 years ago

I have never created Windows services with tray apps, so I have no immediate answer. Discussions like https://stackoverflow.com/questions/2652254/how-can-i-display-a-system-tray-icon-for-c-sharp-window-service could be a good starting point

airtonct commented 6 years ago

I am using an implementation with Springboot, without creating the service with winsw the SysTray works, however when I use winsw the SysTray does not appear

jeacott1 commented 5 years ago

@airtonct what OS are you running?

nxtn commented 4 years ago

Duplicate of #230

CampeloMarcos commented 4 years ago

Hi, I am experiencing the same problem. It appears that the window isolates the scope at 64 bits or 32 bits. It seems to me that SystemTray uses both System32 and SysWOW64.

I always get error 0x80004005

In my case I have two applications, APP1 which is started by winsw and APP2 (SystemTray) which is started from within APP1