About 5 years ago I've used a Windows Freeware tool that was able to contain a Windows executable file in a on the fly virtual machine.
All registry writes were redirected into data files etc.
I need it again, but I forgot the name and googling for 30 minutes didn't help.
Maybe someone from you does know what software I'm talking about.