解决办法:
在VS的路径下(一般为:C:Program Files (x86)Microsoft Visual Studio2017EnterpriseCommon7IDEPrivateAssemblies)找到envdte.dll等5个文件,
复制到第三方控件dll文件的文件夹。 以我安装cognex控件为例就是“C:Program Files (x86)CognexVisionProin”
然后再开始打开安装文件(例如:C:Program Files (x86)CognexVisionProin下的“CreateVProTab.exe”)