Create CAB files to change registry, How do you do it? |
![]() ![]() |
Create CAB files to change registry, How do you do it? |
|
Jan 20 2006, 06:28
Post
#1
|
||
![]() Hardcore Group: Posters Posts: 1,122 Joined: 20th February 2005 From: Leonay, NSW Member No.: 112,043 Device(s): Nokia E71 |
How do you create cab files (like the one to move the IE Cache/Temp/History to SD) that add or change the registry? I just can't figure it out!
-------------------- |
||
|
|
|||
|
Jan 20 2006, 07:14
Post
#2
|
||
![]() RN, MS MVP-MD Group: Moderator Team Posts: 4,536 Joined: 7th August 2003 From: Legazpi, Philippines Member No.: 12,251 Device(s): ASUS P525, ASUS N10J-A1 |
You need an INF then cabwizsp.exe, cabwiz.ddf, and makecab.exe. Check the sample INF below
CODE [Version] Signature="$Windows NT$" CESignature="$Windows CE$" Provider="YOUR NAME HERE" [CEStrings] AppName="APP NAME HERE" [SourceDisksNames] 1 = ,"Files",,. [SourceDisksFiles] "SAMPLE FILE.TXT"=1 [CopyFiles1] "SAMPLE FILE.TXT",,,0x00000000 [DestinationDirs] CopyFiles1=0,"\Storage" [AddRegistry] HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Cache",0x00000000,"\Storage Card\Windows\Profiles\guest\Temporary Internet Files" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","Cookies",0x00000000,"\Storage Card\Windows\Profiles\guest\Cookies" HKCU,"Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","History",0x00000000,"\Storage Card\Windows\Profiles\guest\History" [DefaultInstall] CopyFiles=CopyFiles1 AddReg=AddRegistry You should have 'SAMPLE FILE.TXT' together with the INF, cabwizsp.exe, cabwiz.ddf, and makecab.exe inside one folder then drag the INF to cabwizsp.exe to generate a CAB installer. The main tweak is located at the '[AddRegistry]' section of the INF. -------------------- Jakult everyday, everyday OK!
|
||
|
|
|||
Jan 30 2006, 13:12
Post
#3
|
|||
|
Enthusiast Group: Posters Posts: 185 Joined: 20th May 2004 Member No.: 43,898 |
is there anywhere that has a guide of how to do this??
|
||
|
|
|||
|
Jan 30 2006, 13:23
Post
#4
|
||
![]() Did I say that out loud? Group: Posters Posts: 4,539 Joined: 20th August 2003 From: Kent, England Member No.: 13,469 Device(s): Kaiser, Touch |
|||
|
|
|||
Jan 30 2006, 13:29
Post
#5
|
|||
|
Enthusiast Group: Posters Posts: 185 Joined: 20th May 2004 Member No.: 43,898 |
Hmmm looks a bit above my skills!!!
|
||
|
|
|||
|
Jan 30 2006, 18:20
Post
#6
|
||
![]() Hardcore Group: Posters Posts: 1,495 Favorited Topics: 3 Joined: 6th August 2005 From: Pontypridd, Wales Member No.: 143,011 Device(s): SPV M1500 & SPV C550 |
No Rizzles dont give up
MSDN scares me too. When I was first reading how to make a homescreen I was looking for the first corner I could go cry in! Theres an insight to cab files here... http://www.gpcarreon.com/?p=93 Basically a cab file can put files in a folder (ie// put an xml and .jpg into the Application Data\Home folder) and can also perform Reg tweaks (ie// system screens such as Start up screen and Shutdown screen) All you have to do is make a .inf file. This basically tells the cab what to do. Hopefully the link above wil set you off. Good luck -------------------- |
||
|
|
|||
Jan 30 2006, 18:40
Post
#7
|
|||
|
Enthusiast Group: Posters Posts: 185 Joined: 20th May 2004 Member No.: 43,898 |
yeah i saw that link earlier but wont load up for me.. would really like to be able to get my head around it though...
|
||
|
|
|||
|
Jan 30 2006, 18:41
Post
#8
|
||
![]() Hardcore Group: Posters Posts: 1,495 Favorited Topics: 3 Joined: 6th August 2005 From: Pontypridd, Wales Member No.: 143,011 Device(s): SPV M1500 & SPV C550 |
Im just leaving but when Im on here next Ill post my inf file for my Homer Screen and give you a brief run through.
|
||
|
|
|||
|
Jan 30 2006, 18:59
Post
#9
|
||
![]() Addict Group: Posters Posts: 838 Joined: 4th May 2004 From: Bath Member No.: 42,238 Device(s): T-Mo Dash |
I tend to just edit the setup.xml files within cabs and then recompile/rezip/recab (not sure of the right word to use there) them. That way you can really see what's going on and it's quicker.
Just make sure you don't get lost in all the James -------------------- |
||
|
|
|||
Jan 30 2006, 19:08
Post
#10
|
|||
|
Enthusiast Group: Posters Posts: 185 Joined: 20th May 2004 Member No.: 43,898 |
QUOTE(Jamma14 @ Jan 30 2006, 18:59) I tend to just edit the setup.xml files within cabs and then recompile/rezip/recab (not sure of the right word to use there) them. That way you can really see what's going on and it's quicker. Just make sure you don't get lost in all the James Dont really understand any of that my knowledge on the subject is nout!! Yeah cheers w411y would appreciate that |
||
|
|
|||
|
Jan 30 2006, 19:17
Post
#11
|
||
![]() Addict Group: Posters Posts: 838 Joined: 4th May 2004 From: Bath Member No.: 42,238 Device(s): T-Mo Dash |
QUOTE(rizzles @ Jan 30 2006, 19:08) Dont really understand any of that my knowledge on the subject is nout!! Yeah cheers w411y would appreciate that Rizzles, I'd really recommend opening up a cab and looking at the _setup.xml. I learned homescreen designing like that as well and making cabs is similar but much easier to accomplish. This post has been edited by Jamma14: Jan 30 2006, 19:17 |
||
|
|
|||
Jan 30 2006, 21:10
Post
#12
|
|||
|
Enthusiast Group: Posters Posts: 185 Joined: 20th May 2004 Member No.: 43,898 |
I did have a look the other day but didnt really understand it.. thimk i need a guide for dummies!!
|
||
|
|
|||
Jan 31 2006, 15:51
Post
#13
|
|||
|
Enthusiast Group: Posters Posts: 185 Joined: 20th May 2004 Member No.: 43,898 |
where do i d/l all of this from??- cabwizsp.exe, cabwiz.ddf, and makecab.exe
|
||
|
|
|||
|
Jan 31 2006, 15:52
Post
#14
|
||
![]() Hardcore Group: Posters Posts: 1,495 Favorited Topics: 3 Joined: 6th August 2005 From: Pontypridd, Wales Member No.: 143,011 Device(s): SPV M1500 & SPV C550 |
You can download it from Microsfot in the SDK Deelopers kit but its quite a chunky download so Ill put the files you need in a rar. Give me 2 secs and Ill walk you through it. I need food first
|
||
|
|
|||
Jan 31 2006, 15:58
Post
#15
|
|||
|
Enthusiast Group: Posters Posts: 185 Joined: 20th May 2004 Member No.: 43,898 |
|||
|
|
|||
|
Jan 31 2006, 16:38
Post
#16
|
||
![]() Hardcore Group: Posters Posts: 1,495 Favorited Topics: 3 Joined: 6th August 2005 From: Pontypridd, Wales Member No.: 143,011 Device(s): SPV M1500 & SPV C550 |
Okay as GPCs site seems to be down Ill just repeat his words in my own way...
Unpack the download and put the folder "Cab Creating Tools" somewhere. Now you got to create an inf file which tells the cab what to do. So lets look at the one for my Homer Screen.... CODE [Version] Signature="$Windows NT$" CESignature="$Windows CE$" Provider="w411y" [CEStrings] Appname="w411y-HomerSimpsonWM5" [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.jpg"=3 "HomerDisabled.jpg"=3 "HomerPushed.jpg"=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.jpg" "HomerDisabled.jpg" "HomerPushed.jpg" "HomerWMP.skn" [DestinationDirs] CopyFiles1=0,"\Application Data\Home" CopyFiles2=0,"\Application Data\Sounds" CopyFiles3=0,"\Application Data\Microsoft\Media Player" [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 [DefaultInstall] CopyFiles=CopyFiles1, CopyFiles2, CopyFiles3 AddReg=RegData - Everything under [Version] is simple enough. Just change the 'Provider' -[CE Strings] is what will be said when asked to install. So when running it will say "Do you want to install w411y - HomerSimpson?" and ovcourse you click YES -[Source Disk Names] ... these are the names of folders in the Cab Creating Tools folder. So in the folder you just downloaded (including cabwizSP etc" there are also folders named 'Homer' which includes the images and XML. A folder for 'Sounds' and for files to do with the 'WMP Skin' -[Source Disc Files] ... here you list all the files involved in the cab and then give them a number. (as later on in the inf you will say Copy all files = 1 to the following folder...") -[CopyFiles1] ... these are all the files that are =1 (Same applies for [CopyFiles2] and [CopyFiles3]) -[DestinationDirs] ... these are where your files are copied. So [CopyFiles1] will end up in "Application Data\Home" -[RegData] ... these are the Reg tweaks I am including (for system screens) -[Default Install] .. this is what the cab does. So it will put the files from 'CopyFiles1/2/3' into their chosen 'DestinationDirs' and will apply the 'RegData' Now save the file (from Notepad or your chosen text editor) as *.inf and make sure file type is set to 'all files' Now drag your .inf file onto CabWizSP in the Cab Creating Tools folder and your Cab should appearin the folder. And thats it. One word of warning.... the paths on WM5 are different to WM2003... ie there is no Storage part to the WM5 OS
Attached File(s)
|
||
|
|
|||
Jan 31 2006, 16:47
Post
#17
|
|||
|
Enthusiast Group: Posters Posts: 185 Joined: 20th May 2004 Member No.: 43,898 |
Cheers thanks for that... seems fairly easy after it has been explained. I'll give it a go and hopefully post my homescreen with a cab.
1 question: when you unistall the theme does it return the extra screens back to default??? Thanks for your help.. wouldnt even have a made a homescreen if it wasnt for your guide!! ;o) |
||
|
|
|||
|
Jan 31 2006, 16:53
Post
#18
|
||
![]() RN, MS MVP-MD Group: Moderator Team Posts: 4,536 Joined: 7th August 2003 From: Legazpi, Philippines Member No.: 12,251 Device(s): ASUS P525, ASUS N10J-A1 |
Good work wally. =D>
|
||
|
|
|||
Jan 31 2006, 16:56
Post
#19
|
|||
|
Enthusiast Group: Posters Posts: 185 Joined: 20th May 2004 Member No.: 43,898 |
Yeah great work.... think you should start up your own "Guides for W411ies" business
|
||
|
|
|||
|
Jan 31 2006, 16:57
Post
#20
|
||
![]() Addict Group: Posters Posts: 838 Joined: 4th May 2004 From: Bath Member No.: 42,238 Device(s): T-Mo Dash |
Agreed, a good little tutorial, maybe you could add cab making into your pinned homescreen tutorial??
Jamma Ps. @rizzles, not completely sure, but I believe they are returned to default. |
||
|
|
|||
![]() ![]() |
Similar Topics
| Topic | Replies | Topic Starter | Views | Last Action | |
|---|---|---|---|---|---|
![]() |
Pinned: User tutorials and feedbacks on attaching new screen on your Omnia |
454 | lantony | 50,958 | Yesterday, 11:59 Last post by: steff195 |
![]() |
Pinned: Flashing tutorial for newbies and not only! |
28 | sector | 10,808 | Today, 05:08 Last post by: nxtvctm |
![]() |
Help updating from ACHJ2 to DXIA5 | 2 | rossyl | 94 | Yesterday, 17:47 Last post by: emmdeb |
![]() |
i910 Verizon factory rom / Reset to original settings | 8 | xm81bpm | 215 | Yesterday, 23:00 Last post by: blazingwolf |
![]() |
Need a sofetware to hide SOME calls and sms | 1 | mimo2000 | 57 | Yesterday, 18:36 Last post by: necosino |
![]() |
How to call Omnia Programs launcher list? | 2 | fclifton | 66 | Today, 06:30 Last post by: fclifton |
|
Lo-Fi Version | Time is now: 4th July 2009 - 10:06 |
Please visit our 'Plus Partners' - these companies support MoDaCo through 'MoDaCo Plus' - Click Here for more details!
ActiveKitten |
Aiko Solutions |
Ateksoft |
Binaryfish |
Conduits |
DeveloperOne |
eSoft Interactive |
FTouchSL |
Inesoft |
Lingvosoft |
monocube |
Mykesoft |
OmegaOne |
Omnisoft |
Opera Software |
Resco |
SBSH |
Slipstream Solutions |
SPB Software House |
Splashdata |
Sprite Software |
Syncdata |
Teksoft |
VITO |
WalkingHotSpot |
WebIS |
z4soft
Would your company like to become a 'Plus Partner'? Click Here to contact us!