Ticket Q451990
Visible to All Users

ClickOnce installer - how to install only changed files?

created 12 years ago

Hello,

I know my question is not a DevExpress Issue, but as you guys are the best support I know i hoped that you could help me out.
Nativelly i'm just a BI Systems Architect, not a real developper, so i'm a bit confused about ClickOnce deployment.
I have everything running fine, but my setup file is close to 70M.

Is there somewhere a DevExpress Document that explais how you could bundle the needed DLL's as a prerequisite so that the user doesn't have to install each time the complete stuff, only my changed EXE ??

Kind Regards…

Answers approved by DevExpress Support

created 12 years ago (modified 12 years ago)

Unless I am mistaken, if referenced libraries haven't been changed, ClickOnce won't copy them again across the network. It will copy them to the new version's folders from the ClickOnce cache instead.
Here is the quote from an MSDN article (http://msdn.microsoft.com/en-us/library/ms404267.aspx):
"ClickOnce uses the file version information specified in an application's deployment manifest to decide whether to update the application's files. After an update begins, ClickOnce uses a technique called file patching to avoid redundant downloading of application files.
When updating an application, ClickOnce does not download all of the files for the new version of the application unless the files have changed. Instead, it compares the hash signatures of the files specified in the application manifest for the current application against the signatures in the manifest for the new version. If a file's signatures are different, ClickOnce downloads the new version. If the signatures match, the file has not changed from one version to the next. In this case, ClickOnce copies the existing file and uses it in the new version of the application. This approach prevents ClickOnce from having to download the entire application again, even if only one or two files have changed."
If your installer behaves differently, I suggest that you refer to MSDN documentation or contact the Microsoft support team. I believe they will provide you with more detailed information regarding your task.
In any case, I hope my answer will be of help to you.

    Comments (2)

      just for curiosity, I use WCF Odata heavily. I'm so eager to get support from microsoft support team.
      is it free? how can I get wcf technical support? should I purchase a relative subscription?

      DevExpress Support Team 11 years ago

        Unfortunately, I cannot provide you with precise answers to these questions, because we are a separate company and just provide products for Microsoft Visual Studio. Personally, I would try asking questions on MSDN forums first. It has a quite big community, so its highly likely that somebody else encountered the same issue and will be able to help you.

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.