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

后端 未结 4 1335
醉酒成梦
醉酒成梦 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条回答
  •  梦毁少年i
    2021-01-03 21:35

    I think I've actually finally figured this one out. For some unknown (and unacceptable, frankly) reason, the cleanup of older versions will not happen if the newer version is running -- it just fails silently.

    The cleanup attempts to run as the old version exits, but because I restarted the app, the new version is already starting, blocking the cleanup.

    Also, note that the "scavenger service" mentioned in other answers appears to be a total fabrication. I've found no documentation of any such service, nor any evidence of it running. The cleanup appears to happen inline as part of the clickonce update process.

提交回复
热议问题