Whats the best way to create a auto update solution for my WPF C# App?
Im creating a simple alarm application which uses PNRP to send and recive alarms over the local network. Now Im planning och implementing some auto update for this application and have looked at a few existing solutions.
The following is the requirements of the app.
- It needs to allow network traffic in the Windows firewall for the executable file
- It needs to put a shortcut in the Startup folder
- It needs to be installed for everyone开发者_Go百科 on the computer
This are the three primary requirements for the app.
So whats the best solution?
You may want to have a look at a library I wrote and released as open-source to do just that transparently - including an external update application to do the actual cold update. See http://www.code972.com/blog/2010/08/nappupdate-application-auto-update-framework-for-dotnet/ and http://www.code972.com/blog/2011/06/some-updates-on-nappupdate/ for a sample of custom usage.
The code is at http://github.com/synhershko/NAppUpdate (Licensed under the Apache 2.0 license)
精彩评论