Try Wait="yes".

When wait="no" you can get a timing race between the service actually winding 
down (and the process terminating) and the attempt to delete it. The message 
might be a consequence of the process still running.

Phil Wilson


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of SaiTeja
Sent: Monday, January 07, 2008 5:00 AM
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] System Services


Hi,

In my project am using guarsvc.exe. Following is the code for the same

<Component Id="guardsvc.exe" Guid="{8D6F5BA9-DA8C-403F-8092-FD5A05616B2B}"
DiskId="1">
  <File Id="guardsvc.exe" Name="grds.exe" LongName="guardsvc.exe"
KeyPath="yes" Source="guardsvc.exe" />
<ServiceControl Id="GuardvcEvent" Name="GuardSvc" Stop="uninstall"
Remove="uninstall" Wait="no"/>
<ServiceInstall Id="NewServiceInstall2"
                        Name="GuardSvc"
                        DisplayName="Test Service"
                        Type="ownProcess"
                        Start="auto"
                        ErrorControl="normal"
                        Description="Enables the Test Prg Client. If this
service is stopped, test prg-protected content will be unavailable."
                        Interactive="no" >
          <ServiceDependency Id="RpcSs" />
          <ServiceDependency Id="Dnscache" />
          <ServiceDependency Id="CryptSvc" />
          <ServiceDependency Id="TermService" />
        </ServiceInstall>
    </Component>

While Uninstalling am getting the following error.

Service 'Test Service'(guardsvc) couldnot be deleted. Verify that you have
sufficient privileges to remove system services.

Can anyone tell me what is the wrong here?


--
View this message in context: 
http://www.nabble.com/System-Services-tp14665168p14665168.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



-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to