If i understood correctly, you are talking about SFX archives. This way, you can compress your setup (or program) and the reg file. When executed, this SFX archive will import the reg file to registry and copy your setup (or program) to a desired location. If this is what you want, make a search for SFX archives, there are guides on how to that with WinRAR and 7-Zip.