Jump to content

Creating .cab file


Guest alhabibam

Recommended Posts

Guest alhabibam

Hi everyone,

Can anybody tell me how to create the .cab file for a created project (setup file).

I have tried the (build cab) button but it always fails, I don't know if I am missing something..

Can any one help me in that.

Thanks.

Link to comment
Share on other sites

Guest gpcarreon (MVP)

Hi,

Can you attach the ini file you are using?

EDIT:

You can visit the FAQ Section. There is a CAB creation guide there. I hope that helps.

;)

Link to comment
Share on other sites

Guest nedge2k

Build cab button?

You just drag your inf file onto the "cabwizsp.exe" file and it will make the cab ;)

Here's the inf file i used in my Longhorn theme ages ago, it shows u pretty much everything you would ever need (apart from start menu links):

[Version]Signature  = "$Windows NT$"        ; required as-is

Provider    = "nedge2k"          ; maximum of 30 characters, full app name will be ""

CESignature = "$Windows CE$"        ; required as-is

[CEStrings]

AppName    = "Longhorn 4015"        ; maximum of 40 characters, full app name will be ""

; InstallDir  = \Storage\      ;

[sourceDisksNames]                  ; directory that holds the application's files

1 = ,"Home",,C:\Documents and Settings\Lacey\Desktop\Longhorn Modaco\E200\Home

2 = ,"Screens",,C:\Documents and Settings\Lacey\Desktop\Longhorn Modaco\E200\Screens

3 = ,"Sounds",,C:\Documents and Settings\Lacey\Desktop\Longhorn Modaco\E200\Sounds

4 = ,"WMP",,C:\Documents and Settings\Lacey\Desktop\Longhorn Modaco\E200\WMP

5 = ,"Apps",,C:\Documents and Settings\Lacey\Desktop\Longhorn Modaco\E200\Apps

6 = ,"PocketMusic",,C:\Documents and Settings\Lacey\Desktop\Longhorn Modaco\E200\PocketMusic

7 = ,"Caller ID",,C:\Documents and Settings\Lacey\Desktop\Longhorn Modaco\E200\Caller ID

8 = ,"StartSound",,C:\Documents and Settings\Lacey\Desktop\Longhorn Modaco\E200\Sounds

9 = ,"Startup",,C:\Documents and Settings\Lacey\Desktop\Longhorn Modaco\E200\Startup

10 = ,"Fonts",,C:\Documents and Settings\Lacey\Desktop\Longhorn Modaco\E200\Fonts

[sourceDisksFiles]                  ; list of files to be included in .cab

LH2.home.xml = 1

LH2IconBar.gif = 1

LH2MRU.bmp = 1

LH2Scrn1.gif = 1

LH2Scrn2.gif = 1

LH2Scrn3.gif = 1

LH2Scrn3IB.gif = 1

LH2Scrn3sB.gif = 1

LH2Scrn4.gif = 1

LH2Scrn4IB.gif = 1

LH2Scrn5.gif = 1

LH2Scrn5IB.gif = 1

LH2Scrn6.gif = 1

LH2Scrn6IB.gif = 1

LH2Scrn7.gif = 1

LH2Scrn8.gif = 1

LH2Scrn9.gif = 1

LH2Scrn10.gif = 1

LH2Scrn11.gif = 1

LH2Scrn12.gif = 1

LH2Scrn13.gif = 1

LH2Scrn.gif = 1

LH2StartBar.gif = 1

LH2Wallpaper.gif = 1

async.gif = 2

boot1.gif = 2

boot2.gif = 2

call.gif = 2

contacts.gif = 2

dial.gif = 2

exclamation.gif = 2

incall.gif = 2

information.gif = 2

question.gif = 2

startmenu.gif = 2

volume.gif = 2

alarm.wav = 3

boogyman.wav = 3

BreakYourself.wav = 3

confirm.wav = 3

GiveMeAReason.wav = 3

gotmail10.wav = 3

kick_a.wav = 3

start.wav = 3

wastegate.wav = 3

disabled.gif = 4

wmplayer.skn = 4

pushed.gif = 4

wmplayer.gif = 4

xbar.bmp = 5

xbar.ini = 5

