You can add the ServiceInstall element by itself without the ServiceControl. 
Add the ServiceInstall in the same component that defines service file.  The
service file needs to be the KeyPath.  I would recommend not having any
other files in the components, which is good practice anyway.  Something
like this should work fine.

<Component Id="TheServiceComponent" Guid="{GUID HERE}">
   <CreateFolder />
   <File Id="TheServiceExe" KeyPath="yes" Source=".\thefile.exe" />
   <ServiceInstall Id="TheServiceInstall" Name="SomeServiceName"
DisplayName="The Service Display Name" Start="disabled" Type="ownProcess"
Account="LocalSystem" Interactive="no" ErrorControl="normal"/>

</Component>
-- 
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/ServiceInstall-does-nothing-in-WiX-3-5-tp4972774p5012380.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to