Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clickonce leaving behind files after upgrade

In short:

Clickonce is deleting some old files on upgrade but not all of them, its leaving behind all my content data that's included in the publish and only deleting the compiled app data inside the folder. How do I setup the deployment so that it deletes the content (images and shape file) too?

Detailed:

I have a winforms application that requires images and mapping shape files to be included in the deployment, and we are deploying the application using clickonce.

Clickonce itself is working fine - the files are copying the way they are meant to be and in the correct location, but for some reason, even after clickonce cleans up the earlier versions and deletes the previous application's data from disk, the mapping data and images are left behind in the folders still, and as the mapping data is about 800mb, id really like for that data to be cleaned up too or it will be adding 800mb of extra data everytime a new version is downloaded.

the files themselves are set to "Content" in the build action property if that makes any difference to how clickonce handles its cleanup processes.

Thanks

like image 759
anthonyvscode Avatar asked Dec 09 '11 00:12

anthonyvscode


1 Answers

Is it possible that these files were included manually (as 'include' or 'data file') under Project Properties > Publish > Application Files?

like image 103
AMissico Avatar answered Sep 28 '22 22:09

AMissico