Letting the user create a portable Exe

BlitzMax Forums/BlitzMax Programming/Letting the user create a portable Exe

This program I'm writing lets a user pick multiple images and music and sequence them into a show for showing off to their friends.

Currently, the file structure that they have to work with looks like this:
mainprogram.EXE
Datafolder\
  image1.jpg
  image2.jpg
  image3.jpg
  image4.jpg
  image5.jpg
  song1.mp3
  song2.mp3

Is there a way to write a function in my program that allows the end
user to take all of those media files and wrap it up into a single
exe? That way, when they want to show off their slideshow, they just
have to worry about bringing along a single exe file, not a folder
filled with a bunch of media files.

Gman's ZIPEngine module might work.

http://www.gprogs.com/index.php?option=com_wrapper&Itemid=8

Can't add files into the EXE but you should be able to lump everything together into one additional file.

I don't think there is a way to build them into an executable along with the main program, but you can put them all in a single 'pak' file. There are some examples around the site, one of which is http://www.blitzbasic.com/codearcs/codearcs.php?code=2249 from the Code Archives. If you use this, the user will only need to distribute two files, rather than several.

You could use the exe's resource section to store the images, there is code to do it for BlitzPlus somewhere around here (should be a snap to convert it to Max).

Cool, but could the end user do it by themselves?

Oh, and thanks GFK. That looks like a good solution.

You could create an exe to do all the features using its own exe resources and incbin that, and when you want to make a portable app for viewing the images you just write the incbin'd executable to the HD and write all the images/config files to the exe's resources.

Cool, but could the end user do it by themselves?
Probably if you gave them a wizard to use..