You shouldn't need to do anymore than that. You don't need a service
installer in the .net code that is what the ServiceInstall element does
(basically installing a service is nothing more that writing a few
registry entries HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services).

Neil

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of bryan
rasmussen
Sent: 25 August 2008 11:10
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] installation of a .net based service with Wixui

Hi,

I'm making an installer for a Windows Service that has been developed
in .Net, the following is how I expect to declare my service:


            <Component Id='MainExecutable'
Guid='a462dab0-83F1-4F22-985B-FDB3C8ABD471'>
              <File Id='RenderingServiceExec' Name='Render'
LongName='RenderingService.exe' DiskId='1'
                Source='RenderingService.exe' Vital='yes' />
                        
                

                                <ServiceInstall
Id="RenderingServiceInstall"
        
Name="RenderingServiceInstaller"
        
DisplayName="Rendering Service"
        
Type="ownProcess"
        
Start="auto"
        
ErrorControl="normal"
        
Description="Rendering Service Installer"
        
Account="[SERVICEACCOUNT]"
        
Password="[SERVICEPASSWORD]"
        
Vital="yes"
                                                  />
                                          <ServiceControl
Id="StartRenderingServiceInstall"
        
Name="RenderingServiceInstaller" Start="install" Wait="no" />
                                          <ServiceControl
Id="StopRenderingServiceInstall"
Name="RenderingServiceInstaller"
        
Stop="both" Wait="yes" Remove="uninstall" />
            </Component>

As i understand it when I install the MainExecutable as part of the
process of doing the installation it will go ahead and install the
service, what I am wondering about is how the Service installer knows
how to install the service, do I need to add an installer to my .Net
project (I would suppose so)-

Is there anything about the code above that should be changed or done
differently? I am not in wix 3.0 as I ran into problems compiling
anything.

Thanks,
Bryan Rasmussen

------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to