layout.xml = 6

text.gif = 6

back.gif = 6

buttons.gif = 6

LH1.pit = 7

LH2.pit = 7

LHA.pit = 7

start.wav = 8

Screenfix.exe = 9

Startup.exe = 9

BN Dragon.ttf = 10

[DefaultInstall]                    ; operations to be completed during install

CopyFiles  = HomeFiles, ScreenFiles, SoundFiles, WMPFiles, AppFiles, PocketMusicFiles, Caller ID, Startup, StartSound, Fonts

AddReg      = RegData

[DestinationDirs]                  ; default destination directories for each operation section

HomeFiles    = 0, \Storage\Application Data\Home

ScreenFiles    = 0, \Storage\Longhorn

SoundFiles  = 0, \Storage\Application Data\Sounds 

WMPFiles  = 0, \Storage\WMP

AppFiles  = 0, \Storage\Program Files\Xbar

PocketMusicFiles  = 0, \Storage\Program Files\PocketMusic\BaseSkin

Caller ID  = 0, \Storage\My Documents\IA Caller ID Photos

Startup  = 0, \Storage\Windows\Startup

StartSound  = 0, \Storage\Programs Files\Startup

Fonts  = 0, \Storage\Windows\Fonts

[HomeFiles]                ; copy operation file list

"LH2.home.xml"

"LH2IconBar.gif"

"LH2MRU.bmp"

"LH2Scrn1.gif"

"LH2Scrn2.gif"

"LH2Scrn3.gif"

"LH2Scrn3IB.gif"

"LH2Scrn3SB.gif"

"LH2Scrn4.gif"

"LH2Scrn4IB.gif"

"LH2Scrn5.gif"

"LH2Scrn5IB.gif"

"LH2Scrn6.gif"

"LH2Scrn6IB.gif"

"LH2Scrn7.gif"

"LH2Scrn8.gif"

"LH2Scrn9.gif"

"LH2Scrn10.gif"

"LH2Scrn11.gif"

"LH2Scrn12.gif"

"LH2Scrn13.gif"

"LH2Scrn.gif"

"LH2StartBar.gif"

"LH2Wallpaper.gif"

[screenFiles]

"async.gif"

"boot1.gif"

"boot2.gif"

"call.gif"

"contacts.gif"

"dial.gif"

"exclamation.gif"

"incall.gif"

"information.gif"

"question.gif"

"startmenu.gif"

"volume.gif"

[soundFiles]

"alarm.wav"

"boogyman.wav"

"BreakYourself.wav"

"confirm.wav"

"GiveMeAReason.wav"

"gotmail10.wav"

"kick_a.wav"

"start.wav"

"wastegate.wav"

[WMPFiles]

"disabled.gif"

"wmplayer.skn"

"pushed.gif"

"wmplayer.gif"

[AppFiles]

"xbar.ini"

"xbar.bmp"

[PocketMusicFiles]

"layout.xml"

"back.gif"

"text.gif"

"buttons.gif"

[Caller ID]

"LH1.pit"

"LH2.pit"

"LHA.pit"

[startup]

"Screenfix.exe"

"Startup.exe"

[startSound]

"start.wav"

[Fonts]

"BN Dragon.ttf"

[RegData]                          ; registry key list

HKLM,Software\Microsoft\Splash Screen, CarrierBitmap,, \Storage\Longhorn\boot2.gif

HKLM,Software\Microsoft\Splash Screen, CarrierShutdownBitmap,, \Storage\Longhorn\boot2.gif

HKLM,Software\Microsoft\Splash Screen, MSBitmap,, \Storage\Longhorn\boot1.gif

HKLM,Software\Microsoft\Splash Screen, MSShutdownBitmap,, \Storage\Longhorn\boot1.gif

HKLM,Software\Microsoft\Windows Media Player\Parameters,SkinDir,,"\Storage\WMP\"

HKLM,Software\Microsoft\Windows Media Player\Parameters,SkinFile,,wmplayer.skn

HKLM,Software\Microsoft\Shell\Rai\:Callalert, BKBitmapFile,,\Storage\Longhorn\call.gif

HKLM,Software\Microsoft\Shell\Rai\:ErrorBox, BKBitmapFile,, \Storage\Longhorn\exclamation.gif

