Just FYI, that error message you get is the generic, "Something went wrong starting this service". It's quite maddening because you have to hunt down the real issue. 80% of the time it's what Chad suggests.
-----Original Message----- From: Chad Miles [mailto:chad.mi...@gmail.com] Sent: Thursday, January 22, 2009 07:51 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Problems installing a windows service Have you run depends/reflector on your file to see if your missing any dependencies by chance? On Thu, Jan 22, 2009 at 9:48 AM, Thomas Due <thomas....@scanvaegt.dk> wrote: > I am currently experimenting with WiX to see if it is something we can > use for our next generation software. > > > > My immediate thought was to simply build the complete installation from > ground-up in small steps. > > > > This have worked fine so far, now I have run into a problem though, when > I try to install a Windows Service I get this error: > > > > Service "My Name Server" (NSEngine) could not be installed. Verify that > you have sufficient privileges to install system services. > > > > The problem is, I DO have sufficient privileges to install services, at > least I haven't had any problems using the InstallUtil. > > The services have been created with VS2008 and .NET 3.5 (C#). > > > > If I use InstallUtil, they install fine, but I thought I would try doing > it the "right" way. > > > > Here is the code I am currently using: > > > > <DirectoryRef Id="INSTALLDIR"> > > <Component Id="NameServiceComponent" > Guid="53398A87-395B-4DA8-A475-04684FE5DE20"> > > <File Id="NSEngine" > > Name="$(var.NSEngine.TargetFileName)" > > Source="$(var.NSEngine.TargetPath)" DiskId="1" > KeyPath="yes" /> > > > > <ServiceInstall Id="NSEngineInstall" > > DisplayName="My Name Server" > > Name="NSEngine" > > ErrorControl="normal" > > Start="auto" > > Type="ownProcess" > > Account="Network Service" > > Vital="yes" > > Interactive="no"/> > > > > <ServiceControl Id="NSEngineControl" > > Name="NSEngine" > > Start="install" > > Stop="both" > > Remove="uninstall" /> > > </Component> > > </DirectoryRef> > > > > <Feature Id="MainFeature" Title="Main Feature" Level="1"> > > <ComponentRef Id="NameServiceComponent"/> > > </Feature> > > > > What I am doing wrong? > > > > TYI > > Thomas Due > > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by: > SourcForge Community > SourceForge wants to tell your story. > http://p.sf.net/sfu/sf-spreadtheword > _______________________________________________ > WiX-users mailing list > WiX-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wix-users > -- Chad E. Miles Software Engineer, Development Interactive Intelligence, Inc. chad.mi...@inin.com 317.715.8280 Office/Fax ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users