Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Recommendations for clearing out ClickOnce deployment junk

Tags:

clickonce

.NET ClickOnce applications get deployed into a subfolder of C:\Documents and Settings\\Local Settings\Apps\2.0. In development we tend to make a large number of small changes and with regular deployments a lot of junk can accumulate into this folder. Surprisingly 'Delete Temporary Internet Files' does not remove old stuff from this folder. Does anyone know if Windows / .NET takes any steps to remove stuff from here or does it just go on accumulating. Thanks!

like image 829
Stuart Hallows Avatar asked Mar 03 '09 11:03

Stuart Hallows


People also ask

How do I remove ClickOnce?

To uninstall a ClickOnce application, users can go to the Control Panel and launch the "Add or Remove Programs" application. In the "Change or Remove Programs" section, users then select the application to uninstall and click the Change/Remove button.

What is ClickOnce deployment?

ClickOnce is a deployment technology that enables you to create self-updating Windows-based applications that can be installed and run with minimal user interaction.

Where are ClickOnce apps stored?

Every ClickOnce application installed on a local computer has a data directory, stored in the user's Documents and Settings folder. Any file included in a ClickOnce application and marked as a "data" file is copied to this directory when an application is installed.

What is .NET ClickOnce?

ClickOnce is a component of Microsoft . NET Framework 2.0 and later, and supports deploying applications made with Windows Forms or Windows Presentation Foundation. It is similar to Java Web Start for the Java Platform or Zero Install for Linux.


2 Answers

rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache
like image 112
William Avatar answered Oct 20 '22 21:10

William


Mage is a ClickOnce tool that comes with the framework sdk. The command...

Mage.exe -cc

...will clear out your application cache. You may have to search a little to find mage. Different versions of the sdk seems to install in different locations. On my machine it's located here, C:\Program Files\Microsoft SDKs\Windows\v6.0A\bin\mage.exe.

Another alternative is to use the publish option that makes your application available offline. You will then get an entry in your regular "Add/Remove Programs" that you can use to remove applications.

like image 26
codeConcussion Avatar answered Oct 20 '22 20:10

codeConcussion