I'm trying to add an automatic update feature if there is a mandatory update for my application using something like this:

vb.net Code:
  1. 'Check for mandatory updates
  2.     Private Sub MyApplication_CheckForUpdateCompleted(ByVal sender As Object, ByVal e As Deployment.Application.CheckForUpdateCompletedEventArgs)
  3.         If e.UpdateAvailable AndAlso e.IsUpdateRequired Then
  4.             AddHandler My.Application.Deployment.UpdateCompleted, AddressOf Me.MyApplication_UpdateCompleted
  5.             My.Application.Deployment.UpdateAsync()
  6.         End If
  7.     End Sub
  8.  
  9.     Private Sub MyApplication_UpdateCompleted(ByVal sender As Object, ByVal e As System.ComponentModel.AsyncCompletedEventArgs)
  10.         If e.Error Is Nothing Then
  11.             MessageBox.Show("The application has installed a mandatory update and needs to be restarted.", "Update installed", MessageBoxButtons.OK, MessageBoxIcon.Information)
  12.             RemoveHandler My.Application.Deployment.UpdateCompleted, AddressOf Me.MyApplication_UpdateCompleted
  13.             Application.Restart()
  14.         End If
  15.     End Sub
My question is: how do I publish a mandatory version? I see no way of specifying when you publish that it is a required update.