gareththegod Posted September 9, 2004 Share Posted September 9, 2004 How do you make thisWindows Registry Editor Version 5.00[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Attachments]"SaveZoneInformation"=dword:00000001to 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,00HKLM,"%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 More sharing options...
ToBe Posted September 9, 2004 Share Posted September 9, 2004 HKCU,"%Current%\Policies\Attachments","SaveZoneInformation",0x00010001,01,00,00,00Should 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 More sharing options...
gareththegod Posted September 12, 2004 Author Share Posted September 12, 2004 thanks Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now