ClickOnce deployment is leaving multiple versions (yes, more than two)

后端 未结 4 1343
醉酒成梦
醉酒成梦 2021-01-03 21:17

I\'ve got a ClickOnce application that is leaving all old versions on my disk. It\'s an internal corporate application that gets frequent updates, so this is a disaster for

4条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-03 21:52

    How to Delete

    Clear Click-Once (versioning) Cache

    From the docs:

    ClickOnce applications that are hosted online are restricted in the amount of space they can occupy by a quota that constrains the size of the ClickOnce cache. The cache size applies to all the user's online applications; a single partially-trusted, online application is limited to occupying half of the quota space. Installed applications are not limited by the cache size and do not count against the cache limit. For all ClickOnce applications, the cache retains only the current version and the previously installed version. By default, client computers have 250 MB of storage for online ClickOnce applications. Data files do not count toward this limit. A system administrator can enlarge or reduce this quota on a particular client computer by changing the registry key, HKEY_CURRENT_USER\Software\Classes\Software\Microsoft\Windows\CurrentVersion\Deployment\OnlineAppQuotaInKB, which is a DWORD value that expresses the cache size in kilobytes. For example, in order to reduce the cache size to 50 MB, you would change this value to 51200

提交回复
热议问题