//flex table opened by JP

Click to See Complete Forum and Search --> : Embedding files in .EXE's


CompGeek01
01-26-2004, 01:19 AM
Hey, I was wondering if anyone has ever tried embedding files with Java (or possibly C++) into .exe's.

I'd like to have an executable with files (like system settings and stuff for backup and maybe even more advanced things down the line) in it that it can unzip to different locations. I've looked through java.util.zip.....but it really requires the files to be seperate.

I've heard you can do it with different compliers maybe? I'm using Eclispe atm with VS6.0 being used some too....

Anyone?

fishybawb
01-26-2004, 09:21 AM
Are you talking about having resources (icons, bitmaps etc) being embedded within the executable, or some kind of end-user installation .exe? VC++ can handle the former, for the latter you could try using a WinZip self-extractor or something... I have the feeling I'm completely missing what you're actually after :D

CompGeek01
01-27-2004, 06:37 PM
Right, that's because I don't really know what I'm after. LOL

Ok, here's the hidden project. I'm needing a Java project for some extra practice in my classes. Someone suggested an installer of sorts...but packaged into one file.

For example..I could have all of the Seti@Home and SetiHide files and configuration in a GUI and when the user completes the forms it would custimize the files and then extract them to the desired directory. All much less complicated in Java than in C++ (well..I know the GUI is LOL).

I don't want to have a Setup program and a bunch of data files unless I'm forced to. But I also don't want to make a WinZip file...becuase I'm trying to make something LIKE a simple WinZip self-exectuting file with options. Now it's begginning to sound more complicated......but I like that heh.

*EDIT*

The more I think about it...i'm prolly just gonna go with the installer in a zip...much easier..

-B

fishybawb
01-28-2004, 05:34 AM
Here are some freeware installers that you might find useful - they use scripts to copy files to the right directories:

http://www.freebyte.com/hjinstall/
http://www.tucows.com/preview/287992.html
http://www.newfreeware.com/development/353/

Not free, but looks good:
http://thinstall.com/help/index.html?welcometothinstall.htm

:t