Conditional Service File - WixUtil ServiceConfig primary key violation #8957
-
I have a project that installs a different service EXE based on a condition for the same service name. The install originally used MsiServiceConfigFailureActions. I tried updating it to use WixUtil:ServiceConfig, however that tries to use the "Name" instead of the "Id", as the primary key which conflicts. I need the service name to be the same, since users may script starting/stopping the service which uses that name. Is this a limitation, or is there a better way to setup the conditional service? Example:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
You could have a third component which is installed in either condition, with it's own Registry keypath, and have it just do the util:ServiceConfig, such that there's only a single instance of it. You tried using the ServiceConfigFailuresActions element right? |
Beta Was this translation helpful? Give feedback.
You could have a third component which is installed in either condition, with it's own Registry keypath, and have it just do the util:ServiceConfig, such that there's only a single instance of it.
You tried using the ServiceConfigFailuresActions element right?
https://docs.firegiant.com/wix/schema/wxs/serviceconfigfailureactions/