This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Re: Multiple dependencies for Windows Services
Subscribe
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 24, 2008
06:31 AM
Multiple dependencies for Windows Services
Just a heads up for everyone about some difficulty I had.
I'm installing a Windows Service as part of a Basic MSI project and wanted to make the service dependent on two other services. The help text for the Dependencies property says "Separate multiple dependencies with a comma", which I did.
However, when I tried to start my service after installation, I got "Could not start because a dependency could not be found or is pending deletion". Looking at the service in the services console, it only listed the first dependency, not the second.
The reason for this is that I wrote my dependencies like this:
"FirstDependency, SecondDependency". Note the space after the comma. It caused the service to be dependent on "FirstDependency" and " SecondDependency".
Just changed it to remove the space ("FirstDependency,SecondDependency") fixed it for me.
I'll try opening a bug request for it, because there isn't really a good reason for this not to be handled by InstallShield.
I'm installing a Windows Service as part of a Basic MSI project and wanted to make the service dependent on two other services. The help text for the Dependencies property says "Separate multiple dependencies with a comma", which I did.
However, when I tried to start my service after installation, I got "Could not start because a dependency could not be found or is pending deletion". Looking at the service in the services console, it only listed the first dependency, not the second.
The reason for this is that I wrote my dependencies like this:
"FirstDependency, SecondDependency". Note the space after the comma. It caused the service to be dependent on "FirstDependency" and " SecondDependency".
Just changed it to remove the space ("FirstDependency,SecondDependency") fixed it for me.
I'll try opening a bug request for it, because there isn't really a good reason for this not to be handled by InstallShield.
(2) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 25, 2008
02:05 PM
This doesnt really sound like a bug to me. If I was told to seperate fields by a comma then I would not include any spaces. Scripting language is not like the English language, not the same rules apply.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Feb 26, 2008
02:42 AM
mjlarezzo wrote:
This doesnt really sound like a bug to me. If I was told to seperate fields by a comma then I would not include any spaces. Scripting language is not like the English language, not the same rules apply.
This isn't a scripting language. This is a development IDE designed to abstract the details of the underlying system.
Additionally, adding a space after a comma is in very common use in scripting and programming languages (when specifying an array, for instance) and most if not all languages I know will ignore the space.
![](/skins/images/CC38E504FC9E1309DC48ACFEB4925670/responsive_peak/images/icon_anonymous_message.png)