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

Reply via email to