Hi, i have made a program and added a update check button.
If an update is available it lets the user know and if they click update a hidden webbrowser goes to the download address like:
Well this works and prompts the user with a file download dialog(default for windows)Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate("http://mydomain.com/myprogram.exe") End Sub
But say they have "myprogram.exe" on there desktop and try to save the new updated one there it will ask to overwrite and thats fine but the program is in use as they have click update.
Is there a way to do something about this ?
i tryed:
But it closed the form befor it poped up file download dialog. Yes i could use like a 3 second timer but some people internets are fast and some are slow so this isent really the best way to go.Code:Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click WebBrowser1.Navigate("http://mydomain.com/myprogram.exe") form1.close() End Sub
Any help on this would be great
Thanks




Reply With Quote