HKLM,Software\Microsoft\Shell\Rai\:ExclamationBox, BKBitmapFile,, \Storage\Longhorn\exclamation.gif

HKLM,Software\Microsoft\Shell\Rai\:InformationBox, BKBitmapFile,, \Storage\Longhorn\information.gif

HKLM,Software\Microsoft\Shell\Rai\:QuestionBox, BKBitmapFile,, \Storage\Longhorn\question.gif

HKLM,Software\Microsoft\Shell\Rai\:VolDlg, BKBitmapFile,, \Storage\Longhorn\volume.gif

HKLM,Software\Microsoft\Shell\Rai\:MSCPROG, BannerImage,, \Storage\Longhorn\incall.gif

HKLM,Software\Microsoft\Shell\Rai\:MSCPROG, BKBitmapFile,, \Storage\Longhorn\startmenu.gif

HKLM,Software\Microsoft\Shell\Rai\:MSCdial, BannerImage,, \Storage\Longhorn\dial.gif

HKLM,Software\Microsoft\Shell\Rai\:MSCdial, BKBitmapFile,, \Storage\Longhorn\startmenu.gif

HKLM,Software\Microsoft\Shell\Rai\:MSClog, BKBitmapFile,, \Storage\Longhorn\startmenu.gif

HKLM,Software\Microsoft\Shell\Rai\:MSStart, BKBitmapFile,, \Storage\Longhorn\startmenu.gif

HKLM,Software\Microsoft\Shell\Rai\:MSCONTACTS, BKBitmapFile,, \Storage\Longhorn\contacts.gif

HKLM,Software\Microsoft\Shell\Rai\:MSSYNCAPP, BKBitmapFile,, \Storage\Longhorn\async.gif

HKCU,ControlPanel\Home, BgImage,, ""

HKCU,ControlPanel\Home, ColorScheme,, ""

HKCU,ControlPanel\Home, Scheme,, \Storage\Application Data\Home\LH2.home.xml

HKCU,ControlPanel\Sounds\SystemStart, Sound,, \Storage\Application Data\Sounds\start.wav

HKCU,ControlPanel\Sounds\SystemStart, Script,, ap

HKCU,ControlPanel\Sounds\MenuCommand, Script,, av0p

HKCU,ControlPanel\Sounds\MenuPopup, Script,, av0p

HKCU,ControlPanel\Sounds\Ringtone0, Script,, av0pr

HKCU,ControlPanel\Sounds\Ringtone0, Sound,, \Storage\Application Data\Sounds\GiveMeAReason.wav

HKCU,ControlPanel\Sounds\E-mail, Script,, av0p

HKCU,ControlPanel\Sounds\E-mail, Sound,, \Storage\Application Data\Sounds\gotmail10.wav

HKCU,ControlPanel\Sounds\SMS, Script,, av0p

HKCU,ControlPanel\Sounds\SMS, Sound,, \Storage\Application Data\Sounds\gotmail10.wav

HKCU,ControlPanel\Sounds\VoiceMail, Script,, av0p

HKCU,ControlPanel\Sounds\VoiceMail, Sound,, \Storage\Application Data\Sounds\gotmail10.wav

HKCU,ControlPanel\Sounds\SystemQuestion, Script,, av0p

HKCU,ControlPanel\Sounds\SystemQuestion, Sound,, \Storage\Application Data\Sounds\confirm.wav

HKCU,ControlPanel\Sounds\SystemHand, Script,, av0p

HKCU,ControlPanel\Sounds\SystemHand, Sound,, \Storage\Application Data\Sounds\BreakYourself.wav

HKCU,ControlPanel\Sounds\SystemExclamation, Script,, av0p

HKCU,ControlPanel\Sounds\SystemExclamation, Sound,, \Storage\Application Data\Sounds\BreakYourself.wav

HKCU,ControlPanel\Sounds\SystemAsterisk, Script,, av0p

HKCU,ControlPanel\Sounds\SystemAsterisk, Sound,, \Storage\Application Data\Sounds\kick_a.wav

HKCU,ControlPanel\Sounds\SystemDefault, Script,, av0p

