Hi,

1) What is the difference b/w ServiceControl & ServiceInstall ?

2) following is the code Please review
Component is "GuardSvc.exe" and the following are conditions

Install Condition: Not VersionNT=500 --- Only Installs on Windows XP or
later
Control NT Services  ---- Installs as a NT Service. Set to auto start,but
not started during instll(will be                    started on reboot)
Install NT Services  ---- Stops and Removes the NTService on uninstall

<Component Id="GuardSvc.exe" Guid="{?????}" DiskId="1">
      <File Id="GuardSvc.exe" Name="GuardSvc.exe" KeyPath="yes"
Source="GuardSvc.exe" />
      <ServiceInstall Id="SVc1" 
                        DisplayName="Guard Service" 
                        Description="This will install only on Windows XP or 
later" 
                        ErrorControl="normal" 
                        Interactive="no" 
                        Name="GuardSvc.exe" 
                        Start="demand" 
                        Type="ownProcess" 
                        Vital='yes'>
        <Condition>VersionNT >= 501</Condition>    
        </ServiceInstall> 
        
        <ServiceControl Id="svc2" 
                        Name="GuardSvc.exe" 
                        start = "auto" 
                        Remove="uninstall" 
                        Stop="install" 
                        Wait="yes" /> 
        
        <ServiceInstall Id="svc3" 
                        DisplayName="Guard Service"
                        Name="GuardSvc.exe"
                        ErrorControl="normal"
                        Interactive="no"  
                        Stop="uninstall" 
                        Remove="uninstall"
                        Type="ownProcess"
                        Vital='yes' />  
    </Component> 


-- 
View this message in context: 
http://www.nabble.com/Service-Control-Service-Install-tp14630666p14630666.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to