Dear Team,
any can suggest to us how to Auto-update application via Online in C#
Regards,
Pratik Shirse
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Delpin Susai RajRank #53 · 29.5K reputationPosted Oct 15, 2016, 6:58 PM EDT
Francis SusaimichaelRank #466 · 5.4K reputationPosted Oct 15, 2016, 6:33 AM EDT
Pratik ShirseRank #3,199 · 449 reputationPosted Oct 15, 2016, 7:53 AM EDT
DearFrancis,
Delpin Susai RajRank #53 · 29.5K reputationPosted Oct 15, 2016, 6:59 PM EDT
#region check and download new version program bool bHasError = false; IAutoUpdater autoUpdater = new AutoUpdater(); try { autoUpdater.Update(); } catch (WebException exp) { MessageBox.Show("Can not find the specified resource"); bHasError = true; } catch (XmlException exp) { bHasError = true; MessageBox.Show("Download the upgrade file error"); } catch (NotSupportedException exp) { bHasError = true; MessageBox.Show("Upgrade address configuration error"); } catch (ArgumentException exp) { bHasError = true; MessageBox.Show("Download the upgrade file error"); } catch (Exception exp) { bHasError = true; MessageBox.Show("An error occurred during the upgrade process"); } finally { if (bHasError == true) { try { autoUpdater.RollBack(); } catch (Exception) { //Log the message to your file or database } } }Delpin Susai RajRank #53 · 29.5K reputationPosted Oct 15, 2016, 6:59 PM EDT