系统环境:Windows 2003 sp1
IE版本:IE 6.0
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones下
安全级别currentlevel值:0安全级为自定义,12000安全级为高,11000安全级为
中,10500安全级为中低,10000安全级为低;
0:我的电脑
1:本地 Intranet
2:可信站点
3:Internet
4:受限站点
ActiveX控件和插件的设置,依次为:1405(301),1201(301),1004(301),1001(301),1200(65536,(301));0为启用,3为禁用,1为提示。
1001 下载已签名的 ActiveX 控件
1004 下载未签名的 ActiveX 控件
1200 运行 ActiveX 控件和插件
1201 对没有标记为安全的 ActiveX 控件进行初始化和脚本运行
1405 对标记为可安全执行脚本的 ActiveX 控件执行脚本
2201 ActiveX 控件自动提示
修改IE安全设置(安装、运行未签名的ActiveX控件):
reg add "HKLMSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3" /v 1004 /t REG_DWORD /d 0 /f
reg add "HKLMSoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3" /v 1200 /t REG_DWORD /d 0 /f
编写.inf文件修改:
[Version]
Signature=$Chicago$
AdvancedINF=2.5
[DefaultInstall]
RequiredEngine=SetupAPI,"Fatal Error - missing setupapi.dll"
CustomDestination=CustInstDestSection
AddReg=AddReg.Hkcu,AddReg.Hklm
[IeakInstall.Hkcu]
RequiredEngine=SetupAPI,"Fatal Error - missing setupapi.dll"
CustomDestination=CustInstDestSection
AddReg=AddReg.Hkcu
[IeakInstall.Hklm]
RequiredEngine=SetupAPI,"Fatal Error - missing setupapi.dll"
CustomDestination=CustInstDestSection
AddReg=AddReg.Hklm
[CustInstDestSection]
49000,49001,49002,49003=ProgramFilesDir,21
49100,49101,49102,49103=IEDir,21
[ProgramFilesDir]
HKLM,"SOFTWAREMicrosoftWindowsCurrentVersion","ProgramFilesDir",,"%24%Program Files"
[IEDir]
HKLM,"SOFTWAREMicrosoftWindowsCurrentVersionApp Pathsiexplore.exe","Path",,"%49001%Internet Explorer"
[AddReg.Hklm]
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones",1004,0x10001,00,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones",1200,0x10001,00,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1",1004,0x10001,03,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1",1200,0x10001,00,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2",1004,0x10001,01,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2",1200,0x10001,00,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3",1004,0x10001,00,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3",1200,0x10001,00,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones4",1004,0x10001,03,00,00,00
HKLM,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones4",1200,0x10001,03,00,00,00
[AddReg.Hkcu]
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones",1004,0x10001,00,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones",1200,0x10001,00,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1",1004,0x10001,03,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones1",1200,0x10001,00,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones2",1200,0x10001,00,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3",1004,0x10001,00,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones3",1200,0x10001,00,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones4",1004,0x10001,03,00,00,00
HKCU,"SoftwareMicrosoftWindowsCurrentVersionInternet SettingsZones4",1200,0x10001,03,00,00,00
保存为.inf文件后点击右键-安装即可。