Dear All,
Does anybody knows how to simply update my application by installing a patch or manual update?
I did some project with ClickOnce Deployment and it is useful for updating the application inside the PC where the code is being compiled. But....how to do manual update to the application? I intend to do this offline, so it doesn't require the PC to be connected to the internet.
Any idea?
Thanks in advance
E

1 answers
I'm not sure that trying to update a 'ClickOnce' application manually is such a good idea because, as well as replacing the old assembly with the updated one, you'll also need to grapple with the two XML configuration files, namely the Application Manifest and the Deployment Manifest.
Even if you can figure out what needs changing in these files, then the updated versions need to be re-signed.
As it says in the first link: "If you change an application manifest manually, you must use mage.exe to re-sign the application manifest, update the deployment manifest, and then re-sign the deployment manifest."
Incidentally, as .NET assemblies contain both metadata and MSIL (as opposed to native code), it's not really feasible to 'patch' them in the sense of making direct changes to the executable file itself - it's best to simply replace them in their entirety.
answered one year ago by:
17279