ClickOnce update

I have created my project by clickonce technolgy, my project size is 10 MB,

My main EXE file is 8 MB,

now when I have to update small thing as an other refreneced file , the update should download all 10 MB again ...

that is a probelm because my project is going o be 40 MB,

Is there any soultion to download the small file changes

because EXe file need to download each time :(




Answer this question

ClickOnce update

  • Ashraf Gawdat

    I would need to know more about what type of projects are in your solution. You can email me directly if you prefer.

  • Placebo

    I do understand what you are saying. Click once just doesnt work the way you want. Please explain what is changing that doesnt effect the exe.


  • Sandeep Saxena

    I have projects work together to give u full functionaity, as, One for accounting, other for reprting .. etc



  • pg53

    The main reason is so the user can roll back an update installed with click once. There is also the possibility of the main exe crashing because it is seeing the wrong version of project2.



  • adam11235

    ok,

    example:

    I have Project1 - the main project - and project 2 is reference in projec1,

    now if ihave change project2 why I need to download project1

    I think it should copying localy right

    but this is not!!



  • Quilnux

    I think u have missunderstanding,

    I have no problem in update itself, but the problem is how to decrease download bytes

    The biggest file in most of the applications is EXE file, no for each update I need to download the EXE file even if I have not update it, because I build it each time when I'm publishing, that mean each updating will download the last build for EXE!!

    now how can I prevent EXE file to download or update if it is not has changes

    Got it



  • Dinesh Chandnani

    Click Once downloads the application and stores it in a directory. When there is an update it creates a directory for the new version and updates the short cut to use the newer version. If you roll the version back in the add remove programs points the short cut to the older version. So it wont work the way you want.

    You will have to create your own method of doing this. I would have a database or webservice which tells the latest version number of the app and where to download the update. If there is an update available process.start a update program and close the main application. Have the update application download the update, install it and then restart the main program.


  • Lazo

    Can u suggest any solution to minimize the download bytes

  • liangguotx

    There is an option download updates in the background.

    See Choosing a ClickOnce Update Strategy for more info


  • polejnik

    no it is not

    it is One application has many exe file talking together

    that is all



  • TimL

    From your message in the other forum it looks like you are using remoting to communicate between applications. If you are using this in company network I would try and place as many of the components it communicates with in a central network location. This way if there is an update to the accounting piece for example you have only have to load the update on one computer.

    Billy Hollis did an session on loading forms on the fly at user group meeting I went to. He broke the application into several parts. Each part started off as a windows application. Once the part was complete he converted it to a dll by changing the project type to class library and recompiling. The main program displayed a list of the parts and would load the parts on the fly with activator create instance. Here is a link to an example he made. My tought here is that you could have the main program check for updates to the dlls and download them as needed. I would only deploy the updates to the main program with click once.


  • Beerwolf

    I'm asking about how to prevent exe file to download each update times

  • ClickOnce update