+ 28

Short "How to?.." Make self-updating app for newbies

After first attempt to do shadow-copy style update: https://www.sololearn.com/discuss/303362/?ref=app I decided to use Mega. Fine, now we have nice filestorage but, how to: Download files. Update app launching ONLY app itself??? Let's start with first task: here is code https://code.sololearn.com/cXl9uBUtLIr1/?ref=app it searches given directory by name and file in this firectory (again by name). Downloads it into current folder. Next task: update. First tracking versions (in example we'll use txt file)

10th Apr 2017, 8:24 PM
Illusive Man
Illusive Man - avatar
12 Respuestas
+ 23
That way it is easier to do. Comparing versions from our file and remote one. Rename exe we're running now download new exe and... what next? Download and launch "reloader". close this app, delete old exe, launch new one, delete "reloader". https://code.sololearn.com/c21OXY5GAbnn/?ref=app https://code.sololearn.com/cwpMo2s7xLdz/?ref=app Not ideal variant but at first you can use this one. P.S. How to get Json and MegaApiClient is in comments to "Mega File Downloader" code
10th Apr 2017, 8:30 PM
Illusive Man
Illusive Man - avatar
+ 21
@Manual yes, as an experiment))
10th Apr 2017, 8:39 PM
Illusive Man
Illusive Man - avatar
+ 20
That's next step)) Shadow-copying thread was an attempt to do that And "in place of VS" means?..
10th Apr 2017, 8:46 PM
Illusive Man
Illusive Man - avatar
+ 20
@Manual Thanks. About compilers: I have another one: Qt Creator but that's for c/c++ etc. And nope haven't tried it there... yet.
10th Apr 2017, 9:06 PM
Illusive Man
Illusive Man - avatar
+ 6
Ok I see. I mean have used it in a different compiler other than visual studio? ( not sure if it matters though)
10th Apr 2017, 8:54 PM
Manual
Manual - avatar
+ 5
I noticed that it is C#, did you use it in visual studio?
10th Apr 2017, 8:33 PM
Manual
Manual - avatar
+ 5
What else could you use in place of visual studio?
10th Apr 2017, 8:41 PM
Manual
Manual - avatar
+ 5
Its a great Idea and app made with C# that self updates.
10th Apr 2017, 8:42 PM
Manual
Manual - avatar
+ 5
Just throwing it out there. What if it could update itself mid use?
10th Apr 2017, 8:44 PM
Manual
Manual - avatar
+ 5
I would like to to keep seeing your progress on it. @Illusive Man Thank you for answering my questions
10th Apr 2017, 8:50 PM
Manual
Manual - avatar
+ 3
I learned a bit of git. Perhaps you can have your cide on git or your pc, and have the code auto sync to site. How? That is another story all together.
3rd Feb 2019, 12:32 AM
Manual
Manual - avatar
+ 1
Manual my progress on it so far was quite slow-ish, I maybe get back to that program. But probably I'll just start a whole new article cycle. Maybe even as a cycle on my website (that I have yet to make) :)
2nd Feb 2019, 11:57 PM
Illusive Man
Illusive Man - avatar