wix - Unable to start a service -


i have c# application using wix bootstrapper setup. setup install sql server , application. application old application custom service : public partial class mycustomservice : system.serviceprocess.servicebase.

previously, service installed windows installer (system.configuration.install.installer). modified project use wix. service should start :

<component id="mycustomservice" guid="{the-guid}" keypath="yes">           <!-- service need installed under local service -->    <serviceinstall     id="mycustomservice"     type="ownprocess"     vital="yes"     name="mycustomservice"     displayname="my custom service"     description="service custom"     start="auto"     account="nt authority\localservice"     errorcontrol="normal"/>   <servicecontrol id="mycustomservice_start" name="mycustomservice" start="install" wait="no" />   <servicecontrol id="mycustomservice_stop" name="mycustomservice" stop="both" wait="yes" remove="uninstall" /> />     <registrykey root="hklm" key="software\mycustomservice" forcecreateoninstall="yes" forcedeleteonuninstall="yes">       <registryvalue type="expandable"/>     </registrykey>     <registrykey root="hklm" key="system\currentcontrolset\services\eventlog\application\mycustomservice" forcecreateoninstall="yes" forcedeleteonuninstall="yes">       <registryvalue type="expandable"/>     </registrykey> </component> 

edit :

i passed exception. service try start stop after. saw in log event : "access registry key 'hkey_local_machine\software\mycustomservice' has been refused.

is there way set rights when create registry key ?


Comments

Popular posts from this blog

asynchronous - C# WinSCP .NET assembly: How to upload multiple files asynchronously -

aws api gateway - SerializationException in posting new Records via Dynamodb Proxy Service in API -

asp.net - Problems sending emails from forum -