This is requirement for ServiceInstall table 
(http://msdn.microsoft.com/en-us/library/aa371637(VS.85).aspx).  Look for 
description of Component_ column:

"External key to column one of the Component Table. Note that to install this 
service using the InstallService table, the KeyPath for this component must be 
the executable file for the service."

Alex



-----Original Message-----
From: Joe Osman [mailto:joe.os...@tait.co.nz] 
Sent: Monday, April 06, 2009 1:21 PM
To: General discussion for Windows Installer XML toolset.
Subject: [WiX-users] Service Install doesn't work when the component keypath is 
used

I've tried to install a .NET service using the ServiceInstall element but 
didn't succeed when I've used the keypath attribute of the component. When I 
used the keypath attribute of the file and not the component the service was 
installed successfully. Is this a bug ? Here is the code (when using the 
keypath attribute of the file element):

   <Component Id="comp_KMF_799" DiskId="1" 
Guid="09A0B49A-E3EE-4080-A405-12F0E147F991" >
            <File Id="file_KMF_799" Checksum="yes"
                  
Source="..\KeyManagementFacility\OtarServer\Tait.KeyManagementFacility.OtarServer.exe"
 

                  KeyPath="yes" />
            <ServiceInstall
                Id="KeyManagementService"
                Name="KeyManagementService"
                DisplayName="Tait Key Management Service"
                Description="A Windows service providing Over-The-Air Rekeying 
for P25 devices"
                Type="ownProcess"
                Start="auto"
                ErrorControl="normal"
                Account=".\OtarServer"
                Password="[USERPASSWORD]" />
            <ServiceControl
                Id="StartWixServiceInstaller"
                Name="KeyManagementService"
                Start="install"
                Stop="uninstall"
                Remove="uninstall"
                Wait="yes" />
          </Component>






=======================================================================
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:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to