CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 6 of 6
  1. #1
    Join Date
    Mar 2009
    Posts
    8

    Installing as a service

    I have a application written in VC 2005 which I install using InstallAnywhere. Is it possible to install an exe as a windows service. I have no idea if that is possible.

    Can someone please point me to a resource where I can read about it. I googled for it, not did not help myself much.

    Thanks
    --Raghu

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Installing as a service

    Is it possible to install an exe as a windows service.
    Yes you can.

  3. #3
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: Installing as a service

    Quote Originally Posted by raghud View Post
    I have a application written in VC 2005 which I install using InstallAnywhere. Is it possible to install an exe as a windows service. I have no idea if that is possible.
    It doesn't matter what VC your app was built with. And it doesn't matter what installer you use.

    What does matter is whether your app ready to act as windows service.

    The ugly trick called SrvAny is able to run any app in service window station, but it never makes those apps be real (full featured) services. So now, the question is: what is your exact requirement? why do you want it be a service? what do you expect from that being?
    Last edited by Igor Vartanov; May 15th, 2009 at 02:15 AM.
    Best regards,
    Igor

  4. #4
    Join Date
    Mar 2009
    Posts
    8

    Re: Installing as a service

    Quote Originally Posted by Skizmo View Post
    Yes you can.
    Smart ha.

    Thanks a lot,

  5. #5
    Join Date
    Mar 2009
    Posts
    8

    Re: Installing as a service

    Quote Originally Posted by Igor Vartanov View Post
    It doesn't matter what VC your app was built with. And it doesn't matter what installer you use.

    What does matter is whether your app ready to act as windows service.

    The ugly trick called SrvAny is able to run any app in service window station, but it never makes those apps be real (full featured) services. So now, the question is: what is your exact requirement? why do you want it be a service? what do you expect from that being?
    Thanks a lot for you reply.

    Now I understand that the application should be built in such a way so that it can be properly registered as a service. SrvAny helps but it do not results in a pure service.

    thanks again.

    FYI:

    Writing a service program

  6. #6
    Join Date
    Nov 2000
    Location
    Voronezh, Russia
    Posts
    6,620

    Re: Installing as a service

    FYI: My approach to writing a service program
    Best regards,
    Igor

Posting Permissions

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





Click Here to Expand Forum to Full Width

Featured