HKCU,ControlPanel\Sounds\SystemDefault, Sound,, \Storage\Application Data\Sounds\kick_a.wav

HKCU,ControlPanel\Sounds\Warning, Sound,, \Storage\Application Data\Sounds\BreakYourself.wav

HKCU,ControlPanel\Sounds\Reminder, Script,, av0pr

HKCU,ControlPanel\Sounds\Reminder, Sound,, \Storage\Application Data\Sounds\alarm.wav

HKCU,ControlPanel\Sounds\Clock, Script,, av0pr

HKCU,ControlPanel\Sounds\Clock, Sound,, \Storage\Application Data\Sounds\alarm.wav

HKLM,SOFTWARE\Microsoft\RIL\OperatorNames, 23410,, Longhorn

HKLM,SOFTWARE\Microsoft\RIL\OperatorNames, 23433,, Longhorn

HKLM,Ident, Name,, Longhorn

HKCR,exefile,editflags,0x00010001,65536

HKLM,SOFTWARE\Microsoft\FontPath, FontPath,, \Storage\Windows\Fonts

and for making setup.exe files you need an ini file, which you drag over the "ezs.cmd" batch file:

[CEAppManager]Version      = 1.0

Component    = Longhorn

[Longhorn]

Description  = Phone Backup

Uninstall = Longhorn

CabFiles  = Longhorn.cab

Link to comment
Share on other sites

  • 4 weeks later...
Guest iRidiumX

sorry for jacking the thread. but could somebody please help me too? I'm trying to make a more complete home restore util (original author should be midnight. sorry for editting your util. I had to cause some screens were not reverted to defaults.), to restore the home theme. But i need help in compiling into a cab file. How do i write the inf file and how do i compile it using the cabwizsp.exe? i have visual studio. does it help?

thanks alot..

attached is the xml file which i edited.

_setup.xml

Link to comment
Share on other sites

Guest iRidiumX
Bit lazy going through the edited xml :D

Which part did you edit?

<{POST_SNAPBACK}>

um.. i added a few more of these

-

 

 

 

 

to get the other screens to reverto default. Now, i just have go get it into a cab file and test if it works.. ;)

Link to comment
Share on other sites

Guest gpcarreon (MVP)

You should have these values...

[AddRegistry]

HKLM,"Software\Microsoft\Shell\Rai\:Callalert","BKBitmapFile",0x00000000,"\Windows\call.gif"

HKLM,"Software\Microsoft\Shell\Rai\:Callalert","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:Callalert","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:ErrorBox","BKBitmapFile",0x00000000,"\Windows\yell.gif"

HKLM,"Software\Microsoft\Shell\Rai\:ErrorBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:ErrorBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:ExclamationBox","BKBitmapFile",0x00000000,"\Windows\yell.gif"

HKLM,"Software\Microsoft\Shell\Rai\:ExclamationBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:ExclamationBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:InformationBox","BKBitmapFile",0x00000000,"\Windows\info.gif"

HKLM,"Software\Microsoft\Shell\Rai\:InformationBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:InformationBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:QuestionBox","BKBitmapFile",0x00000000,"\Windows\ques.gif"

HKLM,"Software\Microsoft\Shell\Rai\:QuestionBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:QuestionBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:VolDlg","BKBitmapFile",0x00000000,"\Windows\volume.gif"

HKLM,"Software\Microsoft\Shell\Rai\:VolDlg","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:VolDlg","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:MSCprog","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSCprog","BannerImage",0x00000000,"\Windows\ms_mobile.gif"

HKLM,"Software\Microsoft\Shell\Rai\:MSCdial","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSCdial","BannerImage",0x00000000,"\Windows\ms_mobile.gif"

HKLM,"Software\Microsoft\Shell\Rai\:MSStart","BannerImage",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSStart","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSCONTACTS","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Windows Media Player 8\Parameters","SkinDir",0x00000000,"\Windows\"

HKLM,"Software\Microsoft\Windows Media Player 8\Parameters","SkinFile",0x00000000,"wmplayer.skn"

HKLM,"Software\Microsoft\Splash Screen","CarrierBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","CarrierShutdownBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","CarrierShutdownTimeout",0x00010001,2000

