I do not know either of them
What I usually do is open the References dialog, and I start unchecking libraries one per time, and every time try to compile the app. If the application does not compile, add the reference back.
For the controls is much easier, because
VB will tell you if you uncheck a control that is in use.
The installer should install only the libraries and controls that are referenced.
I do this often, because is not uncommon, especially in big applications, that some component gets obsolete. There are third party components that do this job automatically, but I do not find it worth the money.
Marco