Click here to Skip to main content
16,004,820 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi all

I have windows service after completed I hosted this in my system using
visual studio command prompt :InstallUtil command
it is working fine.

If I want to instal without visual studio command prompt how can I install?

When I run through setup it is installed but when click this Icon giving error:

Cannot start service from the command line or a debugger. A Windows Service must first be installed (using installutil.exe) and then started with the ServerExplorer, Windows Services Administrative tool or the NET START command.

How can trabulshoot this?

Thanks in advance.......
Posted

Hi,
One way to do is to write the script in batch file, and use the installer to run the batch file during the installation.

Regards
Jegan
 
Share this answer
 
hi all finally solved this

right click on setup project=>select view=>CustomActions=>add every folder to project output.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900