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

推荐订阅源

Cloudbric
Cloudbric
有赞技术团队
有赞技术团队
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
Threat Research - Cisco Blogs
L
LangChain Blog
Simon Willison's Weblog
Simon Willison's Weblog
Project Zero
Project Zero
Latest news
Latest news
S
Schneier on Security
Cisco Talos Blog
Cisco Talos Blog
MyScale Blog
MyScale Blog
C
Check Point Blog
IT之家
IT之家
P
Palo Alto Networks Blog
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
C
CERT Recently Published Vulnerability Notes
Scott Helme
Scott Helme
The Hacker News
The Hacker News
C
CXSECURITY Database RSS Feed - CXSecurity.com
G
Google Developers Blog
T
Tor Project blog
T
Threatpost
D
DataBreaches.Net
博客园 - 【当耐特】
酷 壳 – CoolShell
酷 壳 – CoolShell
T
Troy Hunt's Blog
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Vercel News
Vercel News
云风的 BLOG
云风的 BLOG
NISL@THU
NISL@THU
P
Privacy & Cybersecurity Law Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
C
Cisco Blogs
博客园_首页
S
Securelist
T
The Exploit Database - CXSecurity.com
Last Week in AI
Last Week in AI
量子位
U
Unit 42
Know Your Adversary
Know Your Adversary
Hugging Face - Blog
Hugging Face - Blog
S
Security Affairs
Google Online Security Blog
Google Online Security Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
S
SegmentFault 最新的问题
Engineering at Meta
Engineering at Meta
N
News and Events Feed by Topic
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志

博客园 - 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