.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!
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.
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.
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.
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.
rundll32 %windir%\system32\dfshim.dll CleanOnlineAppCache
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With