Results 1 to 8 of 8

Thread: how to update a file in vb.net

  1. #1

    Thread Starter
    Banned
    Join Date
    Feb 2009
    Posts
    62

    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.

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    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.
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Banned
    Join Date
    Feb 2009
    Posts
    62

    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

  4. #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.

  5. #5

    Thread Starter
    Banned
    Join Date
    Feb 2009
    Posts
    62

    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.

  6. #6
    PowerPoster cicatrix's Avatar
    Join Date
    Dec 2009
    Location
    Moscow, Russia
    Posts
    3,654

    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.

  7. #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.

  8. #8

    Thread Starter
    Banned
    Join Date
    Feb 2009
    Posts
    62

    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
  •  



Click Here to Expand Forum to Full Width