How to ADD/EXTRACT files to a .Res file [RESOLVED]-VBForums
Results 1 to 3 of 3

Thread: How to ADD/EXTRACT files to a .Res file [RESOLVED]

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Talking How to ADD/EXTRACT files to a .Res file [RESOLVED]

    I need to know a little more, how do i add files (my .exe and its dependencies) to a .Res file... and then how do i add that .Res file to another .Exe file that can UNPACK the files from the .Res file and run them...
    So that I can send my users ONLY one .Exe file.... ??

    I've read up on the forum,but not found a good/understandable/working explanation...

    So i need to know:

    -How to make the .RES file in VB6
    -How to add .EXE and .OCX/DLL to it
    -How to pack that .RES file into another .EXE and have that .EXE
    unpack the files that were packed in the .REs file,and then run the .EXE it just unpacked...

    Can anyone please explain that,since a lot of you seem to know how to do this... ???
    Last edited by alexdata; Jan 12th, 2004 at 09:56 PM.
    ***************
    Please use [highlight=vb] ..your code.. [/highlight] when posting code!

    When you have received the working answer to your question,
    please mark it as *SOLVED* + Your Questions Title ...using your Thread's Tool menu.


    Also try to point out what answer made it work for you, or edit your first post to contain a quote of the correct answer...

    Please Answer All Questions With Working Code Examples...


    My Unfinished Projects and My working Programs
    ***************

  2. #2
    Only Slightly Obsessive jemidiah's Avatar
    Join Date
    Apr 2002
    Posts
    2,373
    I believe the heart of your post is asking for a single .exe as your setup file/program. Everything in your post can all be done, of course, though it already has been. http://www.innosetup.com/ is a completely free (even for commercial use) setup program that not only puts everything in one file, but also compresses it using the equivalent of .zip compression. Hope that helps
    The time you enjoy wasting is not wasted time.
    Bertrand Russell

    <- Remember to rate posts you find helpful.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2001
    Location
    www.alexdata.com
    Posts
    484

    Wink Here is what i found and made working

    Hm... i could use the inno thing,but i managed to get this code working
    Here is an example Source Code with an pre-made .RES file

    When you compile it (or run the source) this program will
    unpack two pictures from the RES file and into the folder you run the (compiled) source from...

    This one unpack the files as BINARY files, so if you have added stuff like OCX and DLL and EXE and WAV and so... it will decompress (unpack) and the files will work...

    It also shows how to unpack two different files from a .Res file...

    So this should be all you need, almost,...

    Ofcourse, after unpacking these files you could add code to RUN/PLAY your .EXE or .Wav... or to show the pictures,....


    PS: learn more about the RESOURCE EDITOR in VB6 in this post:
    http://www.vbforums.com/showthread....o+resource+file
    how to use it,make it appear in the menu's and so)
    Attached Files Attached Files
    ***************
    Please use [highlight=vb] ..your code.. [/highlight] when posting code!

    When you have received the working answer to your question,
    please mark it as *SOLVED* + Your Questions Title ...using your Thread's Tool menu.


    Also try to point out what answer made it work for you, or edit your first post to contain a quote of the correct answer...

    Please Answer All Questions With Working Code Examples...


    My Unfinished Projects and My working Programs
    ***************

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Featured


Click Here to Expand Forum to Full Width

Survey posted by VBForums.