HKLM,"Software\Microsoft\Splash Screen","MSBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","MSShutdownBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","MSShutdownTimeout",0x00010001,15000

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapFile",0x00000000,"\Windows\branding.gif"

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:MSSYNCAPP","BKBitmapFile",0x00000000,"\Windows\syncall.gif"

HKLM,"Software\Microsoft\Shell\Rai\:MSSYNCAPP","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:MSSYNCAPP","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:APPView","BKDefaultGradient",0x00010001,1

Notice the 3 additional registry keys? AppView, MSSyncApp, and BrandingBox are SP2003 SE keys.

Link to comment
Share on other sites

Guest iRidiumX
You should have these values...

[AddRegistry]

HKLM,"Software\Microsoft\Shell\Rai\:Callalert","BKBitmapFile",0x00000000,"\Windows\call.gif"

HKLM,"Software\Microsoft\Shell\Rai\:Callalert","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:Callalert","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:ErrorBox","BKBitmapFile",0x00000000,"\Windows\yell.gif"

HKLM,"Software\Microsoft\Shell\Rai\:ErrorBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:ErrorBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:ExclamationBox","BKBitmapFile",0x00000000,"\Windows\yell.gif"

HKLM,"Software\Microsoft\Shell\Rai\:ExclamationBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:ExclamationBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:InformationBox","BKBitmapFile",0x00000000,"\Windows\info.gif"

HKLM,"Software\Microsoft\Shell\Rai\:InformationBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:InformationBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:QuestionBox","BKBitmapFile",0x00000000,"\Windows\ques.gif"

HKLM,"Software\Microsoft\Shell\Rai\:QuestionBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:QuestionBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:VolDlg","BKBitmapFile",0x00000000,"\Windows\volume.gif"

HKLM,"Software\Microsoft\Shell\Rai\:VolDlg","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:VolDlg","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:MSCprog","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSCprog","BannerImage",0x00000000,"\Windows\ms_mobile.gif"

HKLM,"Software\Microsoft\Shell\Rai\:MSCdial","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSCdial","BannerImage",0x00000000,"\Windows\ms_mobile.gif"

HKLM,"Software\Microsoft\Shell\Rai\:MSStart","BannerImage",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSStart","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSCONTACTS","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Windows Media Player 8\Parameters","SkinDir",0x00000000,"\Windows\"

HKLM,"Software\Microsoft\Windows Media Player 8\Parameters","SkinFile",0x00000000,"wmplayer.skn"

HKLM,"Software\Microsoft\Splash Screen","CarrierBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","CarrierShutdownBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","CarrierShutdownTimeout",0x00010001,2000

HKLM,"Software\Microsoft\Splash Screen","MSBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","MSShutdownBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","MSShutdownTimeout",0x00010001,15000

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapFile",0x00000000,"\Windows\branding.gif"

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:MSSYNCAPP","BKBitmapFile",0x00000000,"\Windows\syncall.gif"

HKLM,"Software\Microsoft\Shell\Rai\:MSSYNCAPP","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:MSSYNCAPP","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:APPView","BKDefaultGradient",0x00010001,1

Notice the 3 additional registry keys? AppView, MSSyncApp, and BrandingBox are SP2003 SE keys.

<{POST_SNAPBACK}>

er.. yea.. its for my xphone 2 that runs on sp2003 se. 8)

Link to comment
Share on other sites

Guest gpcarreon (MVP)

I believe the C500 RAI values are the same as that of the XPII. Take note most of the values are from midnight's Home Restore CAB for Smartphone2002 but the same CAB file works on my C500 (SP2003 SE).

Link to comment
Share on other sites

Guest iRidiumX

yea.. the values are almost the same.. just that midnight's version did not have MSSyncApp and afew others so it did not restore my phone completely to defaults..

so I'd be greatful if someone would guide me on how to write the inf and to compile it to a cab file. Thanks ;)

Link to comment
Share on other sites

Guest gpcarreon (MVP)

You need:

Cabwizsp.exe, makecab.exe, cabwiz.ddf = all included in the Smartphone 2002/2003 Software Development Kit (SDK). You can download the SDK from Microsoft.

This is the INI file I used:

[Version]

