tangyi90 发表于 2012-4-6 14:15:30

创建一个主键、子键或值项无效

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\DOWNLOAD","RunInvalidSignatures","REG_DWORD","1")
这个选项勾是勾上了可是没效果。
我手动到是可以。。不知道怎么回事啊

veket_linux 发表于 2012-4-6 18:44:32

估计是注册表访问权限问题,关注……

半芯竹 发表于 2012-4-6 19:14:18

尝试一下:

RegWrite("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\DOWNLOAD","RunInvalidSignatures","REG_DWORD","00000001")

tangyi90 发表于 2012-4-7 20:06:37

3楼的试过了也没用

半芯竹 发表于 2012-4-7 22:17:04

回复 4# tangyi90


   我测试了,是可以选中,但没测试软件的运行。呵呵,如果实在不行,那就换个方法吧,用模拟操作,具体例子,我刚才已经做出来了,请看:http://www.autoitx.com/forum.php?mod=viewthread&tid=31487&extra=

netegg 发表于 2012-4-9 01:06:20

本帖最后由 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)

502762378 发表于 2012-4-11 18:53:53


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")

千方百计回答你的问题。

xms77 发表于 2012-4-11 21:07:19

7楼的代码能不能解决楼主的问题啊?

haijie1223 发表于 2012-4-11 21:26:16

本帖最后由 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:51

很明显是没有刷新注册表导致的

netegg 发表于 2012-4-12 10:33:57

很明显是没有刷新注册表导致的
Qokelate 发表于 2012-4-12 10:03 http://www.autoitx.com/images/common/back.gif

这倒是实话

haijie1223 发表于 2012-4-12 15:16:13

回复 11# netegg


    我给的那段代码其实不用刷新注册表也能用的

netegg 发表于 2012-4-12 18:28:30

回复 12# haijie1223
DllCall("user32.dll","int","SendMessageTimeout","hwnd",65535,"int",26,"int",0,"int",0,"int",0,"int",1000,"str","dwResult")
本来就是刷新注册表

haijie1223 发表于 2012-4-12 20:41:37

回复 13# netegg


    这个确实是刷新注册表但是不用也可以你可以测试一下
页: [1]
查看完整版本: 创建一个主键、子键或值项无效