You didn't really provide enough information, Arron. Is wyUpdate failing (if so what's the error?), or is your app failing?
Also, you know wyUpdate can stop/start your services. See: Starting and Stopping Windows Services.
Hi.
I'm having problems with some clients retrieving updates since one of the system services isn't running. The update attempts to stop these services before the update, but fails.
I wrote a c++ application (PrepUpdate.exe) to stop (if running) the services which need stopping, but including this in the update and setting to run before the update begins isn't working. The update appears not to run my 'PrepUpdate.exe' application at all.
Does anyone know why running the PrepUpdate.exe command (included in the updates temporary folder) isn't running?
You didn't really provide enough information, Arron. Is wyUpdate failing (if so what's the error?), or is your app failing?
Also, you know wyUpdate can stop/start your services. See: Starting and Stopping Windows Services.
wyUpdate doesn't fail, it just doesn't seem the run the program at all. If I run my program manually (a simple c++ program) it stops the services fine.
The problem I found with wyUpdate stopping the services is, if the service isn't already running the update fails. In this case I would like the update to continue even if the service is already stopped.
wyUpdate doesn't fail, it just doesn't seem the run the program at all.
Are you executing the program as part of your update? If so, try adding debugging information to your app (and/or attaching a debugger to your app) to see where it fails.
For interest sake, the reason my program which should stop the services isn't running is because i'm running wyupdate with the /fromservice switch. Wyupdate seems to know that these services need to be stopped before it will do anything (since its going to update the service exe files) so it must check if any processes are running which will inhibit the update before running any file which are marked to execute 'before updating has begun'.
At the end of the day, all I need is the update to proceed even if a service which it's attempting to stop is already stopped. It doesn't appear WyUpdate can do this. Please correct me if i'm wrong.
wyUpdate will show an error if you try to stop a service that isn't started. So either start the service before running wyUpdate. Or stop the service before running wyUpdate (and don't include the "stop service" update action in your update).