Signature   = "$Windows NT$"

Provider    = "AI"                              <---- Original CAB author

CESignature = "$Windows CE$"


[CEStrings]

AppName     = "Home Reset"             <----  Original CAB name


[SourceDisksNames]

1 = ,"Files",,.

[SourceDisksFiles]

restore.txt  =1



[DefaultInstall]

CopyFiles   = CopyToHomeDir

AddReg = AddRegistry


[DestinationDirs]

CopyToHomeDir = 0,"\IPSM"


[CopyToHomeDir]

"restore.txt",restore.txt



[AddRegistry]

HKLM,"Software\Microsoft\Shell\Rai\:Callalert","BKBitmapFile",0x00000000,"\Windows\call.gif"

HKLM,"Software\Microsoft\Shell\Rai\:Callalert","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:Callalert","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:ErrorBox","BKBitmapFile",0x00000000,"\Windows\yell.gif"

HKLM,"Software\Microsoft\Shell\Rai\:ErrorBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:ErrorBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:ExclamationBox","BKBitmapFile",0x00000000,"\Windows\yell.gif"

HKLM,"Software\Microsoft\Shell\Rai\:ExclamationBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:ExclamationBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:InformationBox","BKBitmapFile",0x00000000,"\Windows\info.gif"

HKLM,"Software\Microsoft\Shell\Rai\:InformationBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:InformationBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:QuestionBox","BKBitmapFile",0x00000000,"\Windows\ques.gif"

HKLM,"Software\Microsoft\Shell\Rai\:QuestionBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:QuestionBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:VolDlg","BKBitmapFile",0x00000000,"\Windows\volume.gif"

HKLM,"Software\Microsoft\Shell\Rai\:VolDlg","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:VolDlg","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:MSCprog","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSCprog","BannerImage",0x00000000,"\Windows\ms_mobile.gif"

HKLM,"Software\Microsoft\Shell\Rai\:MSCdial","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSCdial","BannerImage",0x00000000,"\Windows\ms_mobile.gif"

HKLM,"Software\Microsoft\Shell\Rai\:MSStart","BannerImage",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSStart","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Shell\Rai\:MSCONTACTS","BKBitmapFile",0x00000000,""

HKLM,"Software\Microsoft\Windows Media Player 8\Parameters","SkinDir",0x00000000,"\Windows\"

HKLM,"Software\Microsoft\Windows Media Player 8\Parameters","SkinFile",0x00000000,"wmplayer.skn"

HKLM,"Software\Microsoft\Splash Screen","CarrierBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","CarrierShutdownBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","CarrierShutdownTimeout",0x00010001,2000

HKLM,"Software\Microsoft\Splash Screen","MSBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","MSShutdownBitmap",0x00000000,"\Windows\ms_splash.gif"

HKLM,"Software\Microsoft\Splash Screen","MSShutdownTimeout",0x00010001,15000

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapFile",0x00000000,"\Windows\branding.gif"

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:MSSYNCAPP","BKBitmapFile",0x00000000,"\Windows\syncall.gif"

HKLM,"Software\Microsoft\Shell\Rai\:MSSYNCAPP","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:MSSYNCAPP","BKUnselected",0x00000000,"COLOR_alertWINDOW"

HKLM,"Software\Microsoft\Shell\Rai\:APPView","BKDefaultGradient",0x00010001,1

Save the file as 'Home Restore.INI' . An equivalent 'restore.txt' should be present inside the folder where you have the cabwizsp tools. Drag the INI to cabwiz.exe then you'll get...

HomeReset.2K3SE.CAB

I just added 2K3SE to the filename, still credits to mid for the 2002 CAB file.

Link to comment
Share on other sites

Guest iRidiumX

cool. thanks alot dude! You reply real quick. ;) i'll give it a try. By the way, in the ini file, i see [AddRegistry]. Do you happen to know if I wanted to remove a specific key from the registery, do i use [RemoveRegistry]?

The ini looks kinda complicated. I would need some time do undrestand what each code does. And eh.. the segment you quoted doenst look complete. Would you mind sending me the full ini please?

One more thing, How about the xml file? Is it of any use?

Sorry for asking so many questions. I just had my XP2 for 6 days. Still very new to it. :D

