Installing a cygrunsrv service with WiX and ServiceInstall

Daniel Pocock daniel@pocock.com.au
Tue Apr 14 13:41:00 GMT 2009



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/



More information about the Cygwin mailing list