创建一个主键、子键或值项无效
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\DOWNLOAD","RunInvalidSignatures","REG_DWORD","1")这个选项勾是勾上了可是没效果。
我手动到是可以。。不知道怎么回事啊 估计是注册表访问权限问题,关注…… 尝试一下:
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\DOWNLOAD","RunInvalidSignatures","REG_DWORD","00000001") 3楼的试过了也没用 回复 4# tangyi90
我测试了,是可以选中,但没测试软件的运行。呵呵,如果实在不行,那就换个方法吧,用模拟操作,具体例子,我刚才已经做出来了,请看:http://www.autoitx.com/forum.php?mod=viewthread&tid=31487&extra= 本帖最后由 netegg 于 2012-4-9 10:34 编辑
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Internet Explorer\AdvancedOptions\CRYPTO\RUN_INV_SIG, DefaultValue, 1
改这个试试看
或者用下面这个试试
#Include <WinINet.au3>
_WinINet_InternetSetOption($hInternet, $SECURITY_FLAG_IGNORE_UNKNOWN_CA, 1)
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\DOWNLOAD","RunInvalidSignatures","REG_DWORD","1")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN\Settings","CALMACHINE_CD_UNLOCK","REG_DWORD","1")
千方百计回答你的问题。 7楼的代码能不能解决楼主的问题啊? 本帖最后由 haijie1223 于 2012-4-12 08:48 编辑
If MsgBox(4 + 32, "是否选中", "选中IE“允许或安装软件,即签名无效”") = 6 Then
CHECKED();选中
Else
UNCHECKED();取消选中
EndIf
Func CHECKED()
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\Components", "GeneralFlags", "REG_DWORD", "0")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download", "RunInvalidSignatures", "REG_DWORD", "1")
DllCall("user32.dll","int","SendMessageTimeout","hwnd",65535,"int",26,"int",0,"int",0,"int",0,"int",1000,"str","dwResult")
EndFunc ;==>CHECKED
Func UNCHECKED()
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Desktop\Components", "GeneralFlags", "REG_DWORD", "1")
RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Download", "RunInvalidSignatures", "REG_DWORD", "0")
DllCall("user32.dll","int","SendMessageTimeout","hwnd",65535,"int",26,"int",0,"int",0,"int",0,"int",1000,"str","dwResult")
EndFunc ;==>UNCHECKED
很明显是没有刷新注册表导致的 很明显是没有刷新注册表导致的
Qokelate 发表于 2012-4-12 10:03 http://www.autoitx.com/images/common/back.gif
这倒是实话 回复 11# netegg
我给的那段代码其实不用刷新注册表也能用的 回复 12# haijie1223
DllCall("user32.dll","int","SendMessageTimeout","hwnd",65535,"int",26,"int",0,"int",0,"int",0,"int",1000,"str","dwResult")
本来就是刷新注册表 回复 13# netegg
这个确实是刷新注册表但是不用也可以你可以测试一下
页:
[1]