This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Installing a cygrunsrv service with WiX and ServiceInstall




I'm trying to install a cygrunsrv based service from an MSI package.

The MSI package is created with WiX.

Currently, it fails to install, giving the unhelpful error 1923 and an Abort/Retry/Ignore pop-up.

While the pop-up is on the screen, I inspect my registry and can't find any evidence that the service has even been created. Can anyone make any suggestions?

I am also using some RegistryValue tags in the WXS file to specify things like AppPath and AppArgs for cygrunsrv. I am creating the entries this way instead of calling `cygrunsrv --install'.

Here is what I used in the WXS file for WiX:

   <DirectoryRef Id="sbin">
     <Component Id="cygrunsrv.exe" Guid="[removed]">
       <File Id="cygrunsrv.exe" Source="c:\cygwin\bin\cygrunsrv.exe"
Name="cygrunsrv.exe" KeyPath="yes" Checksum="yes"/>
       <ServiceInstall Id="gmond" Name="gmond" DisplayName="gmond"
ErrorControl="normal" Type="ownProcess" Start="demand" Interactive="no">
         <!-- <ServiceDependency Id="LanmanWorkstation"/> -->
       </ServiceInstall>
       <ServiceControl Id="gmond1" Remove="uninstall" Stop="uninstall"
Name="gmond" Start="install" Wait="no"/>
       <!-- <util:ServiceConfig FirstFailureActionType="restart"
SecondFailureActionType="restart" ThirdFailureActionType="restart"
ResetPeriodInDays="1" RestartServiceDelayInSeconds="1"
ServiceName="gmond"/> -->
     </Component>
   </DirectoryRef>



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]