How can I tell if a windows service is installed in VB.NET?
i.e. something like
if service exist then
blah
else
install it
end if
:)
Printable View
How can I tell if a windows service is installed in VB.NET?
i.e. something like
if service exist then
blah
else
install it
end if
:)
You need to add an "Installer Class" to your service's project. Once added, you also need to add a ServiceProcessInstaller component, and a ServiceInstall component. This will allow you to use the InstallUtil.exe to install your service. You can uninstall with the same utility.
Hope this helps,
Joan
thanks, i have already used that... i think i didnt explain what i was trying to do.sorry
when a user clicks on a button, for the code to detect wiether or not a following service is installed on the local machine... i.e....dns client, zero-wireless... thanks