Stefan
Stefan

Reputation: 144

Automatic update from clickonce application

I want an C# application which can be installed on someones computer and updates it self if a newer version is available. (The conection is only for this application is within one company)

If I install the application, change something in the code, publish it again it won't check if there is an new application available.

This are my settings: Assembly Information | Publish | Publish - Update

Upvotes: 1

Views: 1230

Answers (2)

it's me
it's me

Reputation: 331

Are you looking for updating clickOnce automatically when any new version is available in server? If yes, setting Minmum required Version to your latest version might help. Below link may help you

Making ClickOnce Updates Mandatory?

Upvotes: 1

user1489673
user1489673

Reputation:

The easiest way is to publish to an intranet website within the company. If they have multiple servers (e.g. load-balanced or standby), publish to one IIS site and copy/paste to the other servers - don't publish to each server individually as the application versions won't match. By default, IIS will stop the install setup EXE running so remove the EXE handler from the site's handlers - simply delete it.

Using this scenario, when a user runs the application it will check the website for a newer version (if they have access) and run with the old version if not, or install your newer version, if available.

You'll also find the published folders contain all previous versions - you might want to remove all previous versions before copying around the IIS sites

Upvotes: 1

Related Questions