WiX service don't start: service failed to start verify that you have sufficient privileges -
i have java application. have made scansol-agent-app.exe file need make installer wix. below there code of scansol-agent.wxs file. need install app windows service. servise installs well, don't starts. windows shows me error: “service failed start - verify have sufficient privileges start system services” tried variants find, no results. how can start service?
<?xml version="1.0"?> <wix xmlns="http://schemas.microsoft.com/wix/2006/wi"> <product id="*" upgradecode="{eb6b8302-c06e-4bec-adac-932c68a3a98d}" name="scansol agent application service" version="0.0.1" manufacturer="sciencesoft" language="1033"> <package installerversion="200" compressed="yes" comments="windows installer package" manufacturer="sciencesoft"/> <media id="1" cabinet="product.cab" embedcab="yes"/> <property id="whslogo">1</property> <wixvariable id="wixuilicensertf" value="license.rtf" /> <ui> <property id="applicationfoldername" value="wix demo" /> <property id="wixappfolder" value="wixxpermachinefolder" /> <property id="wixui_installdir" value="installdir" /> <uiref id="wixui_installdir" /> <!-- skip license dialog --> <publish dialog="welcomedlg" control="next" event="newdialog" value="installdirdlg" order="2">1</publish> <publish dialog="installdirdlg" control="back" event="newdialog" value="welcomedlg" order="2">1</publish> <!--<property id="defaultuifont">dlgfont8</property>--> <textstyle id="dlgfont8" facename="tahoma" size="8" /> <textstyle id="dlgtitlefont" facename="tahoma" size="8" bold="yes" /> <dialog id="installdlg" width="370" height="270" title="[productname] setup" nominimize="yes"> <control id="title" type="text" x="15" y="6" width="200" height="15" transparent="yes" noprefix="yes"> <text>{\dlgtitlefont}ready install</text> </control> <control id="install" type="pushbutton" x="304" y="243" width="56" height="17" default="yes" text="install"> <publish event="enddialog" value="return" /> </control> </dialog> </ui> <directory id="targetdir" name="sourcedir"> <directory id="programfilesfolder" name="pfiles"> <directory id="installdir" name="scansolagent"> <component id="applicationserviceinstall" guid="{908b7199-de2a-4dc6-a8d0-27a5ae444fea}"> <file id='applicationfile1' source="scansol-agent-app.exe" diskid='1' keypath='yes' vital='yes'/> <file id="applicationfile2" source="config.cfg" diskid='1' keypath='no' vital='yes'/> <serviceinstall id="serviceinstaller" type="ownprocess" vital="yes" name="scansolagentservice" displayname="scansol agent application service" description="file monitoring , loading server" start="auto" account="localsystem" errorcontrol="ignore" interactive="no" > </serviceinstall> <servicecontrol id="startservice" start="install" stop="both" remove="uninstall" name="scansolagentservice" wait="yes" /> </component> </directory> </directory> </directory> <feature id="defaultfeature" level="1" title="scansolagentappservice"> <componentref id="applicationserviceinstall" /> </feature> </product> </wix>
the reasons many , vast majority of addressed, however, had case none of answers or suggestions applicable it. @ end found reason case: in serviceinstall tag there attribute named account, in case localservice, however, in project windows service, in generated file assigned service account localsystem. if service account set in windows service project not match later specify in wix source file under serviceinstall's account attribute, windows installer install service, however, fail on starting it. conclusion, make sure service accounts match @ both places. , again, might not case, worth double check.
Comments
Post a Comment