chezy666 Posted July 6, 2004 Posted July 6, 2004 well, opening the files told me that HKCR=HIVECLS.INF,HKCU=HIVEDEF.INF and HKLM=HIVESFT.INF and HIVESYS.INF.Untill now this is what i've figured out as the format,HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Applets\Tour","RunCount",0x00010003,0HKLM=Hkey Local Machine between " and " the folder path"RunCount" value name 0x00010003, meant to signify the type of data i.e dword, sz etcnext value is the data value, also i think the values are in hex,so Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters]GlobalMaxTcpWindowSize="256960"TcpWindowSize="256960"Tcp1323Opts="1"DefaultTTL="64"EnablePMTUDiscovery="1"EnablePMTUBHDetect="0"SackOpts="1"TcpMaxDupAcks="2"MTU="1500"would be [Addreg]HKLM,"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","GlobalMaxTcpWindowSize",0x00010003,0x3EBC0HKLM,"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","TcpWindowSize",0x00010003,0x3EBC0HKLM,"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","Tcp1323Opt",0x00010003,1HKLM,"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","DefaultTTL",0x00010003,64HKLM,"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","EnablePMTUDiscovery",0x00010003,1HKLM,"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","EnablePMTUBHDetect",0x00010003,0HKLM,"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","SackOpts",0x00010003,1HKLM,"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","TcpMaxDupAcks",0x00010003,2HKLM,"SYSTEM\CurrentControlSet\Services\Tcpip\Parameters","MTU",0x00010003,0x5DCis this right, i needed a way to add common registry settings for the entire system one time only, if i'm successfull i'll post the codes.
rdalling Posted July 6, 2004 Posted July 6, 2004 Try thishttp://msdn.microsoft.com/library/default....9ffa6d9.xml.aspRoger
chezy666 Posted July 6, 2004 Author Posted July 6, 2004 Thanks but the link only had info on inf files, hive*.inf files are different .I'm trying to edit the hive files present in windows setup, they are inf files which have pre installation registry and are loaded before the first reboot.
rdalling Posted July 6, 2004 Posted July 6, 2004 They are defined in the same way.Here is a book to pickup also...Microsoft Windows XP Registry Guide / Jerry Honeycutt.Roger
nuhi Posted July 6, 2004 Posted July 6, 2004 chezy666, it seems ok, but i do have a question.Is 0x00010001 Value a REG_DWORD, and +...02 it doesn't overwrite the value, like yours 0x00010003 ?(i'm not sure in that)And is it really necessary to convert in hex (e.g. "1500" to 0x5DC) ?
Alanoll Posted July 6, 2004 Posted July 6, 2004 the only difference between normal INF files and hive INF files, is that the hive ones don't like shorthand typing. YOu have to spell out everything, otherwise EVERYTHING APPLIES. You also can't use STRINGS (%CUSTOMVALUE%).also, I would suggest 0x00010001 as opposed to 0x00010003. ALso, in either case.....the value if it is a dword, needs to be in hex. COMPLETE hex, not short. 0x000005DC
nuhi Posted July 6, 2004 Posted July 6, 2004 Alanoll, ok, thx about the info, just i have something to add.I'm using this and it works (environment variable used)HKCU,"SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce","label",0x00020000,"%%systemroot%%\inf\file.ext"Maybe that's because it's in hivedef and applied on first logon.edit: I overlooked "CUSTOM value", not environment...apologies(it's those %% that triggered me).Lets leave the post for him to see how to use environment variable
Alanoll Posted July 6, 2004 Posted July 6, 2004 %CUSTOMVALUE%, I meant what's defined in the [sTRINGS] section of a normal INF. You CAN'T do that with the hive files, as there is no real interpreter at that point. Everything has to be spelled out like it's stupid.
chezy666 Posted July 7, 2004 Author Posted July 7, 2004 Great! thanks a million, actually i compared my current registry with the hive files to understand it, now i'll try to import all my registry settings.
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