how do i update my program automatically

Posts 1–15 of 16 · Page 1 of 2
how do i update my program automatically
how do i update my visual basic 2008 program automatically.
like so if they have it on there computer and its V1.2 and they have V1.1 when they press like a update button it updates it?
If possible.

If i need to be more clear just ask.
Host a webserver. Have it connect and download a log file with the current version. If the two versions dont match have it download the new one and execute the new one and delete the old one.
I can provide a webserver (Like wtfiwantthatname said you need)
Quote Originally Posted by Pixie View Post
I can provide a webserver (Like wtfiwantthatname said you need)


@NextGen1

ive never gotten that method to work
In VB.net (2008)

1. Open your program
2. Expand (or goto) your Solution Explorer
3. Right_Click the first item there (should be the name of your program)
4. Click Properties
5. Click the bottom button (Publish)
- this will allow you to change how you publish your software -
6. Tick (check) Automatically increment revision
- this will increase your version (.1) every time you save your program
- or you can manually do this as well, just be sure to do this, or the software won't update)
7. Click the Updates button to the right
8. tick (check) this software should check for updates
9. Choose before or after software loads (I prefer before, otherwise the user has to wait till it updates, then closes then restart the software, if it updates before, the user is ready to go when it starts.)
10. Make sure you have upped the revision
11. Click Publish Now, go through the wizard and include the domain (with hosting) you will be using to store the files where it says "this software will check for updates on...)
use an exisitng domain if you have one , just create a directory call updates or something (ex: yourdomain.com/updates)
12. Load CoreFTP (or your favorite FTP client) upload the files in your published folder (all of them)

Now when anyone opens your software, it will update as long as you remember to upload and overwrite files every time

I do not suggest you use the built in ftp Microsoft's has in place, I have personally had a lot of issues with it. (like updates not working, even though the files are there, when you manually upload, it seems fine)

Hope this helps

Edit: This seems alot longer then it actually is, its more then worth learning and understanding, and there is no reason for log files, VB2008 has it built in. (no offense to wtfiwantthatname, obviously the OP has little understanding about VB2008 , why use log files and host a web server.... )
Quote Originally Posted by Pixie View Post
I can provide a webserver (Like wtfiwantthatname said you need)
i would like if u did cause im kinda lost idk wtf a ftp server is let alone how to make one.


Quote Originally Posted by NextGen1 View Post
In VB.net (2008)

1. Open your program
2. Expand (or goto) your Solution Explorer
3. Right_Click the first item there (should be the name of your program)
4. Click Properties
5. Click the bottom button (Publish)
- this will allow you to change how you publish your software -
6. Tick (check) Automatically increment revision
- this will increase your version (.1) every time you save your program
- or you can manually do this as well, just be sure to do this, or the software won't update)
7. Click the Updates button to the right
8. tick (check) this software should check for updates
9. Choose before or after software loads (I prefer before, otherwise the user has to wait till it updates, then closes then restart the software, if it updates before, the user is ready to go when it starts.)
10. Make sure you have upped the revision
11. Click Publish Now, go through the wizard and include the domain (with hosting) you will be using to store the files where it says "this software will check for updates on...)
use an exisitng domain if you have one , just create a directory call updates or something (ex: yourdomain.com/updates)
12. Load CoreFTP (or your favorite FTP client) upload the files in your published folder (all of them)

Now when anyone opens your software, it will update as long as you remember to upload and overwrite files every time

I do not suggest you use the built in ftp Microsoft's has in place, I have personally had a lot of issues with it. (like updates not working, even though the files are there, when you manually upload, it seems fine)

Hope this helps

Edit: This seems alot longer then it actually is, its more then worth learning and understanding, and there is no reason for log files, VB2008 has it built in. (no offense to wtfiwantthatname, obviously the OP has little understanding about VB2008 , why use log files and host a web server.... )
im sure this will make more sense once i get started.
Heres a vid, Made it , took a few seconds, Hope it helps.

For Trevor206

Ill be honest, quality sucks, but can't expect much when I am not taking my time.

....just squint -,-

Edit: If it warrants, Ill take my time and make a HQ one. Just let me know
Quote Originally Posted by NextGen1 View Post
Heres a vid, Made it , took a few seconds, Hope it helps.

For Trevor206

Ill be honest, quality sucks, but can't expect much when I am not taking my time.

....just squint -,-

Edit: If it warrants, Ill take my time and make a HQ one. Just let me know
thanks for making it but i can't pause it can u just give me a download link to the original video file.(i mean the avi or wmv or w/e type it is).
Thanks
It will work 100% of the time, as long as there is a revision, and as long as you manually upload the files, maybe a setting or using the auto revision, try manually changing the revision, that may help, But one thing that is hard to get working is allowing VB to upload the files for you, It's a mess
Quote Originally Posted by NextGen1 View Post
It will work 100% of the time, as long as there is a revision, and as long as you manually upload the files, maybe a setting or using the auto revision, try manually changing the revision, that may help, But one thing that is hard to get working is allowing VB to upload the files for you, It's a mess
awww now i fixed it. YOu forgot to including something in your tut

YOu have to have all the folders uploaded to your site


You need the folder www.yourdomain/Updates/Applicationⓘ Files/ProgramName_revision/

and you have to have the .deploy extension!
Can't edit to include it, but thanks, thats what I meant by all files btw, All = every single one, I should have clarified, VB tries to do this for you and fails, big time.
Ill upload the avi to my server sometime soon,

Its uploading now, done in about 15 mins from the time of the post, it will be the same link, just download it.
Quote Originally Posted by NextGen1 View Post
Ill upload the avi to my server sometime soon,

Its uploading now, done in about 15 mins from the time of the post, it will be the same link, just download it.
i got everything up to the ftp part i don't have a website and using stuff like webs doesn't work.(i tried)
If you want users to download your updates, you need a website, use a free hosting company, it doesn't matter.

Google search X10 hosting

sign up, and upload your files to that server, use a free domain they give you like,
myvbapp.x10hosting.com

nobody needs to the domain, that should do it for you
Posts 1–15 of 16 · Page 1 of 2
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us