I tried a lot. But I couldn't get any soln :(

Can anyone give any pointer regarding how to solve this issue?



SaiTeja wrote:
> 
> Hi,
> 
> In my case the Guard service does not allow administrators to stop it, due
> to the possible unpleasant side-effects of stopping it while managed
> applications are running.  That means the uninstall cannot stop it in the
> normal way.  Instead, we have a custom action which runs
> "StopGuardForUninstall" which requests that the service stop itself using
> a specialized signal.
> 
> Following is the custom actions for the same
> 
>       <CustomAction Id="StopGuardService" Return="check" HideTarget="no"
> Execute="deferred" Impersonate="yes" TerminalServerAware="no"
> ExeCommand="StopGuardForUninstall" FileKey="xyz.exe">
>     </CustomAction>
>     <CustomAction Id="StartGuardIfSafe" Return="check" HideTarget="no"
> Execute="immediate" Impersonate="yes" TerminalServerAware="no"
> ExeCommand="StartGuardIfSafe" FileKey="xyz.exe">
>     </CustomAction> 
> 
> <InstallExecuteSequence>
>  <Custom Action="StopGuardService" Sequence="1569">Installed And
> REMOVE="ALL"</Custom>
>  <Custom Action="StartGuardIfSafe" Sequence="5902">Not Installed</Custom> 
> </InstallExecuteSequence>              
> 
> But Still am facing same problem.
> 
> Can anyone give any pointer regarding how to solve this issue?
> 
> 
> 
> Wilson, Phil wrote:
>> 
>> If you manually stop the service while the product is still installed
>> does it actually stop correctly? And does the process exe go away? Keep
>> in mind that the whole service start/stop mechanism depends on the code
>> in the service following the service message protocols and responding in
>> a timely manner.
>> 
>> Phil Wilson
>> 
>> 
>> -----Original Message-----
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] On Behalf Of SaiTeja
>> Sent: Monday, January 07, 2008 10:31 PM
>> To: wix-users@lists.sourceforge.net
>> Subject: Re: [WiX-users] System Services
>> 
>> 
>> Hi,
>> 
>> I tried with Wait="yes".
>> 
>> But still am getting same error. :(
>> 
>> Action 11:56:57: UnpublishFeatures. Unpublishing Product Features
>> UnpublishFeatures: Feature: TPFeature
>> Action 11:56:57: StopServices. Stopping services
>> StopServices: Service: Test Prg Service
>> Error 1921. Service 'Test Prg Service' (GuardSvc) could not be stopped.
>> Verify that you have sufficient privileges to stop system services.
>> MSI (s) (00:A8) [11:57:30:156]: Product: Test Prg -- Error 1921. Service
>> 'Test Prg Service' (GuardSvc) could not be stopped. Verify that you have
>> sufficient privileges to stop system services.
>> 
>> Action ended 11:57:31: InstallFinalize. Return value 3.
>> Action 11:57:31: Rollback. Rolling back action:
>> Rollback: Stopping services
>> Rollback: Unpublishing Product Features
>> 
>> 
>> 
>> 
>> Wilson, Phil wrote:
>>>
>>> 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
>>>
>>>
>> 
>> --
>> View this message in context:
>> http://www.nabble.com/System-Services-tp14665168p14683454.html
>> Sent from the wix-users mailing list archive at Nabble.com.
>> 
>> 
>> -------------------------------------------------------------------------
>> 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
>> 
>> 
>> 
>> -------------------------------------------------------------------------
>> 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
>> 
>> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/System-Services-tp14665168p14833722.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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