I assure you that using InstallUtil isn't a required magical fix.  In fact, 
it's a very ugly solution.

--- On Thu, 1/22/09, Joe Osman <joe.os...@tait.co.nz> wrote:

> From: Joe Osman <joe.os...@tait.co.nz>
> Subject: Re: [WiX-users] Problems installing a windows service
> To: "General discussion for Windows Installer XML toolset." 
> <wix-users@lists.sourceforge.net>
> Date: Thursday, January 22, 2009, 1:27 PM
> I had the same problem and I had to use InstallUtil.  When
> the problem 
> occurred and I was looking for a solution, I found out that
> other people 
> had the same issue and they all had to use InstallUtil.
> 
> Chad Petersen wrote:
> > Different Chad here, but another thing I've run
> into was the service
> > having a dependency on another service, like
> RPCSS.EXE. In code it looks
> > something like this
> >
> > <ServiceDependency Id="RPCSS" />
> >
> > Without this entry on the services they would fail
> with the same error,
> > if I recall. Not sure if Reflector/Depends would show
> this sort of thing
> > or not.
> >
> > -----Original Message-----
> > From: Rob Mensching
> [mailto:rob.mensch...@microsoft.com] 
> > Sent: Thursday, January 22, 2009 7:57 AM
> > To: General discussion for Windows Installer XML
> toolset.
> > Subject: Re: [WiX-users] Problems installing a windows
> service
> >
> > 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
> >
> >
> >
> >
> ------------------------------------------------------------------------------
> > 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 email, including any attachments, is only for the
> intended
> addressee.  It is subject to copyright, is confidential and
> may be
> the subject of legal or other privilege, none of which is
> waived or
> lost by reason of this transmission.
> If the receiver is not the intended addressee, please
> accept our
> apologies, notify us by return, delete all copies and
> perform no
> other act on the email.
> Unfortunately, we cannot warrant that the email has not
> been
>  altered or corrupted during transmission.
> =======================================================================
> 
> 
> ------------------------------------------------------------------------------
> 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

Reply via email to