Clickonce application doesn't restart after upgrade is complete
问题 I am using AppplicationDeployment class to check if upgrade is available and then upgrade the app like below Dim AD As System.Deployment.Application.ApplicationDeployment = System.Deployment.Application.ApplicationDeployment.CurrentDeployment Dim info As System.Deployment.Application.UpdateCheckInfo = Nothing Me.DialogResult = Windows.Forms.DialogResult.Cancel Me.Close() AD.Update() Application.Restart() // this doesn't work which is still ok. The restart doesn't work so I am trying to get