Problems with EXE's and stuff

Ok, simple problem but I'm just too stupid to get my head round this, I have created a project and created a manual updater for it so I can just create components and have them download as necessary, a live updater if you like:

The problem is that all is good until you download a .exe from the server, it then will open a quick dos cmd window, kinda not what I expected, I was hoping to just replace the existing file and restart the program. Have I done something wrong or am I just missing something right under my nose.

Kind regards,

A confused and tired Rob.



Answer this question

Problems with EXE's and stuff

  • borka

    have you considered one click as a deployment method


  • bob maskin

    Hi Ken, I did add the update program as a second project but couldn't find how to interact with it using my original program.

    Any idea how I can interact with the second project through the first

    Kind regards,

    Rob.


  • UncleSam89

    Been down the Updater route, program vastly complicated, far more than I perceived necessary for my requirements.

    I have the component built and ready to roll, it downloads the new version fine and works exactly as I need it to other than when it comes to downloading the .exe file, for some reason the file goes from 64k to 300k and no longer functions correctly as a winforms .exe

    How can I overcome this, without changing my component as this works as expected except with .exe files


  • AndreasSchuetz

    I would put the update in a zip file. When there is an update available I would start a second program to download the zip file, extract it, and restart my program.

  • Parboo

    Yeah, the application was originally click once but I wanted to move away from it to allow a custom installer as well as using a different strategy for update checking.

    I've been trying to get this update thing to download the new file versions correctly and have norrowed it down to the following:

    At some point when my app checks the running version against the server version it, or my code gets it wrong, downloads the wrong file and re-labels it the correct file name, I cant understand why though

    I will remove the file it is downloading incorrectly to see if it downloads the correct.


  • Spaccabit

    Most probably when you download the file, you downloaded the file in text mode and not in binairy mode. You could try renaming the file to *.bin or, you could force the connection to do a binairy transfer.

  • Gargi

  • Problems with EXE's and stuff