|
-
Jan 2nd, 2010, 11:08 PM
#1
Thread Starter
Banned
how to update a file in vb.net
hello guys i used to know a way of updating a file by adding some code in the form load and change the version of the file . and than you upload the exe to a site. but most sites now days dont allow to upload exe . is there any other way to update a file.
-
Jan 2nd, 2010, 11:24 PM
#2
Re: how to update a file in vb.net
If you're talking about uploading a file to a server then there are various ways to do it but they all pretty much amount to the same thing in the end. None of them are going to work if the server rejects the file though. That really isn't a VB.NET issue.
-
Jan 2nd, 2010, 11:25 PM
#3
Thread Starter
Banned
Re: how to update a file in vb.net
well im talking about puting an update code in my form so whenever i wanna update my program i can do it. but is there any other way like if the program downloads it directly from my computer, cuz the sites dont allow to put exe
-
Jan 2nd, 2010, 11:52 PM
#4
Re: how to update a file in vb.net
Then upload it as a zip, use a 3rd party dll (I recommend DotNetZip) to extract the exe, and update it that way.
-
Jan 2nd, 2010, 11:54 PM
#5
Thread Starter
Banned
Re: how to update a file in vb.net
i already knew that way, but i dont want to do it that way, is there any way i can link it lets says i put the updated file in my computer and than it downloads itself from my computer . there should be a way lol.
-
Jan 2nd, 2010, 11:57 PM
#6
Re: how to update a file in vb.net
If you want to release a patch then... generally you can't do that.
But people have been using plugins for these purposes.
To see how to make plugin based apps look here
As for the design part - make a 'host app' and design it so that even the main functional part would be a 'plugin' for the host app. Then you can update the parts of your app by simply distributing a 'replacement dll'. Not a perfect thing but you won't have to redistribute the whole package, but a single dll.
-
Jan 2nd, 2010, 11:57 PM
#7
Re: how to update a file in vb.net
Why don't you want to do it that way? It's the simplest way to do this. If you use your PC as a server for everyone else to download from, then you need to rethink your situation.
Is your application updated often enough to require an AutoUpdater? If you don't want to do it the easy way (that makes sense), then explain (clearly so others can understand) what you're trying to accomplish.
-
Jan 3rd, 2010, 12:02 AM
#8
Thread Starter
Banned
Re: how to update a file in vb.net
thanks citrix and formlesstree4, well im just learning, i dont wanna jump from simple updating to dll updating, which i have no idea, i mean im not an advance vb programmer. i did try the exe update in the past and it worked and sites allow to update, but i dontno why it doesnt work anymore. i wanna learn the simplest way . and the reason i dont wanna zip and send it to everyone. because im not gonna be in contact with everyone. this way its easier you just change the file version and it updates automaticlly.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|