Creating an updatable Windows C # .net application

I create a Windows application and provide the installation package to the user. So now I need to fix some errors and provide users with a new version, but I do not want them to reinstall it. So how can I create a patch and distribute it?

+6
c # windows
source share
3 answers

ClickOnce will greatly simplify this installation / upgrade process. You may need to reinstall the application once through ClickOnce, but after that updates will be easily provided. Explanations are here .

+4
source share

Create a new installer that overwrites old files with new files. or consider using click deployment once

+1
source share

I did not use clickonce, but a couple of years ago I had to write something that would automatically update. I cannot find the code, otherwise I would post it, but this is what it did:

1) The main exe would look at the assembly and find the version.
2) If exe can connect to a public server, it will check and see if another assembly is available.
3) If the assembly was available, it will load it and start a new assembly
4) If the assembly is not available or has not been connected to the Internet, it simply launches a local one.

No user interaction is required for this.

0
source share

All Articles