ClickOnce - Only updating changed files?

Administrator

VB.NET Forum Admin
Joined
Jun 3, 2004
Messages
1,462
Programming Experience
10+
Hello all,

Any ClickOnce experts out there? From my experimentation with ClickOnce deployment, no matter what changed, any time an update is published and the application updates itself, it downloads ALL files. I may have (exaggerated) 30 assemblies in my project but only ONE is changed, i.e. the main executable. How do we get ClickOnce just to download the changed file?
 
I don't think this is a feature of ClickOnce, you may have to create your own online update routine that checks for availables during application runtime.
 
The more I read, ClickOnce is only supposed to retrieve "changed" files. It may have been an error in how I published my update, not sure. I'll have to research further.

Thanks though!
 
Oops, you're right, from "Choosing a ClickOnce Update Strategy":
A ClickOnce application periodically reads its deployment manifest file to see if updates to the application are available. If available, the new version of the application is downloaded and run. For efficiency, only those files that have changed are downloaded.
I haven't looked into this myself, maybe you should have a deeper look into the manifest file to see what qualifies an updated file that will be downloaded?
 
I think this is possible through the click once API. You can pretty much customise any aspect of click once through there. I'll need to check into it though. I think it can be found in the System.Deployment namespace
 
Back
Top