AngryHacker
AngryHacker

Reputation: 61606

How does a ClickOnce application know where to check for an upgrade?

I have a ClickOnce application that is set to "Online Only". In other words, the .appref-ms file does not come down to the client (this file carries point-of-origin information).

However, the ClickOnce application uses the System.Deployment.Application.ApplicationDeployment class to check to see where there is an update available.

How does the application know where to check for an update, if the .appref-ms file does not come down to the client?

Upvotes: 2

Views: 652

Answers (2)

Arthur P
Arthur P

Reputation: 1060

cdf-ms files and executable manifests are going to a client anyway. When ClickOnce launches, the manifests are telling it where it can get updates from.

They are in C:\Users\USER_NAME\AppData\Local\Apps for Windows 7 and C:\Documents and Settings\USER_NAME\Local Settings\Apps\2.0 for earlier versions.

Upvotes: 1

Teoman Soygul
Teoman Soygul

Reputation: 25732

Check registry: HCU > Software > Microsoft > Windows > Uninstall > #yourappid# > UrlUpdateInfo

Upvotes: 3

Related Questions