Sure, there is a setup project template inside visual studio that you can use to create an installer for your application. It will set the location, IIS etc...
Unfortunatly, you cannot use an masterpage from another application. If you want to make this public and let others install your application. I'll go with the application and no virtual directory.