Clear the .NET-downloaded application cache without Mage?

喜欢而已 提交于 2019-11-27 09:20:23

问题


I have a .NET application that I distribute using ClickOnce and I make available online only. How do I clear the download cache from a users' machine that doesn't have Visual Studio installed?


回答1:


Visual Studio isn't needed, just Mage. It comes with the Windows SDK for people that haven't gotten it via Visual Studio or the Framework SDK.

Another option would be to write code to clear the cache. Or you could have them delete the folder ClickOnce files are installed in (C:\Users\[username]\AppData\Local\Apps on my Windows 7 machine). That would be a last resort since it will remove every ClickOnce application they have installed.

You don't have to have Mage installed to clear the cache; running rundll32 dfshim CleanOnlineAppCache from the command line accomplishes the same thing as mage -cc.



来源:https://stackoverflow.com/questions/2418542/clear-the-net-downloaded-application-cache-without-mage

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!