|
-
May 30th, 2006, 12:25 PM
#1
Thread Starter
Hyperactive Member
Insalling a Service
I am installing a service and it won't start. When I use the command prompt to net start servicename it says that the service can't be found or the name isn't recognized. I am using INNO to install. I have never installed a service before, do I need to register it or anything?
-
May 30th, 2006, 12:32 PM
#2
Re: Insalling a Service
You use InstallUtil.exe from a command window. There's a way to add it to your deployment package (in .Net anyway), but I'd have to find the link on how to do that again.
-
May 30th, 2006, 12:43 PM
#3
Thread Starter
Hyperactive Member
Re: Insalling a Service
I am using VB6 to program in, and INNO to install the files.
-
May 31st, 2006, 03:16 AM
#4
Re: Insalling a Service
Krenshau,
The installation of a service is contained in your app. How did you achieve this?
-
May 31st, 2006, 03:55 AM
#5
Re: Insalling a Service
Setup will only install the EXE on the system, it is your responsibility to run exename -install on the command prompt before you could use the service. Open command prompt, go to the folder where the EXE is located and then type this and press enter
Code:
yourexename -install
This will install the exe as a Service, now you can start the service from the command prompt or service control manager.
Use [code] source code here[/code] tags when you post source code.
My Articles
-
May 31st, 2006, 04:08 AM
#6
Re: Insalling a Service
 Originally Posted by Shuja Ali
Setup will only install the EXE on the system, it is your responsibility to run exename -install on the command prompt before you could use the service.
Shuja Ali,
Incorrect, Inno will run another program while it installs the first.
-
May 31st, 2006, 04:36 AM
#7
Re: Insalling a Service
 Originally Posted by randem
Shuja Ali,
Incorrect, Inno will run another program while it installs the first.
So does that mean that Inno will install the EXE as a service too after finishing installing the program?
I don't use Inno, however the PDW program does not do it on its own, you have to customize it before you can actually use it for installing the services.
Use [code] source code here[/code] tags when you post source code.
My Articles
-
May 31st, 2006, 04:41 AM
#8
Re: Insalling a Service
Shuja Ali,
Yes, Inno Setup will do that and much more. If you decide to look at Inno Setup, also look at the third party tools for it. Check my signature for both.
-
May 31st, 2006, 04:50 AM
#9
Re: Insalling a Service
I will definetly take a look at Inno sometime soon. 
In the meantime let us see whether OP has been able to resolve the problem or not?
Use [code] source code here[/code] tags when you post source code.
My Articles
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|