Some thoughts, not all of which may apply: 

The account needs the "log on a service" right.  It's not automatic for
admins IIRC. If you configure the service with an account manually it
will add that right for you and tell you. Using the APIs isn't that
friendly. 

If the service starts but never calls back into the service APIs then
that will also cause this behavior. It's sometimes worth looking at what
the service does before it calls back into the service APIs, although
this is masked if it's a managed code service unless you spend all day
in OnInstall. 

Dependencies matter too, in case the service depends on something that's
being installed in the same package but isn't actually available at
StartServices time (this sounds most likely). 

Phil Wilson 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Monday, September 10, 2007 9:50 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Error when using ServiceInstall

I'm trying to install a service with the follow bit of WiX - the first
is
hand done (from tutorial) the second is from WiX-Aware - both are
failing:

<Component Id='nexusportalEXE'
Guid='3B392C35-B499-473e-98F6-75218C1AE3B1'
Location='local'>
            <File Id='nexusportalEXE' Name='nexuspor.exe' LongName='
nexusportal.exe' DiskId='1' src='..\bin\nexusportal.exe' />
            <ServiceInstall Id='nexusportalEXE' DisplayName='Pershing
Nexus
Portal Business Logic Host' Name='Nexus Portal Service'
              ErrorControl='normal' Start='auto' Type='ownProcess'
Vital='
yes' Account='[ACCOUNT]' Password='[PASSWORD]' />
            <ServiceControl Id='nexusportalEXE' Name='Nexus Portal
Service'
              Start='install' Stop='uninstall' Remove='uninstall' />
          </Component>


          <Component Id="C_FL_NexusPortal.exe"
Guid="{FFF761D4-A91B-40E5-B822-15FB9554F764}">
            <File Id="FL_NexusPortal.exe" Name="NexusPor"
LongName="NexusPortal.exe" Source="..\bin\NexusPortal.exe" DiskId="1"
KeyPath="yes" />
            <ServiceInstall Id="NexusPortalService"
ErrorControl="normal"
Name="NexusPortalService" Start="auto" Type="ownProcess"
DisplayName="Nexus
Portal Service" Description="Business Logic Host" Interactive="no"
Arguments="[ACCOUNT]" Vital="yes" Password="[PASSWORD]" />
            <ServiceControl Id="NexusPortalService"
Name="NexusPortalService" Remove="uninstall" Stop="uninstall"
Start="install" />
          </Component>

It returns an error (on two boxes):

Event Type: Error
Event Source:     MsiInstaller
Event Category:   None
Event ID:   11920
Date:       10/09/2007
Time:       17:38:41
User:       PERSHINGDEV\mt09
Computer:   EID249D139
Description:
Product: Nexus Portal Service -- Error 1920. Service 'Nexus Portal
Service'
(NexusPortalService) failed to start.  Verify that you have sufficient
privileges to start system services.
Data:
0000: 7b 32 44 36 43 39 42 35   {2D6C9B5
0008: 36 2d 32 36 34 39 2d 34   6-2649-4
0010: 35 35 38 2d 38 43 34 38   558-8C48
0018: 2d 44 42 42 34 32 42 43   -DBB42BC
0020: 30 33 44 37 44 7d         03D7D}


I am an administrator on both and can't see what privileges it is i am
missing, also able to manually install the service. So i'm thinking it's
a
red herring of an error message but not had much luck finding it so
far....
anybody any ideas - am i missing something saying what type of service
it
should be in the XML?

Cheers,
Matt


Matt Thompson
PERSHING
Tel: 020 7864 8000
Email: [EMAIL PROTECTED]


************************************************************************
************************************************************************
Pershing Email Disclaimer:

Pershing Securities Limited, registered in England number 2474912, is
authorised and regulated by the Financial Services Authority and is a
member of the London Stock Exchange. Registered address: Capstan House,
One Clove Crescent, East India Dock, London E14 2BH.

Pershing Limited, registered in England number 2072264, is authorised
and regulated by the Financial Services Authority and is a member of the
London Stock Exchange. Registered address: Capstan House, One Clove
Crescent, East India Dock, London E14 2BH. 

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mis-transmission.
If you receive this message in error, please immediately delete it and
all copies of it from your system, destroy any hard copies of it and
notify the sender. You must not, directly or indirectly, use, disclose,
distribute, print, or copy any part of this message if you are not the
intended recipient. Both Pershing Limited and Pershing Securities
Limited reserve the right to monitor all e-mail communications through
its networks. Any views expressed in this message are those of the
individual sender, except where the message states otherwise and the
sender is authorised to state them to be the views of any such entity.

Unless otherwise stated, any pricing information given in this message
is indicative only, is subject to change and does not constitute an
offer to deal at any price quoted.

Any reference to the terms of executed transactions should be treated as
preliminary only and subject to our formal written confirmation.

E-mail will be archived for at least three years and may be produced to
regulatory agencies or others with a legal right to access such
information
************************************************************************
************************************************************************


------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to