Guest mym786 Posted March 5, 2006 Report Posted March 5, 2006 Hi, I am totally new in this field and trying to create a cab file for smartphone just to add registry keys. I am a hardware guy but willing to learn anything I can and really appreciate your help. I am getting an error Error: Section [AddRegistry] has an unsupported registry root key "DWORD:00000009" What I am doing is creating a cab file to add some entries in the smartphone registry (its my first time and looks like it beyond my skill) I copied the follwoing cab from this web site and was trying to edit to learn how I can start creating cab file for smart phone. Also if someone can tell me about an easy guide to learn creating cab file will really be appreciated. Thank you. Code : (in inf file) [Version] Signature="$Windows NT$" CESignature="$Windows CE$" Provider="MYM" [CEStrings] AppName="Add ShortCut keys to IE" [sourceDisksNames] 1 = ,"Files",,. [sourceDisksFiles] "SAMPLE FILE.TXT"=1 [CopyFiles1] "SAMPLE FILE.TXT",,,0x00000000 [DestinationDirs] CopyFiles1=0,"\Storage Card" [AddRegistry] HKLM, "Software\Microsoft\Internet Explorer\KeyMaps "48"=dword:00000009 "119"=dword:0000000b "53"=dword:0000000c "57"=dword:00000004 "51"=dword:00000003 "56"=dword:00000002 "50"=dword:00000001 [DefaultInstall] CopyFiles=CopyFiles1 AddReg=AddRegistry
Guest mini_man Posted March 5, 2006 Report Posted March 5, 2006 Hi, welcome to forum Try this http://www.modaco.com/Create_CAB_files_to_...ry-t235258.html
Guest ChrisJM Posted March 5, 2006 Report Posted March 5, 2006 i can make you an inf if you like so then you can use it when making other cabs(as a template)...
Guest mym786 Posted March 5, 2006 Report Posted March 5, 2006 ChrisJM, That will be perfect, I really appreciate it. Thank you.
Guest mym786 Posted March 5, 2006 Report Posted March 5, 2006 I want to add a new key ' KeyMaps ' under HKLM\software\Microsfot\internet Explorer then • Key pad button 2 (Value name: 50) -> Page up (DWORD value: 1) • Key pad button 8 (Value name: 56) -> Page down (DWORD value: 2) • Key pad button 3 (Value name: 51) -> Page top (DWORD value: 3) • Key pad button 9 (Value name: 57) -> Page bottom (DWORD value: 4) • Key pad button 5 (Value name: 53) -> Full screen toggle (DWORD value: 12) For reference please click http://www.smartphonethoughts.com/forums/p...516d2e78d30fb3e I add these manually and it worked perfect but then wanted to learn how to create a cab file to add/edit reg. Thank you I really apprecaite this.
Guest mym786 Posted March 6, 2006 Report Posted March 6, 2006 Please let me know if you need to know anything else. Thank you
Guest drblow Posted March 6, 2006 Report Posted March 6, 2006 I would really appreciate seeing the inf file posted here as a template. They are very hard to find, and recently trying to make one from scratch for homescreens has been a nightmare! I'd also really love to see those pie tweaks posted here as a cab. I think quite a few folks would appreciate that one! ;)
Guest w411y Posted March 6, 2006 Report Posted March 6, 2006 Hey DrBlow, here's the inf I used for my Homer Simpson screen (Note/ this is for WM5 you'll have to add in '\Storage' [Version] Signature="$Windows NT$" CESignature="$Windows CE$" Provider="w411y" [CEStrings] Appname="w411y-HomerSimpson" [CEDevice] ProcessorType=0 [SourceDisksNames] 1=,Source1,,"Homer" 2=,Source2,,"Sounds" 3=,Source3,,"WMP Skin" [SourceDisksFiles] "w411y-HomerSimpson.home.xml"=1 "HomerSimpson-Background.jpg"=1 "HomerSimpson-Message.jpg"=1 "HomerSimpson-Profile.jpg"=1 "HomerSimpson-Error.gif"=1 "HomerSimpson-Warning.gif"=1 "HomerSimpson-Info.gif"=1 "HomerSimpson-Question.gif"=1 "HomerSimpson-Volume.gif"=1 "HomerSimpson-Menu.gif"=1 "HomerSimpson-Startup1.gif"=1 "HomerSimpson-Startup2.gif"=1 "HomerSimpson-Shutdown1.gif"=1 "HomerSimpson-Shutdown2.gif"=1 "HomerSimpson-Multimedia.gif"=1 "HomerSimpson-Background(Non Orange).jpg"=1 "w411y-HomerSimpson(Non Orange Phones).home.xml"=1 "HomerSimpson-Banner.gif"=1 "HomerSimpson-CanIGoNow.wav"=2 "HomerSimpson-Fail.wav"=2 "HomerSimpson-MailIsHere.wav"=2 "HomerSimpson-Squeel.wav"=2 "The Simpsons Theme Tune.wav"=2 "HomerBackground.gif"=3 "HomerDisabled.gif"=3 "HomerPushed.gif"=3 "HomerWMP.skn"=3 [CopyFiles1] "w411y-HomerSimpson.home.xml" "HomerSimpson-Background.jpg" "HomerSimpson-Message.jpg" "HomerSimpson-Profile.jpg" "HomerSimpson-Error.gif" "HomerSimpson-Warning.gif" "HomerSimpson-Info.gif" "HomerSimpson-Question.gif" "HomerSimpson-Volume.gif" "HomerSimpson-Menu.gif" "HomerSimpson-Startup1.gif" "HomerSimpson-Startup2.gif" "HomerSimpson-Shutdown1.gif" "HomerSimpson-Shutdown2.gif" "HomerSimpson-Multimedia.gif" "HomerSimpson-Background(Non Orange).jpg" "w411y-HomerSimpson(Non Orange Phones).home.xml" "HomerSimpson-Banner.gif" [CopyFiles2] "HomerSimpson-CanIGoNow.wav" "HomerSimpson-Fail.wav" "HomerSimpson-MailIsHere.wav" "HomerSimpson-Squeel.wav" "The Simpsons Theme Tune.wav" [CopyFiles3] "HomerBackground.gif" "HomerDisabled.gif" "HomerPushed.gif" "HomerWMP.skn" [DestinationDirs] CopyFiles1=0,"\Application Data\Home" CopyFiles2=0,"\Application Data\Sounds" CopyFiles3=0,"\Application Data\Microsoft\Media Player" [DefaultInstall] CopyFiles=CopyFiles1, CopyFiles2, CopyFiles3 AddReg=RegData [RegData] HKLM,Software\Microsoft\Splash Screen, CarrierBitmap,, \Application Data\Home\HomerSimpson-Startup1.gif HKLM,Software\Microsoft\Splash Screen, CarrierShutdownBitmap,, \Application Data\Home\HomerSimpson-Shutdown2.gif HKLM,Software\Microsoft\Splash Screen, MSBitmap,, \Application Data\Home\HomerSimpson-Startup2.gif HKLM,Software\Microsoft\Splash Screen, MSShutdownBitmap,, \Application Data\Home\HomerSimpson-Shutdown1.gif HKLM,Software\Microsoft\Shell\Rai\:ErrorBox, BKBitmapFile,, \Application Data\Home\HomerSimpson-Error.gif HKLM,Software\Microsoft\Shell\Rai\:ExclamationBox, BKBitmapFile,, \Application Data\Home\HomerSimpson-Warning.gif HKLM,Software\Microsoft\Shell\Rai\:InformationBox, BKBitmapFile,, \Application Data\Home\HomerSimpson-Info.gif HKLM,Software\Microsoft\Shell\Rai\:QuestionBox, BKBitmapFile,, \Application Data\Home\HomerSimpson-Question.gif HKLM,Software\Microsoft\Shell\Rai\:VolDlg, BKBitmapFile,, \Application Data\Home\HomerSimpson-Volume.gif HKCU,ControlPanel\Sounds\Shutdown, Sound,, \Application Data\Sounds\HomerSimpson-CanIGoNow.wav HKCU,ControlPanel\Sounds\SystemStart, Script,, ap HKLM,Software\HTC\Album, AudioBK,, \Application Data\Home\HomerSimpson-Multimedia.gif The best cab Ive seen if for the windows.mobile.mobile.nature in the downloads section.... it works for both WM5 and WM2003. It does it by setting all paths to WM5 (so no \Storage is included) and then changes the homescreen in the registry.
Guest mym786 Posted March 8, 2006 Report Posted March 8, 2006 ChrisJM, Plese take your time. I will be waiting for it. Thanks agagin.
Guest gpcarreon (MVP) Posted March 8, 2006 Report Posted March 8, 2006 Below is a sample INF which will make necessary registry changes based on what mym786 have posted (refer to post # 6 of this thread): [Version] Signature="$Windows NT$" CESignature="$Windows CE$" Provider="YOUR NAME HERE" [CEStrings] AppName="Fast Scroll IE WM5" [CEDevice] ProcessorType=0 [SourceDisksNames] 1=,Source1,"Files" [SourceDisksFiles] "Sample File.txt"=1 [CopyFiles1] "Sample File.txt",,,0x00000001 [DestinationDirs] CopyFiles1=0,"\Storage Card" [AddRegistry] HKLM,"SOFTWARE\Microsoft\Internet Explorer\KeyMaps","56",0x00010001,2 HKLM,"SOFTWARE\Microsoft\Internet Explorer\KeyMaps","50",0x00010001,1 HKLM,"SOFTWARE\Microsoft\Internet Explorer\KeyMaps","51",0x00010001,3 HKLM,"SOFTWARE\Microsoft\Internet Explorer\KeyMaps","57",0x00010001,4 HKLM,"SOFTWARE\Microsoft\Internet Explorer\KeyMaps","53",0x00010001,12 [DefaultInstall] CopyFiles=CopyFiles1 AddReg=AddRegistry The generated CAB will install directly to the Storage Card (CopyFiles1=0,"\Storage Card"). A file named 'Sample File.txt' should be placed on a folder together with: cabwiz.ddf CabwizSP.exe SAMPLE INF.inf MAKECAB.EXE Explaining what the reg entries mean.. HKLM,"SOFTWARE\Microsoft\Internet Explorer\KeyMaps","56",0x00010001,2 A REG_DWORD '56' with a value of '2' will be created in HKLM\SOFTWARE\Microsoft\Internet Explorer\KeyMaps Note that... 0x00000000 = String (REG_SZ) 0x00010000 = Multi String (REG_MULTI_SZ) 0x00000001 = Binary (REG_BINARY) 0x00010001 = DWORD (REG_DWORD) For the copy options... 0x00000001 = Normal copy 0x00000010 = Do not overwrite existing files 0x00000400 = Copy file only if it is replacing an existing file 0x20000000 = Do not copy file if the target file is newer A working CAB: Fast_Scroll_IE_WM5.CAB
Guest mym786 Posted March 8, 2006 Report Posted March 8, 2006 Thanks a lot gpcarreon, ChrisJM and others. It is really a great help and I do appreicate it. Thanks you guys (I will probably come back with more quesitons if you guys won't mind it) Thanks again.
Guest mym786 Posted March 9, 2006 Report Posted March 9, 2006 Thanks if this the entry in registry HKLM,"SOFTWARE\Microsoft\Internet Explorer\KeyMaps Value Name 56 and the Value 2 how would I just write the inf file to change this value to 1 Please let me know the Code, just one line.... Thanks
Guest gpcarreon (MVP) Posted March 9, 2006 Report Posted March 9, 2006 Try: [AddRegistry] HKLM,"SOFTWARE\Microsoft\Internet Explorer\KeyMaps","56",0x00010001,1
Guest gpcarreon (MVP) Posted March 10, 2006 Report Posted March 10, 2006 You are welcome. I hope the INF works. ;)
Guest jourabchid Posted March 29, 2006 Report Posted March 29, 2006 im having ahell of a time getting the following to work on my ppc6700 http://www.sonofasockmaker.com/phone/tweak.zip [Version] Signature="$Windows NT$" CESignature="$Windows CE$" Provider="MASHUGA" [CEStrings] AppName="Reg Tweaks" [CEDevice] ProcessorType=0 [sourceDisksNames] 1=,Source1,"Files" 2=,Source2,"Sounds" [sourceDisksFiles] "Sample File.txt"=1 "Alarm5.wav"=2 "PhoneOff.wav"=2 [CopyFiles1] "Sample File.txt",,,0x00000001 "Alarm5.wav",,,0x00000001 "PhoneOff.wav",,,0x00000400 [DestinationDirs] CopyFiles1=0,"\Storage Card" CopyFiles2=0,"\Windows" [AddRegistry] HKCU,"ControlPanel\SoundCategories\VoiceCommand1","AttenuationCategory",0x00010001,1 HKCU,"Software\Microsoft\Today\Keys\112","Open","\windows\tmail.exe" HKCU,"Software\Microsoft\Today\Keys\112","Default"="Messaging" HKCU,"ControlPanel\PhoneExtendFunction\CDMA","FlightModeSwitchByPnHEndKey",0x00010001,0 HKLM,"SYSTEM\GWE\Menu","AniType",0x00010001,0 HKLM,"SYSTEM\GDI\GLYPHCACHE","limit",0x00010001,13568 HKLM,"SOFTWARE\HTC\Camera\Recparam\MP4Large","FrameRate",0x00010001,24 HKLM,"SOFTWARE\HTC\Camera\Recparam\MP4Medium","FrameRate",0x00010001,24 HKLM,"SOFTWARE\HTC\Camera\Recparam\MP4Small","FrameRate",0x00010001,24 HKLM,"System\StorageManager\FATFS","CacheSize",0x00010001,4096 HKLM,"System\StorageManager\FATFS","EnableCache",0x00010001,1 HKLM,"System\StorageManager\Filters\fsreplxfilt","ReplStoreCacheSize",0x00010001,4096 HKLM,"ControlPanel\Phone","Flags2",0x00010001,16 HKLM,"Software\Microsoft\Inbox\Settings","SMSNoSentMsg",0x00000000,"1" HKLM,"Services\ScreenRotate","ShowIcon",0x00010001,0 HKLM,"ControlPanel\Backlight","QKeyLedTimeout",0x00010001,15 [DefaultInstall] CopyFiles=CopyFiles1,CopyFiles2 AddReg=AddRegistry
Guest gpcarreon (MVP) Posted March 29, 2006 Report Posted March 29, 2006 Try this INF [Version] Signature="$Windows NT$" CESignature="$Windows CE$" Provider="MASHUGA" [CEStrings] AppName="Reg Tweaks" [CEDevice] ProcessorType=0 [SourceDisksNames] 1=,"Files",,, 2=,"Files",,, [SourceDisksFiles] "Sample File.txt"=1 "Alarm5.wav"=2 "PhoneOff.wav"=2 [CopyFiles1] "Sample File.txt",,,0x00000001 [CopyFiles2] "Alarm5.wav",,,0x00000001 "PhoneOff.wav",,,0x00000400 [DestinationDirs] CopyFiles1=0,"\Storage Card" CopyFiles2=0,"\Windows" [AddRegistry] HKCU,"ControlPanel\SoundCategories\VoiceCommand1","AttenuationCategory",0x00010001,1 HKCU,"Software\Microsoft\Today\Keys\112","Open","\windows\tmail.exe" HKCU,"Software\Microsoft\Today\Keys\112","Default"="Messaging" HKCU,"ControlPanel\PhoneExtendFunction\CDMA","FlightModeSwitchByPnHEndKey",0x00010001,0 HKLM,"SYSTEM\GWE\Menu","AniType",0x00010001,0 HKLM,"SYSTEM\GDI\GLYPHCACHE","limit",0x00010001,13568 HKLM,"SOFTWARE\HTC\Camera\Recparam\MP4Large","FrameRate",0x00010001,24 HKLM,"SOFTWARE\HTC\Camera\Recparam\MP4Medium","FrameRate",0x00010001,24 HKLM,"SOFTWARE\HTC\Camera\Recparam\MP4Small","FrameRate",0x00010001,24 HKLM,"System\StorageManager\FATFS","CacheSize",0x00010001,4096 HKLM,"System\StorageManager\FATFS","EnableCache",0x00010001,1 HKLM,"System\StorageManager\Filters\fsreplxfilt","ReplStoreCacheSize",0x00010001,4096 HKLM,"ControlPanel\Phone","Flags2",0x00010001,16 HKLM,"Software\Microsoft\Inbox\Settings","SMSNoSentMsg",0x00000000,"1" HKLM,"Services\ScreenRotate","ShowIcon",0x00010001,0 HKLM,"ControlPanel\Backlight","QKeyLedTimeout",0x00010001,15 [DefaultInstall] CopyFiles=CopyFiles1,CopyFiles2 AddReg=AddRegistry Unzip, just drag the INF to CabWizSP. Mashuga.RT.zip
Guest jourabchid Posted March 29, 2006 Report Posted March 29, 2006 all the string values seem to be working fine, with a couple changes,adding ---- ,0x00000000, for the string values...but for some reason the dwords arent sticking even with the 0x00010001 in there... its actually converting the current dwords to strings...
Guest jenya Posted April 13, 2006 Report Posted April 13, 2006 Hey anyone know if you can remove registry keys using an INF file... like AddRegistry, maybe it would be called RemRegistry? I just want to remove these keys: HKEY_LOCAL_MACHINE\Software\Microsoft\Inbox\Svc\MMS1 HKEY_LOCAL_MACHINE\Software\Microsoft\Inbox\Svc\SMS
Guest gpcarreon (MVP) Posted April 13, 2006 Report Posted April 13, 2006 VERY IMPORTANT NOTICE: Registry manipulation should be be performed with great caution. Please do this at your own risk. makecab _setup.xml XXX.cab setup XML looks similar to... <wap-provisioningdoc> <characteristic type="Registry"> <nocharacteristic type="HKLM\SOFTWARE\Microsoft\Inbox\Svc\MMS1"> </nocharacteristic> <nocharacteristic type="HKLM\SOFTWARE\Microsoft\Inbox\Svc\SMS"> </nocharacteristic> </characteristic> </wap-provisioningdoc> Generated CAB (XXX.cab) will delete the keys 'MMS1' and 'SMS' of HKLM\SOFTWARE\Microsoft\Inbox\Svc
Guest jenya Posted April 13, 2006 Report Posted April 13, 2006 Thanks for the prompt response... Now what is the syntax for changing a registry value in the xml file... since it loosk like it differs here from a INF file? Lets say I want to change: [HKEY_LOCAL_MACHINE\Software\Microsoft\Inbox\Svc\ActiveSync] "FriendlyName" = "Outlook E-mail" to "FriendlyName" = "Test" Thanks, Jenya
Guest gpcarreon (MVP) Posted April 13, 2006 Report Posted April 13, 2006 EDIT Sheesh. Must be my sleepy eyes. I did not notice you were after 'change from XX to YY'. Sorry. If that is the case then... <wap-provisioningdoc> <characteristic type="Registry"> <characteristic type="HKLM\SOFTWARE\Microsoft\Inbox\Svc\ActiveSync"> <noparm name="FriendlyName" value="Outlook E-Mail" datatype="string" /> </characteristic> <characteristic type="HKLM\SOFTWARE\Microsoft\Inbox\Svc\ActiveSync"> <parm name="FriendlyName" value="Test" datatype="string" /> </characteristic> </characteristic> </wap-provisioningdoc>
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now