Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Geek Culture / did you incorporate a self update mechanism?

Author
Message
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 1st Aug 2011 01:52
I am still trying to figure out the best method, I do not want to release any software that doesnt self update... I have an Idea as to the process, heres my draft... I have actually made a working demo of it and it worked sorta fine...

APPLICATION100.EXE launches
ftp connects to check file for latest edition
downloads file to open and read
reads file and stores String to memory
closes file and deletes
reads string and compares to current exe
if same, breaks following script and launches into main program
if different
ftp connects and begins downloading new exe and files if not in a single exe
ftp proceed ^^
ftp disconnect
launches new exe
checks if new exe is running
ends self

kind of stuck there as to whether I should force the new exe to delete the previous.. eitherway any support in this would be greately appreciated.

Thanks In Advance {TIA - my way }

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 1st Aug 2011 02:07
I'd do it the minecraft way. Have a game launcher that already knows the last downloaded version. If the site says there's a newer version available, download and run it, if not, run the current version.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 1st Aug 2011 02:12
I would like to create my own, want to keep copyright and external 3rd party licencing to a minimum, but thanks for the input, that is plan B however ^^

this new copyright crap over software stuff and patents etc is driving me nuts... is there a central site to read up on the latest developments? I would hate to create the uber game of 2011 and then get shot down cus some guy went and patented some kind of mechanism I just happened to unknowingly replicate...

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 1st Aug 2011 02:19
You can create your own, I'm just saying use the same style of launcher as minecraft has.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 1st Aug 2011 02:25
I will be a frank as i could ever be...
I still have no idea as to how to play nor install nor find MC... so I have never used its launchers or pretty much anything of it... guidance? >.<

Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 1st Aug 2011 02:33
You need a premium account to play, so you'll have to go from my description of it.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 1st Aug 2011 02:40
argh pay to play, I hate it as much as the plague... however I might shoot myself in the foot one day so, hey-ho

Please do Describe...

Although I have got an idea.... ^^

create one application called 'LAUNCH-gamenamehere.exe'
which then goes through the search and download route or simply launches 'load'gamenamehere.exe'

I could incorporate a verification system in the launcher too... and check that the launcher is running while load is running ^^ ooo ^^

Jeku
Moderator
23
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 1st Aug 2011 02:54
What I do for MyGameSync is the following:

My app checks my remote MySQL database if it's the newest version. If not,
- execute the Updater.exe program
- Updater.exe closes the main app, then downloads the newest version from Amazon S3
- When it's finished, it launches the new app.
- When the new app runs it closes the Updater app.

There's probably a better way, like having the main shortcut to your app be, in actuality, the Updater.exe. That way it removes a whole step in the process.


Software Engineer - Metamoki
Indicium
18
Years of Service
User Offline
Joined: 26th May 2008
Location:
Posted: 1st Aug 2011 02:57
Pretty much what Jeku said, but including his improvement.

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 1st Aug 2011 03:03
without using complicated database usage... plus I have my own hosting to store stuff, dont like the idea of the cloud at present... as you dont own that space and its kinda scary to have files somewhere you have no control over almost.

but yeah THANKS FOR THE INPUT!!! more please guys

Jeku
Moderator
23
Years of Service
User Offline
Joined: 4th Jul 2003
Location: Vancouver, British Columbia, Canada
Posted: 1st Aug 2011 10:28 Edited at: 1st Aug 2011 10:29
FTP is about as insecure as it goes, but I guess it's better than nothing

I like Amazon S3 because you only pay what you use, and the data is duplicated across the world for fast access no matter where the user is located.


Software Engineer - Metamoki
MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 1st Aug 2011 16:27
yeah but that means your costs could spiral out of control...

umm how is ftp insecure, I heard this a lot...
please elaborate, I am listening

also looks like I got slapped regardless

MrValentine
AGK Backer
15
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 1st Aug 2011 16:48 Edited at: 2nd Aug 2011 08:35
urm I cant edit my last post, but just wanted to clarify my use of the smiley, I just like it more than ^^ I am a cheerful person so just reflecting my personality, doesnt mean I am being funny in anyway or cheeky... I didnt know it was considered devious on the forums as I saw others using it and took me a while to find it... [more] but, umm also about the 'I will be in other threads' bit I meant I will be looking for help not bumping, I am very serious about learning more in DBPro environment. So I will just post for specific help as new threads if that wont cause any anger... I meant no harm...

I could still do with how you created a database and got it to link to DBPro...


EDIT

in fact this simple aspect of my development process is holding me back from posting and creating content regarding my applications... I have a few apps made already just need to work out a solid future use update mechanism then i will begin to distribute applications and show screen shots and create websites for each one... but first obsticle first right?

Login to post a reply

Server time is: 2026-07-26 11:42:30
Your offset time is: 2026-07-26 11:42:30