Use DLL that is not installed on the system

2019-09-21 16:52发布

问题:

I am creating a C# CustomAction DLL from which I have to use another DLL that is not (yet) installed on the target system, but included in my installer.

How will I be able to use this DLL in my C# CustomAction?

The reason is that I have to check whether the provided credentials are accepted by the Web service this DLL hooks into before I write the credentials into web.config and encrypt web.config.

回答1:

You could always try this - seems to be what you're looking for, a way to get the Dll and call it without installing it:

http://www.codeproject.com/Articles/528178/Load-DLL-From-Embedded-Resource



回答2:

I think you can go to the DLL Properties and set Copy To Local = true. By default is false.