Click here to Skip to main content
15,886,019 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I'm currently working on WPF .NET Application with C# . We frequently release updates and for each update , we have to send the new setup.exe file to our production team. They install that newer version of Application every time, which is not a good approach.
I've heard about OTA Updates feature in Android. Where we can remotely update any Android app by using Internet Connection.
I want to know if somebody help me on this, Is there a way to do the same OTA thing implement in .NET Applications?

What I have tried:

I've found few solutions but they are not easy to implement and most them are very old . One of them is ClickOnce setup in visual studio but this does not looks like a good solution for that thing too.
Another is winSparkle which is also not easy to configure.
Posted
Updated 13-Feb-18 2:40am
v3
Comments
Ziee-M 13-Feb-18 7:19am    
Creating a simple update system is not really hard, here is an example : https://gist.github.com/sbrl/7709dfc5268e1acde6f3
This project allow you to update only your .exe, and this is probably suffisent.
You can extend & add your own logic.
For example, in your server, you add a file that holds the versions, and client app check the last version, if not the same lauch the download and replace the .exe file.
In the other hand, if you want to create somthing more complicated that download a lot of file, that will take much more time, and i suggest you to use a ready to use solution.
Ammar Shaukat 13-Feb-18 8:17am    
Actually we don't have only exe to update , there may be other files too. Can you share some Ready to use solutions for .NET ?
David Crow 13-Feb-18 12:07pm    
Does this affect what you are trying to do:

"OTA updates are designed to upgrade the underlying operating system and the read-only apps installed on the system partition; these updates do not affect applications installed by the user from Google Play."

You could try Squirrel: [website]
Quote:
It's like ClickOnce but Works
 
Share this answer
 
Comments
Ammar Shaukat 13-Feb-18 8:55am    
you can share a good resource to know its working
RickZeeland 13-Feb-18 9:28am    
No, but maybe you can check the issues forum on GitHub to see if there are any problems with it.
Richard Deeming 13-Feb-18 9:49am    
I use it, and it works.
We use ClickOnce and it works well. I have written an article on it: Silent ClickOnce Installer for Winform & WPF in C# & VB[^]
 
Share this answer
 
Comments
Ammar Shaukat 13-Feb-18 8:54am    
Previously we are using Visual Studio Installer Project to deploy our apps. Is it possible to Deploy app using that Installer and Later update it using ClickOnce ?
Graeme_Grant 13-Feb-18 9:12am    
No, not that I can see. It is either one or the other.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900