Auto Updater C#

Hemanth B 886 Reputation points
2021-06-07T16:53:34.917+00:00

Hi, I created a calculator in c#. Now I want a create an auto updated that pops a message saying there is an update if there is an update available in the update website. And once the update is installed it should verify that the app is updated to the latest version available meaning that it should not again pop up with the same latest version. It should only pop up when there is a new version uploaded in the update website. I want to do it without ClickOnce. Please provide the code if possible. If it is not possible without ClickOnce then please provide the code for the one which uses ClickOnce

Developer technologies C#
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daniel Zhang-MSFT 9,651 Reputation points
    2021-06-08T03:02:39.937+00:00

    Hi HemanthB-9452,
    As far as I know, using click once is the most convenient and simple way. You can choose to check for updates before the application starts before publishing. If an update is available, it will be downloaded and launched; otherwise, the existing version of the application will be launched.
    103159-68.png
    More details please refer to this document.
    If you want to update the ClickOnce application programmatically, you must specify the update location. You can write code that uses the ApplicationDeployment class to check for updates based on events.
    Some code example has been provided in this document.
    Best Regards,
    Daniel Zhang


    If the response is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.