Well, since I didn't develop the service I wouldn't know the name. Anyway killing the service is way too drastic. Since the app I'm updating is asp.net running off the desktop I'm now trying to run custom tasks from the temporary folder. I'm not having any luck either.
I have two task: one "before" update and one "after" update, both are batch files. The doc states that the files are executed in the order of appearance but since I have only one "before" and one "after" task that wouldn't matter, would it?
My batch files are simple. The "before" batch file is to unregister the application:
echo offcall %1\RegisterWithCassini.batpause
The "after" task is similar:
echo offcall %1\RegisterWithCassini.batpause
Both batch file assumes that the first parameter is the installation path. I use %basedir% as command line switch in wyBuild. The path passed through %basedir% will contains spaces.
Nothing so far has worked and I think it's because I do not have enough information on how parameters are passed to the batch files (from wyUpdate.exe). For example, should I call as above (no quotes) or like this:
call "%1"\RegisterWithCassini.bat
or
call "%1\RegisterWithCassini.bat"
or with no path at all, like so:
call RegisterWithCassini.bat
Can you please provide more insights about how things are being passed, if there is a working directory is being set, so on and so forth.
Thank you!