Jump to content

Cab containing Cab?? Hard reset work around


Recommended Posts

Guest cougal96
Posted

My phone decided it wanted to hard reset yesterday after a few reg tweaks :roll:

i was just wondering if it would be possible if i was to create a Cab file contaning all the Cab's i have dowloaded previously to install all my programs quickly rather than going through each cab "install/storage card/OK" :wink: and how would i go about doing this. i have never written a cab before so i need the complete low down if it is possible!

Guest edgecrush3r
Posted

I've created a small c# app, that creates the correct DDF files to create a cab, at the moment it only allows you one file per .CAB (as I use it for that purpose only..)

Guest edgecrush3r
Posted

I will write a small SWeeeet Tutorial in a second ... !!!!

Guest edgecrush3r
Posted

first I need to check if this forum supports displaying as TEXT

Guest edgecrush3r
Posted

Okay: Lets create a CAB File, that installs a background and a ringtone..

Requirements : MakeCAB.exe (see the SDK or install VisualStudio)

Notepad.exe or another text-editor.

1) create a directory, and copy the file(s) you want to install to this directory.

As example I will install a background called "HomerTrix.jpg" and a ringtone called "prodigy.wav".

2) create a file named "_setup.xml" in the same directory and use a notepad to edit it.

This is the actual installer config-file, that will be used by the installer which is executed once .CAB got selected.

3) copy and paste the following

So you are probarbly going to repeat and change, steps starting between the node

....

....

4) MakeCab.exe is a file from MS, which allows you to create .CAB files.

Next we are going to create an .dds file, which is used to define how the .CAB file itself has to be created and which files it should include.

In the same directory create a file called "myinstall.dds" and edit it with your favorite editor.

Note: Smartphone .CAB files are Uncompressed .CAB files. CAB files in itself is related the the ZIP family).

5) Copy and paste the following:

; DIAMOND directive file for "type name of Cabfile without quotes"

.OPTION EXPLICIT

; Generate errors on variable typos

.Set CabinetNameTemplate="MyInstall.cab"

.Set Cabinet=on

.Set Compress=off

;** The files specified below are stored, compressed, in cabinet files

"_setup.xml"

"HomerTrix.jpg"

"prodigy.wav"

6) Finally, lets create the .CAB file using MakeCab.exe from the command-line.

Open the command promt and change the directory to your working folder.

Type and Execute:

MAKECAB /D COMPRESS=OFF /F myinstall.dds

7) Finished !!!./.. Your CAB file should be in the Disk1 folder...

Cheers,

edgecrush3r

----

PS: I bet there are other ways to do the same... Please give me a simpler solution if available..

Guest edgecrush3r
Posted

Note:

The line:

Is the actual value displayed in the "Remove software" screen.

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.