adding code to on.click event

Hi how can I start the autoupdater on a click event I am using vb.net 4 vs2010

thank you

M

Do you mean instead of using the menu? Here's what you should do. First, read the step-by-step walktrhough. Then read how to add the AutomaticUpdater to your app.

Lastly, we talk about using the AutomaticUpdater with something other than a menu on this forum topic.

Tell me if this helps.

Hi I created this based on the info from the other post

Private Sub RadMenuItemUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadMenuItemUpdate.Click Select Case AutomaticUpdater1.UpdateStepOn Case UpdateStepOn.Checking, UpdateStepOn.DownloadingUpdate, UpdateStepOn.ExtractingUpdate

AutomaticUpdater1.Cancel() Exit Select

Case UpdateStepOn.UpdateReadyToInstall, UpdateStepOn.UpdateAvailable, UpdateStepOn.UpdateDownloaded

AutomaticUpdater1.InstallNow() Exit Select Case Else

AutomaticUpdater1.Visible = True AutomaticUpdater1.ForceCheckForUpdate() Exit Select End Select End Sub

I created a new project in wyBuild I added the two files to my project when I hit checkupdate I get this error

wyUpdate ended before the current update step could be completed.

if I run the wyUpdate.exe it tells me my software is up to date?

I was using

Private Sub RadMenuItemUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles RadMenuItemUpdate.Click ' If AutomaticUpdater1.Visible = True Then ' AutomaticUpdater1.ForceCheckForUpdate() ' Else ' AutomaticUpdater1.Visible = True ' AutomaticUpdater1.ForceCheckForUpdate() ' End IfEnd Sub

which was working fine but not anymore any idea what wrong

I'm not sure I understand. You have 2 event handlers named the same thing. Add a breakpoint to the function and tell me which function is running.

Also, are you using wyUpdate 2.6.14 and the AutomaticUpdater 2.6.14