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

To avoid the message, simply stop the service before MSI runs its
validation routines.

Regards,

Dirk

2011/9/26 Yuri Sevastyanov <y...@tightvnc.com>:
> Hi All,
>
> I come upon the warning message during uninstalls a product or major updates 
> in the uninstall phase (when a product service is running):
>
> "The setup must update files or service that cannot be updated while the 
> system is running. If you choose continue, a reboot will be required to 
> complete the setup."
>
> This message appears before the custom action that removes the service, it 
> appears when
> "Status: Validating install". And then when I press the OK button the 
> installer elevate privileges to run the custom action that removes the 
> service.
>
> How I can avoid this message?
>
> After the signature, I've included the custom action code parts.
>
> Thank you!
>
>
> --
> Best Regards,
> Yuri Sevastyanov,
> TightVNC Team
>
>
>
> Example code:
>
>    <CustomAction Id="UnregService"
>                  FileKey="tvnserverEXE"
>                  ExeCommand="-remove -silent"
>                  Impersonate="no"
>                  Execute="commit"
>                  Return="ignore" />
>
> <!-- Skipped -->
>
>      <Custom Action="UnregService" After="InstallInitialize">
>        <!-- If the Server feature is deselected -->
>        <![CDATA[(&Server=2) AND (!Server=3)]]>
>      </Custom>
>
>
> ------------------------------------------------------------------------------
> 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
>

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