The way to preventing installing on restart is to install on close. That is call InstallNow() on the close of your app when the update is ready.
Hey, we've been going back and forth a bit about the wyupdate race condition, so as a potential workaround I was thinking about disabling update installation on app startup.
It seems the automatic updater does not do this by default, so I was wondering if there was a wyupdate commandline switch or a property of the automaticupdater where I could disable automatic installation upon restart?
The way to preventing installing on restart is to install on close. That is call InstallNow() on the close of your app when the update is ready.
Is there a way, then, to prevent the application from restarting after the update has installed?
One more thing to note is that this would not completely prevent the update from being installed on restart.
If the app crashes for whatever reason after an update has become ready to install, it will install when the app restarts.
You can handle the CloseAppNow event and just don't close your app. But as I said above, the better solution is to install the update immediately upon close of your app.