I would advise you not to reinvent the wheel and go with an existing, proven solution. While the auto-update client seems simple at first, it can easily become difficult and messy if you don't use different scripts from the start.
ClickOnce
ClickOnce has good built-in support in Visual Studio, .NET, and Windows, but you may also encounter security and deployment issues, especially if you use a self-signed certificate. Although I did not have any serious problems with this, many people feel bad about ClickOnce (but I still donβt know about the list, because what I read is usually not supported by specific technical details).
I would consider that ClickOnce would be acceptable for internal or small projects, but could not be controlled by a wider version, especially for several clients.
Protein
Squirrel is a free, open source installation and upgrade solution.
If you tried the Visual Studio code, you have already experienced what Squirrel installation and update is.
This is a one-click installation that expands to the data folder of the user's local application, so no administrative / UAC permissions are required. You can let it work using its default settings, or use your API for more control over the update process. And if you do not like some of its parts, you can always branch it and change it for your needs.
David moore
source share