Self-extracting customly compressed file

Tag: compression , self-extracting Author: sm107 Date: 2013-10-13

Suppose I make a (de)compression algorithm. Using the program, I can compress a file to a smaller size, or decompress a previously compressed one. How could I make a compressed file self-extracting, i.e. decompressible without the need of my program?