Hi,

I am currently trying to get my service started as a part of MSI install and am 
unable to do so.  In the event viewer, I see the following error:

Product: Myservice Cache Service -- Error 1920. Service ' Myservice ' 
(Myservice) failed to start.  Verify that you have sufficient privileges to 
start system services.

However, I am logged in as admin. Also, if I simply install the service and 
start the service manually, I am able to do that.  I appreciate any input to 
help me figure out what I might be doing wrong or missing.

One additional data about my service is: I am trying to install the service 
under account NT AUTHORITY\NETWORK SERVICE (Property SERVICEACCOUNT = 'NT 
AUTHORITY\NETWORK SERVICE' below)

Thanks a lot for your help.
Rajesh
PS: Here is a snippet from my WXS file:

        <Directory Id='TARGETDIR' Name='SourceDir'>
            <Component Id=' MyserviceCacheComponent' Guid='my guid'>

                <!-- The files to be installed -->
                <File Id='Myservice.exe' Name='Myservice.exe' DiskId='1' 
Source='$(var.INETROOT)\target\$(var.BUILDTYPE)\$(var.BUILDTARGET)\Myservice.exe'
 />
                <File Id='Myservice.pdb' Name='Myservice.pdb' DiskId='1' 
Source='$(var.INETROOT)\target\$(var.BUILDTYPE)\$(var.BUILDTARGET)\Myservice.pdb'
 />

                <File Id='MyservicePf.dll' Name='MyservicePf.dll' 
SelfRegCost='1' DiskId='1' 
Source='$(var.INETROOT)\target\$(var.BUILDTYPE)\$(var.BUILDTARGET)\MyservicePf.dll'
 />
                <File Id='MyservicePf.pdb' Name='MyservicePf.pdb' DiskId='1' 
Source='$(var.INETROOT)\target\$(var.BUILDTYPE)\$(var.BUILDTARGET)\MyservicePf.pdb'
 />

                <RemoveFile Id='REM_MYSERVICE_XML' 
Name='Myservice_Cache_Service.xml' On='uninstall'/>

                <ServiceControl Id='Myservice_Cache_Service' Name='Myservice' 
Start='install' Stop='both' Remove='both' Wait='no'/>
                <ServiceInstall Id='Myservice_Cache_Service' Name='Myservice'
                                                                
DisplayName='Myservice'
                                                                
Type='ownProcess'
                                                                Start='auto'
                                                                
ErrorControl='normal'
                                                                
Account='[SERVICEACCOUNT]'
                                                                
Description='Myservice Cache Service'/>
                ...
            </Component>
        </Directory>
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to