Click here to Skip to main content
15,916,842 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
Hi,
I have created window service. How could I install it on Vista.

Thanks
Seema
Posted

You have to add an installer project in the window services solution, and then you have two ways to install it:

0) Use the InstallUtil.exe utility fromvided with the .Net framework

1) Make the service self-installing where you run the exe and it installs itself.

You can use google to find out more about each technique.
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 22-Apr-11 23:04pm    
My 5, I prefer #1. As the question is about Vista: elevated privilege with be required at the moment of installation or uninstallation.
--SA
Try to run the service as an administrator as shown here[^].
 
Share this answer
 
v2
Comments
Sergey Alexandrovich Kryukov 22-Apr-11 23:04pm    
Essential note (I also commented it to my comment to John's answer). My 5.
--SA
Abhinav S 23-Apr-11 3:41am    
Yes just saw that comment. Thanks for the 5.

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