惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
爱范儿
爱范儿
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
博客园 - 三生石上(FineUI控件)
大猫的无限游戏
大猫的无限游戏
Hugging Face - Blog
Hugging Face - Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
G
Google Developers Blog
WordPress大学
WordPress大学
S
SegmentFault 最新的问题
雷峰网
雷峰网
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Jina AI
Jina AI
博客园 - 叶小钗
D
DataBreaches.Net
D
Docker
月光博客
月光博客
博客园 - 司徒正美
Last Week in AI
Last Week in AI
有赞技术团队
有赞技术团队
腾讯CDC
酷 壳 – CoolShell
酷 壳 – CoolShell

博客园 - Mark Jiao

调试Java程序持续占cpu问题 Freemarker notes | Freemarker学习笔记 Spring Struts Hibernate trouble shooting | 一些问题的记载 MySQL 性能调优之查询优化 Tomcat性能调优 | Tomcat Performance Tuning Tomcat配置、管理和问题解决 | Tomcat Configuration, Manangement and Trouble Shooting SWT Browser & XULRunner Windows应用安装制作工具调查报告 CentOS Configuration | CentOS配置 Java那些事儿 互联网技术要考虑的事情 Parameterized Testing | 参数化测试 Git usage | Git 使用 Introduce products I worked on | 介绍一下我做过的产品 PHPUnit manual note | PHPUnit手册笔记 PHP manual notes | PHP手册笔记 Globalization, Localization, Internationalization and Translation HTTP 超文本传输协议 Design Patter
命令行加载IE ActiveX插件
Mark Jiao · 2015-02-05 · via 博客园 - Mark Jiao

IE11>工具>Interntet选项>程序>管理加载项>显示:所有加载项

1. 在网页中如果指定codeBase(路径相对于当前页面),打开网页的时候将会提示是不是安装ActiveX插件:

<OBJECT id="factory" codeBase="smsx.cab#Version=6,3,438,06"
    height="0" width="0" classid="clsid:1663ed61-23eb-11d2-b92f-008048fdd814" viewastext>
</OBJECT>

2. 另外,也可以手工安装cab包预安装好

见:http://jingyan.baidu.com/article/ab69b270db654a2ca6189f77.html

3. 上述两个办法安装插件之后,IE安全级别设置不同,会每次提示是不是允许加载插件,解决办法是修改注册表对应值。

见:http://blog.csdn.net/yjlwl1213/article/details/3929848

4. 如果要用命令行注册插件,要用rundll32.exe:

rundll32.exe advpack.dll,LaunchINFSectionEx inf_filename,[section name],[cab name],<flags>[,smart reboot]

INF Filename
INF filename you want to launch. If the given name is not full pathname, advpack.dll will extract the INF from the given CAB file.

Section Name
INF install section name you want to launch. If it is empty string or NULL, DefaultInstall section name will be called.

Cab Name
Specify the fully qualified CAB file pathname which contains the files or INF you want to install to the user's system.

Flags
Flag Meaning
4 Quiet Mode, no UI
8 Don't Run GrpConv
16 Force Self-Updating on User's System
32 Backup Data Before Install
64 Rollback to Previous State
128 Validate the Backup Data
256 Complete Rollback to Previous State
512 Force Delay of OCX Registration

Smart Reboot
N No Reboot
A Always Reboot
I Reboot if Needed (default value)

Example:
rundll32.exe advpack.dll,LaunchINFSectionEx myinf.inf,,c:\temp\mydata.cab,36

This means to extract myinf.inf file from c:\temp\mydata.cab file and launch myinf.inf with DefaultInstall section in Quiet|Backup install mode, reboot if needed.

rundll32.exe advpack.dll,LaunchINFSectionEx c:\windows\inf\myinf.inf,,,256

This means to rollback to the state before installing myinf.inf DefaultInstall section.

So to make it silent it would be:

rundll32.exe advpack.dll,LaunchINFSectionEx .\<file>.inf,,,4

实例:注册MeadCo ScriptX(http://scriptx.meadroid.com/) 打印插件

1 C:\Windows\SysWOW64\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultUninstall 4 C:\Windows\SysWOW64\smsx\ScriptX.inf
2 C:\Windows\SysWOW64\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultUninstall 4 C:\Windows\SysWOW64\smsx\SecMgr.inf
3 C:\Windows\SysWOW64\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultUninstall 4 C:\Windows\SysWOW64\smsx\PrintX.inf
4 C:\Windows\SysWOW64\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultUninstall 4 C:\Windows\SysWOW64\smsx\pt.inf
5 C:\Windows\SysWOW64\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultUninstall 4 C:\Windows\SysWOW64\smsx\smsx.inf

32-bit

 1 C:\Windows\SysWOW64\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultUninstall 4 $USER_INSTALL_DIR$\smsx\ScriptX.inf
 2 C:\Windows\SysWOW64\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultUninstall 4 $USER_INSTALL_DIR$\smsx\SecMgr.inf
 3 C:\Windows\SysWOW64\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultUninstall 4 $USER_INSTALL_DIR$\smsx\PrintX.inf
 4 C:\Windows\SysWOW64\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultUninstall 4 $USER_INSTALL_DIR$\smsx\pt.inf
 5 C:\Windows\SysWOW64\rundll32.exe syssetup,SetupInfObjectInstallAction DefaultUninstall 4 $USER_INSTALL_DIR$\smsx\smsx.inf
 6 
 7 C:\Windows\SysWOW64\rundll32.exe advpack.dll,LaunchINFSectionEx $USER_INSTALL_DIR$\smsx\ScriptX.inf,,,4
 8 C:\Windows\SysWOW64\rundll32.exe advpack.dll,LaunchINFSectionEx $USER_INSTALL_DIR$\smsx\SecMgr.inf,,,4
 9 C:\Windows\SysWOW64\rundll32.exe advpack.dll,LaunchINFSectionEx $USER_INSTALL_DIR$\smsx\PrintX.inf,,,4
10 C:\Windows\SysWOW64\rundll32.exe advpack.dll,LaunchINFSectionEx $USER_INSTALL_DIR$\smsx\pt.inf,,,4
11 C:\Windows\SysWOW64\rundll32.exe advpack.dll,LaunchINFSectionEx $USER_INSTALL_DIR$\smsx\smsx.inf,,,4

64-bit