Click here to Skip to main content
11,721,053 members (83,099 online)
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# service Dependency
Hi all,
How can i add dependencies of a windows service by installshield?
My winservice depend on the three following services, so they must run before the service starts:

1. COMSysApp
2. SENS
3. MSDTC

Note: I have used Installshield project to install my service and not windows installer class so i could not use the way that mr. Jerry.Wang suggested in his article.
Posted 24-Sep-12 23:20pm
Edited 25-Sep-12 23:01pm
v2
Comments
jang083 at 25-Sep-12 6:07am
   
http://stackoverflow.com/questions/12580353/how-to-add-dependencies-to-a-windows-service cross posting...
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

You can add dependencies via the registry or via the command line. See e.g. http://www.kiwisyslog.com/help/cattools/index.html?appserv_howtoaddservdepends.htm[^]
  Permalink  
Comments
phoenix1167 at 26-Sep-12 2:52am
   
Thanks Bernhard Hiller,but i want to add dependency via installshield.It has a Dependency Scanner tool but it could find just COMSysApp but not SEN Service.
even when i add COMSysApp as a dependency and then install my service i can not see this dependency in list of dependencies of my installed service!?
Bernhard Hiller at 26-Sep-12 3:30am
   
SEN stands for "System Event Notification", maybe that helps to find the service.
I do not know how to add dependencies with InstallShield.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

I have solved it myself by adding the dependencies in ServiceComponent Wizard.
  Permalink  

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

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 500
1 OriginalGriff 334
2 Mika Wendelius 160
3 F-ES Sitecore 140
4 Maciej Los 80
0 Sergey Alexandrovich Kryukov 2,199
1 OriginalGriff 959
2 F-ES Sitecore 640
3 Maciej Los 609
4 Richard MacCutchan 540


Advertise | Privacy | Mobile
Web02 | 2.8.150901.1 | Last Updated 2 Oct 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100