This subject has been covered many times over the years and as such, as search with your friends (yahoo, google, ask, answers, bing) should provide you with some results...
Now, as for requesting a registration key upon installation you have many different choices on how to do this. There is the setup package that comes with VB, the PDW, which is customizable but it is outdated. Then there is the update for it, Windows Installer 1.1 (see pined thread on tips and tricks to find the link to download it from an archive site), which you can also customized with downloads from M$. Search M$ for Windows Installer SDK. Then there is Inno, wise, and a few more out there.
NOTE: If you decide to make alterations to the Setup1.exe project (found where VB is installed), I suggest that you make two copies of it. One for backup, and one for alterations.
Now, if you don't want to go with the setup route, you can go an easier way and that is alterating your project so when it runs the first time it prompts for the registration key...
Good Luck
vb5prgrmr
Posting Virtuoso
1,912 posts since Mar 2009
Reputation Points: 156
Solved Threads: 296