Tried that a few times. Never succeeded. Gave up trying to do it.
Some stuff I have is one .exe file, works, and can be copied around ad lib. It asks for its activation code first time it runs, adds that into the registry, and works.
I suppose the catch is that anyone could make illegal copies and activate them, but then if they're determined enough...