By Adam Nagy
As mentioned in this article, you can use the Inventor View Control in a registry-free way by embedding a manifest file that specifies the InventorViewControl as a dependency.
My InventorViewCtrl.ocx.manifest looks like this:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"><file name="InventorViewCtrl.ocx" hashalg="SHA1"><comClass clsid="{A6336AB8-D3E1-489A-8186-EE40F2E027FE}" tlbid="{E841EDA5-E54F-4492-B514-928713E659C7}" description="Autodesk Inventor View Control"></comClass><typelib tlbid="{E841EDA5-E54F-4492-B514-928713E659C7}" resourceid="1" version="1.0" helpdir="" flags="HASDISKIMAGE"></typelib></file><comInterfaceExternalProxyStub name="_DInventorViewControl" iid="{C767F39D-57B9-4163-ABAD-14FAE0F74D21}" tlbid="{E841EDA5-E54F-4492-B514-928713E659C7}" proxyStubClsid32="{00020420-0000-0000-C000-000000000046}"></comInterfaceExternalProxyStub><comInterfaceExternalProxyStub name="_DInventorViewControlEvents" iid="{D7A91BA8-19C0-4E1B-99D7-F6B10448EF3B}" tlbid="{E841EDA5-E54F-4492-B514-928713E659C7}" proxyStubClsid32="{00020420-0000-0000-C000-000000000046}"></comInterfaceExternalProxyStub></assembly>
Inside the Project Settings you can specify to embed this manifest:
Here is the full source code of the sample project:
https://github.com/adamenagy/InventorView-FileDisplay-.NET-4.0-RegFree