Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 'delayed' startup #82

Closed
micheljung opened this issue Nov 12, 2019 · 2 comments · Fixed by #87
Closed

Fix 'delayed' startup #82

micheljung opened this issue Nov 12, 2019 · 2 comments · Fixed by #87

Comments

@micheljung
Copy link
Contributor

In #80 I thought the value is passed to procrun, when in fact it's passed to the WXS file.

: error CNDL0021 : The ServiceInstall/@Start attribute's value, 'delayed', is not one of the legal options: 'auto', 'demand', or 'disabled'.

I'll see how it can be fixed.

@Horcrux7
Copy link
Member

I think you need to add a ServiceConfig https://wixtoolset.org/documentation/manual/v3/xsd/wix/serviceconfig.html

This can look like:

Element config = getOrCreateChildById( install, "ServiceConfig", id + "_config" );
addAttributeIfNotExists( config, "DelayedAutoStart", "yes" );

But you should test it if this work.

@Horcrux7
Copy link
Member

Any news on it?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants