With the Visual Studio Setup Project, you can use the [TARGETDIR]
variable when creating your registry key.
This variable is automatically set to the target directory that your application is being installed into, simply append your .exe
file to the end.