I’m using regfree com to deploy an activex component with clickonce. The component is dependent on some native dlls that should reside in the same directory as the component. If I manually copy the native dlls to the install dir of the clickonce app ( I located the directory by using System.Reflection.Assembly.GetExecutingAssembly()) the application runs fine. But if I include the dlls in the project and publish them, the application doesn’t work..
Any suggestions or workarounds?
Regards,
Fredrik
Embed the native .dlls in your managed assembly as an embedded resource and extract to disk at runtime if the are not present.
If this process is not familiar to you, leave me a comment and I will make an effort to explain it. It is not that complicated.