Application not starting on download error

I am using WyUpdate to update software on a variety of headless servers. I have noticed that occasionally, an error will occur in the download. This happens for various reasons, such as a network interruption or the download not passing "validation". For some reason, WyUpdate will not proceed running the existing version of the application, despite having checked off the boxes that say "Execute file after updating" and "Rollback update on non-zero return codes". This causes my servers to sit there running nothing. Is this expected behavior? Why would they not run the previous version of the software?

Hey Justin,

Are you using the AutomaticUpdater or are you using wyUpdate as a standalone updater. If you're using the AutomaticUpdater then wyUpdate will restart your app if something fails mid-update.

If you're using wyUpdate in standalone mode then wyUpdate will automatically restart your service (if you're updating from a service). Or if you're updating a regular old app then you can use the "-startonerr" and "-startonerra" commandline options to start an application on an update error.

Does that make sense?

Ahh, I see! I didn't know I had to specify that if I specified it when using WyBuild. Thanks!