Are you still using your CA to uninstall the service as well?

If so is it scheduled to remove the service before the ServiceControl has
stopped it?

Try making a log to see what order everything is happening in and what files
are locking it.

Dave

-----Original Message-----
From: Dirk Räder [mailto:d...@raeder.cc] 
Sent: 26 September 2011 11:42
To: General discussion for Windows Installer XML toolset.
Subject: Re: [WiX-users] Msi show a warning message when I try to uninstalla
service.

2011/9/26 Yuri Sevastyanov <y...@tightvnc.com>:
> Thank You, Dirk!
>> Yuri,
>>
>> I'd recommend using MSI-internal functions to uninstall and uninstall
>> services instead of Custom Actions. See
>> http://wix.sourceforge.net/manual-wix3/wix_xsd_serviceinstall.htm for
>> installation and
>> http://wix.sourceforge.net/manual-wix3/wix_xsd_servicecontrol.htm for
>> removal.
>>
> I've tried to use the ServiceControl element
>
>      <Component Id='ServerExe' Guid='A_GUID'>
>        <ServiceControl Id="ServiceRemover"
>                        Name="tvnserver"
>                        Remove="uninstall"
>                        Stop="uninstall"
>                        Wait="yes" />
>        <!-- tvnserver.exe -->
>        <File Id='tvnserverEXE' Name='tvnserver.exe' DiskId='1'
> Source='$(var.BinFolder)\tvnserver.exe' KeyPath='yes'>
>
>  and nothing has changed. The message appears again and the service
> removes too.
>> To avoid the message, simply stop the service before MSI runs its
>> validation routines.
>>
> I didn't understand completely how I can stop the service before MSI
> runs its
> validation routines. Did you mean MSI means? Without privilege elevation?
>
> Thank you!
>

Hi Yuri,

I did not necessarily mean MSI means. You could also ask the user to
stop the service, but I suppose that this is not the way of choice for
a userfriendly (un)installer.

You could use a CA to stop the service by executing "sc.exe stop
tvnserver" and schedule it before InstallValidate.


Regards,

Dirk

-----------------------------------------------------------------------------
-
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure contains a
definitive record of customers, application performance, security
threats, fraudulent activity and more. Splunk takes this data and makes
sense of it. Business sense. IT sense. Common sense.
http://p.sf.net/sfu/splunk-d2dcopy1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to