Community Forums
Results 1 to 5 of 5

Thread: Build a application with option to register as windows service

  1. #1
    Join Date
    Oct 2010
    Posts
    2

    Build a application with option to register as windows service

    Hi All,
    We have build an application using installanywhere 2009 and we are in a requirement to provide an option during installtion to register the application as a windows service. Do we have any option in installanywhere to configure this option? Any thoughts would help us.

  2. #2
    Join Date
    Mar 2006
    Location
    Paris, France
    Posts
    2,147

    Exclamation

    In IA you only have an option to start/stop/pause a Windows service. You would need 3rd party tools to register as a Windows service (there are free Java libraries which do that).
    Vlad

  3. #3
    Join Date
    Jul 2009
    Location
    Hyderabad
    Posts
    13

    Smile

    You can do this way.

    1. Create an EXE to register your application as Windows Service using the Windows Service Manager.
    2. Add a panel in the 'postinstall' section of your project to get the user input whether he/she wants to create register the application as a Windows Service.
    3. Based on the user input (in #2), add an action 'Execute Command' to run the EXE (created in #1) with required paramters (Eg: 'install' to register the service, 'uninstall' to unregister etc)

    This should help you.

    Thanks.

  4. #4
    Join Date
    Aug 2013
    Posts
    12

    Question Can register service for LINUX Environment.

    Does any body know how can we Register service for Linux? any thoughts?

  5. #5
    Join Date
    Mar 2006
    Location
    Paris, France
    Posts
    2,147

    Exclamation

    It's been a while since I've last touched a Linux, but depending on the flavour you need to put your executable somewhere, and then have links created in /etc/init.rd/[runlevel(s)] for starting and stopping the service (Ssome2digits number for starting, Ksome2digits for stopping). Just look at what exists and do the same...
    Vlad

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •