I don't have a step by step process, but I can tell you that the main thing will be to trace where the prog places the files and put them all in one folder.
Keep in mind that most of those portable programs still write entries to the disk but they put in a separate folder, so if you are truly using it for portable means you can look for those.