Safely setting service startup type to "Automatic (Delayed Start)" #8721
Replies: 3 comments 4 replies
-
|
Hey! I wanted to comment on this and see if anyone had been able to see this post at all. It's been a little over a month since I posted this and so far I haven't been able to find out a recommended way to set up the delayed start to a Windows Service in WiX. |
Beta Was this translation helpful? Give feedback.
-
|
Hi Tyler. How did you get install a project as a service? I've been searching documentations about it, but i can't find use full info. |
Beta Was this translation helpful? Give feedback.
-
|
@Tyler-Duckworth I have no relationship with this project but found your question when Google-searching. I believe ServiceConfig is the ideal way to handle it. <!--
Source - https://stackoverflow.com/a/9158372
Posted by Matt Sharpe, modified by community. See post 'Timeline' for change history
Retrieved 2025-11-12, License - CC BY-SA 4.0
-->
<ServiceConfig DelayedAutoStart="yes" OnInstall="yes" OnReinstall ="yes" />
Taken from https://stackoverflow.com/a/9158372/12156188. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi!
I'm in the process of creating a WiX v4 installer to install a Windows Service with a default Startup Type of "Automatic (Delayed Start)". I have been able to get it working using the
DelayedAutoStartattribute in the (non-util)ServiceConfigelement (docs), but it does result in a WIX1149 warning about the functionality not working correctly in MSI 5.0 that recommendsutil:ServiceConfig(docs) instead.However, I do not see any fields in
util:ServiceConfigrelated to the starting of the service. Is there a way in WiX to do this without potentially using this incomplete functionality? (I've considered doing a custom action that callssc.exebut didn't know if there was a more 'recommended' way to do it)Beta Was this translation helpful? Give feedback.
All reactions