David Keaveny - 2006-07-21

Logged In: YES

I'm not aware of one either, so I use the following:

<property name="installer.exe"

<if test="${service::is-installed('MyWindowsService', '.')}">
commandline="/u MyWindowsService.exe"
failonerror="false" />

The ${service::is-installed} function was introduced with
0.85-rc4, so make sure you're fully up-to-date. The
InstallUtil.exe program will automatically shut down the
service if it is running, but you can always use the
${service::is-running} function together with the
<servicecontroller> task to do it yourself.