Click here to Skip to main content
15,899,313 members
Please Sign up or sign in to vote.
1.50/5 (3 votes)
See more:
Hi

Please help me to figure out the approaches to create autoupdater for a console application.

Note: I neither want to use MS ClickOne nor any third-party tool.

I have downloaded one project "AutoUpdater" from codeplex which is fulfilling my requirements but I still looking for another best approach to develop it.

Apart from codeplex "AutoUpdater" logic, please share your knowledge and inputs!

With Best Regards
Varun Thakur
Posted
Comments
johannesnestler 8-May-15 6:33am    
why not click once - easy to configure and works - just wondering?

1 solution

An auto updater is prety complicated. I created such using Inno Setup Installer & a bit of C# code in my application.

The App downloads a txt from a website. The TXT contains the latest application version, and the download url.

Then the program compares the current Assembly version to the found version in the txt. If the version in the txt is bigger, then it downloads the new installer.

The installer after download is called via a Process.Start()

The installer does the rest of the updating.

In my opinion it's easier to use a pre made solution for this, or just use clickOnce
 
Share this answer
 

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