Hi Robert, First, the option to execute pharo headless is “—headless” (two “-“, not just one). Maybe the help is bad :) But that will not solve your problem at all, since headless mode is fake and in case of windows it will open anyway a window (in the systray if you are lucky…).
However, I managed (some years ago, so do not ask for details ;) to run a pharo app as a service using this program: http://rozanski.org.uk/services <http://rozanski.org.uk/services> here is an article that explains how to use it: http://www.howtogeek.com/50786/using-srvstart-to-run-any-application-as-a-windows-service/ <http://www.howtogeek.com/50786/using-srvstart-to-run-any-application-as-a-windows-service/> (I do not remember how I did it and it would be nice if you can share your experience, so we can have documentation somewhere :P) Also I googled a bit and according to this: http://stackoverflow.com/questions/3582108/create-windows-service-from-executable <http://stackoverflow.com/questions/3582108/create-windows-service-from-executable>, looks like the “microsoft” way of doing it is using a command “sc”. I suppose that command will not work if your program is not prepared for being a service, but you can give it a try (first approach *will* work, anyway :P) Hope this works… please keep us informed. Esteban > On 01 Feb 2016, at 09:04, Robert Kuszinger <kuszin...@giscom.hu> wrote: > > Hello! > > No luck by far. Information on forums is not enopugh for me (this is > definitely my fault, my limited background in the squek/pharo VM world). > > I've checked different setups. Even putting CogVM into operation with Pharo > is not evident for me. > > My trivial test was the -headless option which is listed with windows Pharo > but it won't start at all. No process is created. The XULRunner example > mentioned is "out of my reach" (and the demo was on Linux, also subsequent > comments on the forums stated that Mac/Win versions are not headless.). > > Who could check if it works at all? Actually I've invested a week in this > small Seaside app, performs beautifully but now it seems that It simply > cannot be installed on Windows? How do people use Seaside/Pharo on Windows. > Is there someone using it at all? :) > No problem if I'm the first one, anyway. > My goal is to start it automatically in the background (service is not > necessary, again, it is enought to be started). > Is it possible that Pharo starts with a widnow (splash) but noone sees it? > > Summarizing: > - I'm looking for a solution to start a headless Seaside app on Windows > possibly with Pharo image. > > thanks for any recommendations. > > > > > Robert Kuszinger <kuszin...@giscom.hu <mailto:kuszin...@giscom.hu>> ezt írta > (időpont: 2016. jan. 31., V, 8:27): > Torsten, thanks. > > Ok, I'll test it. Idon't mind I need SRVANY or other solution on win to start > it. It is not necessary to provide a well formed service. > I'm stopped at the headless running at all. I'Ll check the headless CogVM. > Once it runs headless I'll be able to launch it at machine start. > > I'll share my results here. > > best regards > Robert > > > Torsten Bergmann <asta...@gmx.de <mailto:asta...@gmx.de>> ezt írta (időpont: > 2016. jan. 31., V, 1:31): > Running as Windows Service was possible back in Squeak VM days where > Andreas Raab implemented registration into SCM (Service Control Manager). > Code should be in Pharo VM too. > > See also http://forum.world.st/headless-CogVM-on-Windows-td4648336.html > <http://forum.world.st/headless-CogVM-on-Windows-td4648336.html> > > Possibly the "-service" may be broken/may not be recognized in Pharo Win VM > anymore, havent checked. > > Bye > T. >