Could someone please guide/help me here. Ive created a class to call a ClickOnce update from. This code doesnt work and wondered if someone could shed some light here:
Heres the code
Public Function ClickOnceUpdate() As Boolean
Dim update As Boolean = False
AD = ApplicationDeployment.CurrentDeployment
Try
If AD.CheckForUpdate() Then
AD.Update()
Else
update = False
End If
Catch ex As Exception
End Try
Return update
End Function
I create the form code then publich this app. If there are no updates sent to the server the application crashes, if there is an update then the application does NOT update. Could someone help with this code please? Ive looked at the video on MSDN and cant still work it out??
Second: How or what do i need to update MSI applications? I have developed some applications created an MSI and now i would like these updated too. What class would i need? Any examples/videos on this?
Thanks in advance for any help.