And thanks again, you're of great help!

Edited by iRidiumX
Link to comment
Share on other sites

Guest gpcarreon (MVP)

No problem. Happy to help. ;)

Lets take for example 'BrandingBox' key. It has 3 sub-keys:

KEYS ------------- TYPE ---- VALUE DATA

BKBitmapFile ------------- REG_SZ ---- \Windows\branding.gif

BKBitmapTransparent---- REG_DWORD ---- 0x00ff00ff (16711935)

BKUnselected -------------REG_SZ ----- COLOR_alertWINDOW

Reg_sz means a String data

Reg_Dword means a Hex/Dec data

So translating the above info, it will correspond to ... of our INI file:

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapFile",0x00000000,"\Windows\branding.gif"

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

To remove say for example, BKBitmapFile, just delete the corresponding line then save your file.

Once satisfied with the INI data, do the dragging to come up with a cab file installer.

Link to comment
Share on other sites

Guest gpcarreon (MVP)
The ini looks kinda complicated. I would need some time do undrestand what each code does. And eh.. the segment you quoted doenst look complete. Would you mind sending me the full ini please?

<{POST_SNAPBACK}>

You'll get used to it. What do you mean not complete? What is a complete INI file? You can try the attached CAB file above and see if it works. ;)

One more thing, How about the xml file? Is it of any use?

<{POST_SNAPBACK}>

For reference purposes. :D

Link to comment
Share on other sites

Guest gpcarreon (MVP)

What I am explaining above is CAB File Installation.

You can also do a CAB provisioning. You deal with structures like...

<wap-provisioningdoc>

<characteristic type="Registry">

<characteristic type="HKLM\Software\Microsoft\Inbox\Settings">

<parm name="SMSNoSentMsg" value="1" datatype="string" />

</characteristic>

</characteristic>

</wap-provisioningdoc>
Cab file installations write reg data plus you have the option to uninstall it. Cab provisioning writes registry values but I think you cannot revert to pre-tweaked registry state. Nothing to uninstall. why? Because you do not have the 'InstallPhase' command. Cab file installation sometimes inlcude:
[CEStrings]

AppName="MY APP NAME"

InstallDir="%CE1%\MY APP NAME"

The InstallDir code allows the end user to choose target location during installation process (Phone or \Storage Card)

%CE1% is an example of a WinCE macro. The entire code above translating to: \Storage or \Storage Card\Program Files\MY APP NAME ;)

Link to comment
Share on other sites

Guest iRidiumX
Lets take for example 'BrandingBox' key. It has 3 sub-keys:

KEYS            -------------    TYPE          ----  VALUE DATA

BKBitmapFile ------------- REG_SZ        ----  \Windows\branding.gif

BKBitmapTransparent---- REG_DWORD ----  0x00ff00ff (16711935)

BKUnselected -------------REG_SZ        ----- COLOR_alertWINDOW

Reg_sz means a String data

Reg_Dword means a Hex/Dec data

So translating the above info, it will correspond to ... of our INI file:

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapFile",0x00000000,"\Windows\branding.gif"

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapTransparent",0x00010001,16711935

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKUnselected",0x00000000,"COLOR_alertWINDOW"

To remove say for example, BKBitmapFile, just delete the corresponding line then save your file.

Once satisfied with the INI data, do the dragging to come up with a cab file installer.

<{POST_SNAPBACK}>

May I know why is one 0x00ff00ff and the other 0x00010001?

You mentioned to remove BKBitmapFile, delete the corresponding line. Do you mean delete the whole HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapFile",0x00000000,"\Windows\branding.gif" or delete the 0x00000000,"\Windows\branding.gif?

Link to comment
Share on other sites

Guest gpcarreon (MVP)

Yes. Delete the entire line for BKBitmapFile.

HKLM,"Software\Microsoft\Shell\Rai\:BrandingBox","BKBitmapFile",0x00000000,"\Windows\branding.gif"

Doing so, your CAB file won't write or alter the value for BKBitmapfile.

Why 0x00ff00ff (16711935) ?

00ff00ff = Hex Base

16711935 = equivalent Decimal Base

...both part of REG_DWORD Value.

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.