Automatic Updates

Heres your chance to share your own tutorials with the community. Just post them on here. If your lucky they may even be posted on the main site.
108 posts Page 5 of 11
User avatar
CodenStuff
Site Admin
Site Admin
Posts: 4392
Joined: Tue Aug 04, 2009 1:47 am

Re: Automatic Updates
CodenStuff
Hello ChocolateUniverse,

Good to see someone making improvements to existing apps cooll; . I did originally have it coded into the main application like that but the problem was that I wanted to be able to download the update..replace the old version and then launch the new version automatically. The problem was that its not possible to delete/replace an exe if its already running so I created it seperately so that it can delete the main app and download the new version and then run it after its finished.

I should try update this tutorial aswell and go about it in a different way.
Welcome to CodenStuff.com Learn Code, Love Code. Thank you for being a member of the community.
User avatar
Insignia
VIP-Member
VIP-Member
Posts: 238
Joined: Thu Feb 11, 2010 5:15 pm

Re: Automatic Updates
Insignia
That's were Aleri's tutorial comes in;

viewtopic.php?f=38&t=954

You just exit the app and in the Form Closing event you let it execute the self-extracting archive which can run the app after finishing(Yes you can run it silent :D)
User avatar
Insignia
VIP-Member
VIP-Member
Posts: 238
Joined: Thu Feb 11, 2010 5:15 pm

Re: Automatic Updates
Insignia
Ok I fixed up the code it downloads the self-extracting archive as update.new and saves it as update.sfx.exe but when I try to start it it errors me and says Windows 64bit doesn't accept 16bit applications goofy;
User avatar
arno
Just Registered
Just Registered
Posts: 5
Joined: Wed Apr 14, 2010 7:34 pm

Re: Automatic Updates
arno
ooh nice nice im loking for this my hole life
User avatar
zachman61
VIP - Donator
VIP - Donator
Posts: 1892
Joined: Wed Dec 16, 2009 9:56 pm

Re: Automatic Updates
zachman61
this does not work for me it doesn't load my program which needs to update
Nailing my feet to the floor is easier than using my own muscles to balance, but you don't see me doing that :)
User avatar
Gamedaddy
Just Registered
Just Registered
Posts: 6
Joined: Thu May 06, 2010 8:16 am

Re: Automatic Updates
Gamedaddy
I hope this will work because I will try it.
User avatar
lawrence12
Dedicated Member
Dedicated Member
Posts: 73
Joined: Tue Mar 02, 2010 3:21 am

Re: Automatic Updates
lawrence12
nice one code!
User avatar
TrapInc
Just Registered
Just Registered
Posts: 7
Joined: Thu Jul 30, 2009 10:02 am

Re: Automatic Updates
TrapInc
Excellent! FINALLY!!!
User avatar
Codex
Coding God
Coding God
Posts: 2028
Joined: Wed Mar 31, 2010 5:50 pm

Re: Automatic Updates
Codex
I hope this works cause it sounds good. I have tried many tutorials on YouTube but haven't succeeded.
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
User avatar
Codex
Coding God
Coding God
Posts: 2028
Joined: Wed Mar 31, 2010 5:50 pm

Re: Automatic Updates
Codex
Umm... There is an error it automatically downloads the file in the
updatedownload.html
file. it doesn't check if it is a newer or same version in the
version.html
file...

Can anyone help me :?: :?: :?: :?: :?:
We shall let the revolution begin.. the revolution for freedom, freedom against censorship. We shall fight in the fields and in the streets, we shall fight in the hills; we shall never surrender
108 posts Page 5 of 11
Return to “Tutorials”