Windows Develop Bookmark and Share   
 index > ClickOnce and Setup & Deployment Projects > ClickOnce - More Than Two Versions
 

ClickOnce - More Than Two Versions

ClickOnce only sees two versions of each application, which is as it should be.  Then when we look at the folder structure there are more than two versions of some of the applications still living on the machine.  Has anyone else run across this problem?  This is eating up the users profile space on the virtual clients.
Paradragon  Thursday, October 08, 2009 12:09 AM
Make sure you're really seeing multiple versions of the same application.  There are usually at least two folders with each version.

If you are pushing out updates, and the user is installing them, and you're not doing a lot of uninstall/reinstalling, it should be able to keep up with it. We sometimes see multiple versions when we're doing a lot lf uninstall/reinstall/updates in a row.

Have you considered pushing the app as a required update and seeing if it clears the older versions?

RobinDotNet
Click here to visit my ClickOnce blog!
Microsoft MVP, Client App Dev
RobinDotNet  22 hours 51 minutes ago

Or if your application is an online application, you can try reduce the cache quota: ClickOnce Cache Overview

Regards,
Jie
MSDN Subscriber Support in Forum
If you have any feedback on our support, please contact msdnmg[at]microsoft.com


Please remember to mark the replies as answers if they help and unmark them if they provide no help.

If you have any feedback, please tell us.

The CodeFx Project
My Blog (in Simplified Chinese)
Wang, Jie  20 hours 31 minutes ago

Thank you RobinDotNet and Jie for your quick response.  The applications are all offline and there are definitely multiple installations.  In my test I installed the application five times, no uninstalls, and there were five directories with the executable and full collection of dlls. 

 

I have not tried the required install.  I will give that a test and let you know how it goes.  

Paradragon  13 hours 36 minutes ago

The required version did not work.  The term server still continues to save all the previous versions.

Paradragon  11 hours 53 minutes ago
The cleanup of older versions of click once is up to the framework itself.

You can manually force the cache cleanup by doing a 'mage.exe -cc' on the target machine.  -cc for clear cache.

If this doesn't work than I would suggest looking closely at the directories.  Each click once install has a directory for the manifest and a directory for the actual files.  If you have strong named files, then those are treated as their own directories (as in log4net.dll), as kind of a click once gac.

DDarwin
DDarwin  7 hours 36 minutes ago

You can use google to search for other answers

Custom Search

More Threads

• Assembly physical location after Publishing
• How to change icon of msi installer package in vs2008 and change user interface screen after creating package for c# projects
• Have problem when add MSTSCLib in ClickOnce, fine under 2003, but not XP/SP2, please help
• File installation - condition evaluated recursively
• COM Exception during Click Once Deployment
• VS2008 - how to set conditional based for shortcut?
• MSI doesn't always call commit?
• Sign manifests in code without mage
• Merge Modules For Different versions
• Click Once Concerns With Full Blown Application