Ok, I missed the point sorry : BaseX being a Java executable, we have to wrap it before registring it as a service with sc or installutil. Wrapping Java for windows servicing is quite easy, I did it some years ago with JSW. I had a look to YAJSW : it seems to be a better choice than JSW now. Flexible enough licensing, and most importantly support for windows 64 bits. 
@Christian : Installing a service with YAJSW seems really straightforward (see : http://yajsw.sourceforge.net/). Is it worth writing a Wiki page ?


2014/1/22 jean-marc Mercier <jeanmarc.mercier@gmail.com>
Hi,

Maybe I don't understand your needs, but there exists native tools to install services with windows. For instance the batch command sc, or the visual studio tool installutil.
Is there any incentive for not using them ?


2014/1/22 Christian Grün <christian.gruen@gmail.com>
Hi Sam, hi Huib,

if one of you succeeds installing BaseX as service, would you be
willing to contribute a little HowTo article for our Wiki?

Christian


On Wed, Jan 22, 2014 at 2:19 PM, Huib Verweij
<Huib.Verweij@koop.overheid.nl> wrote:
> Hi Sam,
>
> I don't know about any special tricks BaseX has up it's sleeve, but I have
> had succes running Solr, BigData and other Java server apps as a Windows
> service using YAJSW. It's fairly easy to accomplish. There are other
> applications that can run Java apps as a Windows Service for you as well.
>
> Op 22 jan. 2014, om 14:12 heeft Sam Eklund <sam.eklund@gluebox.se> het
> volgende geschreven:
>
> Is there a possibility to install BaseX server as a service under Windows?
>
> The –S switch to start BaseX in the background is nice, however a proper
> windows service would be even better!
>
> Anyone that has accomplished this?
>
>
>
> Hartelijke groet,
>
> Huib Verweij
>
>
>
>
> _______________________________________________
> BaseX-Talk mailing list
> BaseX-Talk@mailman.uni-konstanz.de
> https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk
>
_______________________________________________
BaseX-Talk mailing list
BaseX-Talk@mailman.uni-konstanz.de
https://mailman.uni-konstanz.de/mailman/listinfo/basex-talk