Hi,
so far I got wyUpdate doing what it should be as a replacement for my prior auto update component in my .NET 40 app. But there is one annoying thing left I discovered when doing "larger" updates.
From my app checking and downloading an update works, but after closing my app and starting the update process I get this annoying "close the following tasks" dialog from wyupdate.
Maybe in my code something is wrong, but I can't do more than closing my app to start the update:
public partial class Form1 : Form {
bool bUpdate = false; public Form1() { InitializeComponent(); }
private void Form1_Load(object sender, EventArgs e) { }
private void automaticUpdater1_UpdateAvailable(object sender, EventArgs e) { label1.Text = "Update available";
automaticUpdater1.Translation.Downloading = "Downloading updates...";
bUpdate = true; }
private void automaticUpdater1_BeforeChecking(object sender, wyDay.Controls.BeforeArgs e) { label1.Text = "Checking for Updates..."; Application.DoEvents(); }
private void automaticUpdater1_BeforeInstalling(object sender, wyDay.Controls.BeforeArgs e) { //MessageBox.Show("Installing..."); label1.Text = "Installing..."; }
private void automaticUpdater1_ReadyToBeInstalled(object sender, EventArgs e) { automaticUpdater1.InstallNow(); }
private void automaticUpdater1_CloseAppNow(object sender, EventArgs e) { Close(); }
private void automaticUpdater1_BeforeDownloading(object sender, wyDay.Controls.BeforeArgs e) { MessageBox.Show("Starting Download..."); }
private void automaticUpdater1_UpToDate(object sender, wyDay.Controls.SuccessArgs e) { MessageBox.Show("No Updates available"); } }
Whith the update component I used before this was never a problem.
Thanks!