使用系统上未安装的DLL [英] Use DLL that is not installed on the system

查看:248
本文介绍了使用系统上未安装的DLL的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个C#CustomAction DLL,从中我必须使用目标系统上尚未安装的另一个DLL,但包含在我的安装程序中。

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.

我如何能够在C#CustomAction中使用这个DLL?

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

原因是我必须检查提供的凭据是否被Web服务接受此DLL在将凭证写入web.config并加密web.config之前,将钩子插入。

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.

推荐答案

你可以随时尝试 - 似乎是你正在寻找的,一种获取Dll并在不安装它的情况下调用它的方法:

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

这篇关于使用系统上未安装的DLL的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