MSDN:Is there a reason this call is only made after registration? Why isn't it called before installation/registration also? I don't have experience with CoFreeUnusedLibraries, so I'm trying to understand its usage, but from the description it seems like you'd want to call it before installation/registration.
CoFreeUnusedLibraries
Unloads any DLLs that are no longer in use and that, when loaded, were specified to be freed automatically.
Thanks.