如何在运行时在客户端系统上注册dll文件 [英] How to register dll files on client system in runtime

查看:102
本文介绍了如何在运行时在客户端系统上注册dll文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先感谢您的答复
您以
的形式发送了回复 首先需要在客户端计算机上的Temp文件夹(Windows Temp文件夹)中下载DLL.
1)但是我无法猜测临时文件夹在客户端PC的哪个目录中可用(C:\ windows \ temp ...或D:\ windows \ temp ...或E:\ windows \ temp ...)要做?
2)我不知道"codebase"属性的用途是什么,但我认为它用于下载dll文件,是否正确?
如果不正确,请给我发送正确的代码以下载dll文件.
如果正确,如何在运行我的代码时不知道dll文件是否已下载或bcz.
3)如何找到要在哪个文件夹(具有完整路径)中下载的dll文件?如何注册

请给我以上所有要点的答案
谢谢

First thank you for reply
you sent reply as
first need to download the DLLs on client machine in Temp folder (Windows Temp folder)
1)But I cant guess the temp folder is available in which directory on client pc (C:\windows\temp... or D:\windows\temp... or E:\windows\temp...)so how to do?
2)I dont know what is the use of ''codebase'' attribute but I think it is using for download dll files, is it correct or not?
If it is not correct send me correct code for download dll files.
If it is correct how to know dll files are download or not bcz while run my code I did not find.
3)How to find dll files wil be downloaded in which folder(with full path)?and how to register

Pleas send me answers for above all points
thank you

推荐答案

正如Albin所说,可能最好的方法是创建一个小型安装项目,用户必须从您的站点下载该项目.安装程序将包含打包的dll

下载后,它们将运行安装程序,该程序会将DLL复制到目标位置(您可以显示安装位置"对话框,或仅复制到%System32%等)并注册它们.

这可能是最好的解决方案,

*跨浏览器功能.这将适用于所有浏览器,因为它们所需要做的就是下载文件.如果您开始使用脚本编制或使用CAB文件,则会遇到不兼容问题

* 安全问题.此解决方案将在所有版本的Windows上运行.在更高版本(例如Windows Vista)上,您可能会在运行安装程序时看到UAC提示,但在用户确认后仍会安装OK.
As Albin has mentioned, probably the best thing to do here is create a small setup project that the user has to download from your site. The setup program will contain your packaged dlls

Once downloaded, they will run the setup program which will copy the DLLs to the target location (you could show a ''install location'' dialog, or just copy to %System32% etc) and register them.

This is probably the best solution to provide

* Cross browser functionality. This will work in all browsers, since all they have to do is download a file. If you started getting into scripting or using CAB files, you''ll run into incompatibility issues

* Security issues. This solution will work on all versions of Windows. On later versions (i.e. > windows vista) you may see the UAC prompt when running the installer, but it will still install OK after user confirmation.


这篇关于如何在运行时在客户端系统上注册dll文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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