Windows Phone @ MoDaCo: Create CAB files to change registry - Windows Phone @ MoDaCo

Jump to content

Galaxy Nexus Review
We put the Galaxy Nexus and Ice Cream Sandwich through their paces.

Google Music Launch
Google bring Music out of beta and launch their music store.

MoDaCo Plus / Ad Free
Hate ads? Want cool stuff? Sign up for a MoDaCo Plus / MoDaCo Ad Free account with Online Kitchen access!

Close
Open
Close
  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

Create CAB files to change registry How do you do it?
-----


#1 User is offline   MitchellO 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,122
  • Joined: 20-February 05
  • Location:Leonay, NSW
  • Devices:HTC Desire

Posted 20 January 2006 - 06:28 AM

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!

0

Sponsored Links


#2 User is offline   gpcarreon (MVP) 

  • RN, MS MVP-MD
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 4,528
  • Joined: 07-August 03
  • Location:Legazpi, Philippines
  • Devices:Cherry Mobile Eclipse

Posted 20 January 2006 - 07:14 AM

You need an INF then cabwizsp.exe, cabwiz.ddf, and makecab.exe. Check the sample INF below

[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.

2425a96d204b681be05922b8a6b210c80f03f237
0


#3 User is offline   rizzles 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 20-May 04

Posted 30 January 2006 - 01:12 PM

is there anywhere that has a guide of how to do this??

0


#4 User is offline   chucky.egg 

  • Did I say that out loud?
  • PipPipPipPipPipPip
  • Group: MoDaCo Ad Free
  • Posts: 4,724
  • Joined: 20-August 03
  • Location:Kent, England
  • Interests:Sleeping
  • Devices:Desire S
  • Twitter:@chucky_egg

Posted 30 January 2006 - 01:23 PM

You could start here:
MSDN

This post has been edited by chucky.egg: 30 January 2006 - 01:24 PM

0


#5 User is offline   rizzles 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 20-May 04

Posted 30 January 2006 - 01:29 PM

Hmmm looks a bit above my skills!!!

0


#6 User is offline   w411y 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,516
  • Joined: 06-August 05
  • Location:Pontypridd, Wales
  • Devices:SPV M1500 & SPV C550

Posted 30 January 2006 - 06:20 PM

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

0


#7 User is offline   rizzles 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 20-May 04

Posted 30 January 2006 - 06:40 PM

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...

0


#8 User is offline   w411y 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,516
  • Joined: 06-August 05
  • Location:Pontypridd, Wales
  • Devices:SPV M1500 & SPV C550

Posted 30 January 2006 - 06:41 PM

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.

0


#9 User is offline   Jamma14 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 863
  • Joined: 04-May 04
  • Location:Bath
  • Devices:T-Mo Dash

Posted 30 January 2006 - 06:59 PM

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 's!


James

www.JammaSoft.tk

SPV e100 ----> i-mate sp3i ----> SPV c550 ----> T-Mobile Dash
0


#10 User is offline   rizzles 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 20-May 04

Posted 30 January 2006 - 07:08 PM

Jamma14, on Jan 30 2006, 18:59, said:

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 's!
James
<{POST_SNAPBACK}>


Dont really understand any of that my knowledge on the subject is nout!!

Yeah cheers w411y would appreciate that

0


#11 User is offline   Jamma14 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 863
  • Joined: 04-May 04
  • Location:Bath
  • Devices:T-Mo Dash

Posted 30 January 2006 - 07:17 PM

rizzles, on Jan 30 2006, 19:08, said:

Dont really understand any of that my knowledge on the subject is nout!!

Yeah cheers w411y would appreciate that
<{POST_SNAPBACK}>

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: 30 January 2006 - 07:17 PM

www.JammaSoft.tk

SPV e100 ----> i-mate sp3i ----> SPV c550 ----> T-Mobile Dash
0


#12 User is offline   rizzles 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 20-May 04

Posted 30 January 2006 - 09:10 PM

I did have a look the other day but didnt really understand it.. thimk i need a guide for dummies!!

0


#13 User is offline   rizzles 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 20-May 04

Posted 31 January 2006 - 03:51 PM

where do i d/l all of this from??- cabwizsp.exe, cabwiz.ddf, and makecab.exe

0


#14 User is offline   w411y 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,516
  • Joined: 06-August 05
  • Location:Pontypridd, Wales
  • Devices:SPV M1500 & SPV C550

Posted 31 January 2006 - 03:52 PM

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 :)

0


#15 User is offline   rizzles 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 20-May 04

Posted 31 January 2006 - 03:58 PM

w411y, on Jan 31 2006, 15:52, said:

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 :)
<{POST_SNAPBACK}>


Ok mate, cheers!!

0


#16 User is offline   w411y 

  • Hardcore
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 1,516
  • Joined: 06-August 05
  • Location:Pontypridd, Wales
  • Devices:SPV M1500 & SPV C550

Posted 31 January 2006 - 04:38 PM

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....

[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)


0


#17 User is offline   rizzles 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 20-May 04

Posted 31 January 2006 - 04:47 PM

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)

0


#18 User is offline   gpcarreon (MVP) 

  • RN, MS MVP-MD
  • PipPipPipPipPipPip
  • Group: Members
  • Posts: 4,528
  • Joined: 07-August 03
  • Location:Legazpi, Philippines
  • Devices:Cherry Mobile Eclipse

Posted 31 January 2006 - 04:53 PM

Good work wally. =D>

2425a96d204b681be05922b8a6b210c80f03f237
0


#19 User is offline   rizzles 

  • Enthusiast
  • PipPipPip
  • Group: Members
  • Posts: 187
  • Joined: 20-May 04

Posted 31 January 2006 - 04:56 PM

Yeah great work.... think you should start up your own "Guides for W411ies" business

0


#20 User is offline   Jamma14 

  • Addict
  • PipPipPipPipPip
  • Group: Members
  • Posts: 863
  • Joined: 04-May 04
  • Location:Bath
  • Devices:T-Mo Dash

Posted 31 January 2006 - 04:57 PM

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.

www.JammaSoft.tk

SPV e100 ----> i-mate sp3i ----> SPV c550 ----> T-Mobile Dash
0


Sponsored Links

Share this topic:


  • 4 Pages +
  • 1
  • 2
  • 3
  • Last »
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2012. MoDaCo uses IntelliTxt technology. Privacy Policy / Contact Details.

Skin and Language

Sign in here


Sign in options
Log in with Facebook Log in with Twitter   Go to advanced login Register Now!