Use the search button in the future please.
Here you go :
https://www.mpgh.net/forum/33-visual-...er-vb-net.html
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.
Use the search button in the future please.
Here you go :
https://www.mpgh.net/forum/33-visual-...er-vb-net.html
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 don't believe in an afterlife, so I don't have to spend my whole life fearing hell, or fearing heaven even more. For whatever the tortures of hell, I think the boredom of heaven would be even worse." - Isaac Asimov
I can provide a webserver (Like wtfiwantthatname said you need)
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.... )
Last edited by NextGen1; 12-27-2009 at 11:19 PM.
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
Last edited by NextGen1; 12-28-2009 at 04:32 PM.
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!
Last edited by XGelite; 12-29-2009 at 10:33 AM.
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.
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