Tell me, here I’ve been torturing VS for a long time, but I still don’t understand how to make the program just check on http://site.ru/www/program.exe
, that if the version 1.0.0.0 prog means you don’t download the update, if 1.0.0.1, then download the update before launching the program (the update is downloaded to the folder where the old exe is located). Without setup'ov, the updated .exe file is just downloaded. Wow, I think you understood what I meant. )
|
1 answer
Put next to the executable file on the site, say, a text file in which you write the version. When you start the application, download this file, check what is written there, and if it is “what you need”, download the new executable file by reference, if it is the same as in the current file, then the program passes to the user without downloading the new exe .
But, as far as I can imagine, your final application will be launched from another one, which will be the loader of the new version. those. First, the bootloader starts, checks what is on the site, if there is a new one, then downloads, replaces and launches, if old, launches the existing exe.
- you probably did not understand, I don’t need to write this, VS already has such a function, there are just a lot of them there (for publication), and I’m confusing them ... I can’t figure it out. - Angus123
- hmm understandably. then, alas, I can’t help with the choice, because VS has worked for a long time and quite a bit. Yes, and even so it is. in the sense of how to read information about a file lying on a server without downloading it ... maybe I don’t know something, but I think it is impossible. - Johnny_Stray
- Yes, that's it. But because there are a lot of settings, I'm confused. - Angus123
- Usually update systems work as indicated by @Johnny_Stray. Separately, there are the program files, a separate update database. The program on the client browses the database and, if a new version is released, download it and install it. How else can I not imagine. - skegg
|