How to update just one DLL in a ClickOnce installation?

有些话、适合烂在心里 提交于 2019-12-04 08:29:43

I have been fighting with this for a couple of days, it can be done but it's fiddly, With this solution ClickOnce still scans all files and shows the progress bar but only downloads and updates the changes.

Here is the process I have written to apply this patching method...

Note this process need to be carried on with an exact copy of the Click once deployment to be upgraded.

In the Application Files folder…

  1. open .exe.manifest using mageui (version 3.5 or greater assuming VS2010)
  2. Change the version number

  3. Replace the patched file(s) Note: files are renamed with the filename .deploy E.g. Control.DLL becomes control.DLL.Deploy

  4. Sign & Save the File with you PFX file

In the Root Path

  1. Open .application file using mageui (version 3.5 or greater)
  2. Change the version number
  3. Change the minimum required version number
  4. Select the exe.manifest modified above
  5. Sign & Save the File

Copy .application to Application Files folder* Note: This step is not strictly necessary, but just keeps the backup files relevant.

Manifest files and patched libraries can now be copied to your deployment environment.

I'm having the same problem here. I think you need to copy the specific file to the clickOnce folder. Edit the .manifest and .application files with MageUI. Advance the version number in both files. Not sure about this but the ClickOnce at client side is expected to download the file that was changed.

ClickOnce will determine the updated dlls for you, your clients won't have to download the full 150MB but only the updated ones. Only downside is you still have to upload all the 150MB.

I have a ClickOnce Application at my Customer that works that way, about 40MB always remains the same. No extra work required.

Assuming you are working in the live environment on the clients system you should be able to replace a dll by copying it over the previous dll in the installation folder. I think the location of clickonce installations on Windows XP is C:\Documents and Settings\userprofile\Local Settings\Apps.

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