techmanabc
Posts: 5
Joined: Thu May 27, 2010 10:42 pm

Start a 64 bit service

How do I start a .net service on a 64bit computer
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Start a 64 bit service

Hello,

You can easily create a service through the Services Page in a Professional or above project.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
techmanabc
Posts: 5
Joined: Thu May 27, 2010 10:42 pm

Re: Start a 64 bit service

I have tried that, understand I'm using a custom action to install the .net service
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Start a 64 bit service

Hello,

In that case, did you try using a custom action to launch the sc command line utility?
You can start a service using the command:

Code: Select all

sc start YourServiceName
Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/
techmanabc
Posts: 5
Joined: Thu May 27, 2010 10:42 pm

Re: Start a 64 bit service

Hello,

I've tried the "sc start YourServiceName" as a custom action but is does not start the service in 32bit and on receives an installer error on 64bit. What does work for 32bit is "net start YourServiceName", but it errors on 64bit. Any suggestions
GabrielBarbu
Posts: 2146
Joined: Thu Jul 09, 2009 11:24 am
Contact: Website

Re: Start a 64 bit service

Hello,

The only cause I can think of for this is the service is not properly implementing the service interfaces, it is not handling the requests correctly. Try debugging the service to see what's wrong.

Best regards,
Gabriel
Gabriel Barbu
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”