Click here to Skip to main content
15,891,905 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All
How to install service form VS 2012 Developer Command Prompt,
My service project available in D:\MyService\MyService\bin\Release\MyService.exe
My InstallUtil available in C:\Windows\Microsoft.NET\Framework64\v4.0.30319\InstallUtil.exe

i am build service and get service exe inside Release folder

In Command prompt i try following ways

1.D:\MyService\MyService\bin\Release>InstallUtil MyService.exe
2.D:\MyService\MyService\bin\Release>InstallUtil.exe MyService.exe

3.C:\Windows\Microsoft.NET\Framework64\v4.0.30319>InstallUtil MyService.exe
4.C:\Windows\Microsoft.NET\Framework64\v4.0.30319>InstallUtil.exe MyService.exe

5.C:\Windows\Microsoft.NET\Framework64\v4.0.30319>InstallUtil.exe "D:\MyService\MyService\bin\Release\MyService.exe"

6.C:\Windows\Microsoft.NET\Framework64\v4.0.30319>InstallUtil "D:\MyService\MyService\bin\Release\MyService.exe"

None of these it work,it show could not load file or assembly

Pls specify from command prompt line also, don't simply put InstallUtil MyService.exe

Pls reply me asap

Regards
Aravind
Posted
Updated 23-Dec-14 14:29pm
v2
Comments
Richard MacCutchan 23-Dec-14 11:10am    
it show could not load file or assembly
Then you need to make sure the missing assembly is in the correct folder.
Aravindba 23-Dec-14 20:29pm    
thank u for ur reply,in above which step is correct ? and i have all dll and exe in correct folder,i mean in Release folder i have all dll which i reference in project.
Richard MacCutchan 24-Dec-14 3:32am    
Look at the error message; it tells you what the problem is.
Aravindba 24-Dec-14 4:08am    
yes,i can install service,but i cant stat service,by default it stop,so when i try to start it show some error and cant start service,so i make installer and install service.
Richard MacCutchan 24-Dec-14 4:12am    
I have no idea what that means, or how you expect anyone to guess what error messages you are getting. I suggest you take a look at https://www.google.com/search?q=install+service.

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