+ 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)
13 Réponses
+ 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
+ 21
@Manual yes, as an experiment))
+ 20
That's next step)) Shadow-copying thread was an attempt to do that
And "in place of VS" means?..
+ 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.
+ 6
Ok I see. I mean have used it in a different compiler other than visual studio? ( not sure if it matters though)
+ 5
I noticed that it is C#, did you use it in visual studio?
+ 5
What else could you use in place of visual studio?
+ 5
Its a great Idea and app made with C# that self updates.
+ 5
Just throwing it out there.
What if it could update itself mid use?
+ 5
I would like to to keep seeing your progress on it.
@Illusive Man
Thank you for answering my questions
+ 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.
+ 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) :)