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 RegistrationSmart 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,36This
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