手动安装ActiveX组件

发布于 2024-08-11 21:38:14 字数 624 浏览 5 评论 0原文

我正在尝试查看监控摄像系统。可以通过一个网站进行远程访问,该网站似乎需要下载一个充满好东西的 CAB 文件才能让我查看相机。

在我的一些系统上,这个安装过程进展顺利。

在一些网络上,特别是那些网速较慢的网络上,我陷入了无限循环:进入该页面,等待很长一段时间(我假设这是下载 CAB 文件的地方),单击黄色栏以允许它到“为所有用户安装此 CAB 文件”并重新加载页面。它永远不会弹出窗口说“你确定安装这个东西很酷吗?”

有没有一种好方法可以用一些代码来回避这个问题?我已经下载了 CAB 文件并提取了其内容。它充满了 DLL 和 SetupScript.vbs。我尝试让SetupScript.vbs 运行,并尝试使用regsrv32 手动注册DLL。我什至将所需的 .OCX 和 .INF 文件复制到 C:\Windows\Downloaded Program Files\ 并修改注册表以模仿安装顺利的情况。

尽管如此,当我访问该网页时,它仍然需要很长时间,然后又回到上述循环。

我需要调用哪些 API 才能“正确”注册此组件以便 IE 可以看到它?还是我缺少一些更简单的东西?

有人可以指出我正确的方向来解决这个问题吗?浏览器是IE8,操作系统是Vista。

谢谢!

I'm trying to view a surveillance camera system. The remote access is available through a website, and that website seems to need to download a CAB file full of goodies to let me view the cameras.

On some of my systems this install process goes over nicely.

On a few, particuarly the ones with slower Internet, I get into an endless-loop of: going to the page, waiting a long period of time (I assume this is where its downloading the CAB file), clicking yellow bar to allow it to "Install this CAB file for all Users" and the page reloading. It never pops up with the Window saying "Are you sure its cool to Install this stuff?"

Is there a nice way I can side-step this with a little code? I've downloaded the CAB file and extracted its contents. It's full of DLLs and a SetupScript.vbs. I've tried to just let the SetupScript.vbs run, and I've tried to manually register the DLLs with regsrv32. I've even copied the required .OCX and .INF files to the C:\Windows\Downloaded Program Files\ and modified the registry to mimick one where the install went smoothly.

Despite this, when I visit the webpage, it still takes forever and then goes back into the loop described above.

What APIs do I need to call to "properly" register this component so IE can see it? Or is there something more simple that I'm missing?

Could someone please point me in the right direction to solve this? The browser is IE8, the OS is Vista.

Thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

小…红帽 2024-08-18 21:38:14

在 Windows 7 64 位中,我将 OCX 文件复制到 C:\Windows\SysWOW64,然后运行:

regsvr32 /s C:\Windows\SysWOW64\PLUGINNAME.ocx

当我启动 IE 时,ActiveX 插件工作正常,没有提示安装。

In Windows 7 64-bit I copied the OCX files to C:\Windows\SysWOW64 and then ran:

regsvr32 /s C:\Windows\SysWOW64\PLUGINNAME.ocx

The ActiveX plugin worked fine when I launched IE without prompting for an install.

哀由 2024-08-18 21:38:14

上面的拼写错误,我注意到在某些 Windows 8.1 安装中,您需要从 sysWOW64 根文件夹运行 regsvr32:

%SystemRoot%\Syswow64\regsvr32 /s C:\Windows\SysWOW64\pluginname.ocx

Typo from above and i've noticed with some installations of Windows 8.1 you need to run regsvr32 from the sysWOW64 root folder:

%SystemRoot%\Syswow64\regsvr32 /s C:\Windows\SysWOW64\pluginname.ocx
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文