Results 1 to 12 of 12

Thread: Updates?

  1. #1

    Thread Starter
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089

    Updates?

    How do I make updates for my program. Say for an example - My SimpleUtility has say 5 forms and 1 module. I distribute this utility.

    Now I make some changes in say form2 thats it. I want to distribute this "new" (or updated) thing to my previous customers. What I

    do currently is make a new exe and send the entire thing to my customers. Which I think is not professional. I just want to send a

    small updated file which would do the corresponding changes in the main file. (Like we have it for our messengers.)

    I hope someone has done this and can guide me. I think this is very important thing for we developers to know. Kindly help me.

  2. #2
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    You may only send them your new EXE... you don't need to send the whole installer again. All the controls and libraries you've already shipped will be still installed on their machine.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  3. #3

    Thread Starter
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089
    First of thanks for the reply.

    But even the exe is of huge size whereas the form which I have changed is just 9 kb whereas the exe is 210 kb. Thats what id od not like the new update shd be lesser than the original exe.


  4. #4
    Hyperactive Member FUBAR's Avatar
    Join Date
    Jan 2000
    Posts
    307
    i dont think there is a way to change the exe, just because vb is such a screwy language, adding 1 form in vb is simple, but the compiler actually does a whole bunch more work that you dont need to do, like draw the form, add the properties, refernce that there is a new form, im not that expierence in vb, but im while to bet there isnt a way to do it because if you change 1 line of text, its gonna change the entire file, just because of the way the compiler well, "compiles" it

    sorry bro, but unless anyone argues with me, thats probly that

  5. #5
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765
    210kb isn't a bad size. Microsoft would love to give out Updates that small
    Don't Rate my posts.

  6. #6

    Thread Starter
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089
    Guys,

    I just gave you an example for that thing.


    What i meant was say the main installable file is of 4.5 Mb then the update file is just 300- 400 kb and not the size of the main exe which may be around 800kb . There might be some technique how it is to be done.

  7. #7
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    Originally posted by veryjonny
    First of thanks for the reply.

    But even the exe is of huge size whereas the form which I have changed is just 9 kb whereas the exe is 210 kb. Thats what id od not like the new update shd be lesser than the original exe.

    I can guarantee that you can get a 210 KB (or similar) if you zip your EXE and send it copressed. I don't think you will be able to create simple "patches" for your program. The easiest way would be creating a DLL... but with C/C++. I guess ActiveX DLL won't be of any use.

    Create a DLL with these functions and subs that could get updated and whenever you need... send to everyone the new DLL.

    Again... ActiveX DLL won't be of any use, I guess.
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  8. #8
    Member DDfunbags's Avatar
    Join Date
    Aug 2001
    Location
    Isle of Wight, England
    Posts
    50
    The main reason why messangers (or any other commercial app) can be updated with a small file is because a bulk of their code is held in numerous DLLs. The main EXE is usually tiny and does very little (eg. MSM is only 700 or so bytes). Another reason could because of all the bloat that VB come with

    If you really wanted to make your EXE really small then you would probably have to take this approach. I can't imagine it would be not be too difficult, just build build all you code in seperate DLLs and use LoadLibrary (or whatever you do in these situations).

    When u build your forms, just load in the DLLs and pass all the events over to them.

    Just an idea
    I ain't the best coder,
    I ain't the worst coder

    Messanger Handle : FBz

  9. #9
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I had some problems when created ActiveX DLL. The EXE seems that doesn't like to be compiled before the DLL. I mean, if you compile your DLL and then your EXE, it will work. If you update your DLL... your EXE will stop working. Until you overwrite it with a newer EXE (compiled after the DLL).

    Those were the problems I had... so that's why I said: "ActiveX DLL won't be of any use, I guess."
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  10. #10

    Thread Starter
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089
    Well if that is the case, I just hope you guys are not misleading me. pls. do not mind my saying this, its just that I am not completely satisfied.

    But Thanks a lot for taking out to reply.

  11. #11
    Need-a-life Member Mc Brain's Avatar
    Join Date
    Apr 2000
    Location
    Buenos Aires, Argentina
    Posts
    6,808
    I'm not completely sure, but that's a problem I had each time I re-compiled my DLL .... I had to recompile the EXE. This means that you need to send the final user the new DLL and the new EXE.

    Anyway, I don't think C/C++ 's DLL would have this problems. You might check that up and write your DLL in C... as if it were that easy
    Emiliano F. Martín


    If a post has helped you then please Rate it! (and give the user points he/she deserves by clicking on the image).
    Encourage the person who helped you to keep doing it, and give him the points he deserves.


    MP3 Organizer: Freeware to logically organize all your MP3s.

  12. #12

    Thread Starter
    PowerPoster
    Join Date
    Nov 2001
    Location
    Trying to reach and stay in the cloud
    Posts
    2,089
    C

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