Tlbimp.exe can handle the type library resource inside an EXE just fine. For instance:
C:\temp\temp>tlbimp c:\windows\system32\wiaacmgr.exe Microsoft (R) .NET Framework Type Library to Assembly Converter 3.5.30729.1 Copyright (C) Microsoft Corporation. All rights reserved. Type library imported to WIAACMGRLib.dll
Automating this is pretty risky. A type library is quite equivalent to an assembly reference. If it changes, you want to know about it. Not only because you may have to change your interaction code and test it, the Hell DLL also knocks on your door.
source share