Jump to content

security warning regtweak to inf?


 Share

Recommended Posts

How do you make this

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments]
"SaveZoneInformation"=dword:00000001

to this work. I know what is wrong but I can't fix it. How to you make a dword add to the registry as I can't find out anything about it. I think that its the bit after "SaveZoneInformation", All of my other reg settings are standard strings.

test.inf

[Version]
signature="$CHICAGO$"

[DefaultInstall]
AddReg = Securitywarning, Add.Uninstall


[DefaultUninstall]
DelReg = Del.Registry

[Securitywarning]
HKCU,"%Current%\Policies\Attachments","SaveZoneInformation",0x00010001,01,00,00,00


[Add.Uninstall]
HKLM,%Uninstall%,DisplayName,,"%AppDesc%"
HKLM,%Uninstall%,UninstallString,,"rundll32.exe syssetup.dll,SetupInfObjectInstallAction DefaultUninstall 132 %01%\%thisfile%"


[Del.Registry]
HKCU,"%Current%\Policies\Attachments","SaveZoneInformation",0x00010001,02,00,00,00
HKLM,"%Uninstall%"

[Strings]
; Any variables you use need to be defined under [strings].
Current = "Software\Microsoft\Windows\CurrentVersion"
RunOnceEx = "SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnceEx"
Uninstall   = "Software\Microsoft\Windows\CurrentVersion\Uninstall\%thisfile%"
thisfile    = "test.inf"
AppDesc     = " Disables Security Warning Box In SP2"



[INFO]
; key below to run any thing in the runonceex without needing to restart
; rundll32.exe iernonce.dll,RunOnceExProcess

; The command will run the section called [XXXXX] in the FILENAME.INF file  
; 128 tells setup to NOT restart if the inf needs to restart the pc
; rundll32 setupapi,InstallHinfSection XXXXX 128 .\FILENAME.INF

Link to comment
Share on other sites


HKCU,"%Current%\Policies\Attachments","SaveZoneInformation",0x00010001,01,00,00,00

Should be:

HKCU,"%Current%\Policies\Attachments","SaveZoneInformation",0x00010001,"1"

and the same syntax goes for the section [Del.Registry]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.


×
×
  • Create New...