I'm using clickonce, but I don't like having to change the minimum version number to force the update. It's less about forcing the update, as just not popping up the message box to the user asking if they want to update.
I don't care about installation times on startup, its typically only 5seconds or less, and the users are used to slower responses than that on most application startups. As a programmer, if I publish an update, I want the users to be updated at a maximum of the next time it's executed, with minimal interference to them.
Here's what I've developed, but I can't figure out how to restart? Am I in the wrong event?
The following code is in Application.Events
Partial Friend Class MyApplication
Private Sub MyApplication_Startup(ByVal sender As Object, ByVal e As Microsoft.VisualBasic.ApplicationServices.StartupEventArgs) Handles Me.Startup
If ApplicationDeployment.IsNetworkDeployed() Then
If ApplicationDeployment.CurrentDeployment.CheckForUpdate Then
'How do I force restart?
'Application.Restart ---This isn't available?
#If Not Debug Then