Guest w411y Posted December 26, 2005 Report Posted December 26, 2005 My homescreen for Homer Simpson is a cab installer. I want to update it and part of the update includes a Start Menu background and with the C550 you must add Dwrod values to the registry so that you can use a 240x266 image. So my Q is, how do I add a DWord value to the reg in the inf file?
Guest gpcarreon (MVP) Posted December 27, 2005 Report Posted December 27, 2005 To answer that, let me cite an example: Say you'd like to export a DWORD data into an *.reg file... HKEY_CURRENT_USER\ControlPanel\Home "Timeout"=dword:000927C0 <--- HEXadecimal base The dword would be translated to... HKCU,"ControlPanel\Home","Timeout",0x00010001,600000 <--- DECimal base Compare it with string data... HKEY_CURRENT_USER\ControlPanel\Home "SchemeFailSafe"="\\windows\\full.home.xml" ...translates to... HKCU,"ControlPanel\Home","SchemeFailSafe",0x00000000,"\windows\full.home.xml" The sample inf would then appear like... [AddRegistry] HKCU,"ControlPanel\Home","Timeout",0x00010001,600000 HKCU,"ControlPanel\Home","SchemeFailSafe",0x00000000,"\windows\full.home.xml" [DefaultInstall] AddReg=AddRegistry
Guest w411y Posted December 27, 2005 Report Posted December 27, 2005 Slightly confused as to where youve plucked numbers from. In my example I enter BKBitmapLogPixelsY with a Dword value of 131 with Hex not ticked BKBitmapLogPixelsX with a Dword value of 131 with Hex not ticked BKFlags with a Dword data value of 26 ...all in HKey_Local_Machine\SOFTWARE\Microsoft\Shell\Rai\:MSStart They then come out as BKBitmapLogPixelsY 0x83 (131) BKBitmapLogPixelsX 0x83 (131) BKFlags 0x1A (26) Translated as ... HKLM,"SOFTWARE\Microsoft\Shell\Rai\:MSStart","BKBitmapLogPixelsY",00010001,?X? What number goes where ?X? is ?
Guest gpcarreon (MVP) Posted December 27, 2005 Report Posted December 27, 2005 The decimal value 131 and NOT the HEX data (083) Sample code in INF... [AddRegistry] HKLM,"SOFTWARE\Microsoft\Shell\Rai\:MSStart","BKFlags",0x00010001,26 HKLM,"SOFTWARE\Microsoft\Shell\Rai\:MSStart","BKBitmapLogPixelsX",0x00010001,131 HKLM,"SOFTWARE\Microsoft\Shell\Rai\:MSStart","BKBitmapLogPixelsY",0x00010001,131 [DefaultInstall] AddReg=AddRegistry
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now