[8125, K-JAM, P4300, MDA Vario General] guttrhead:
AUTO INSTALL CAB FILE AND CUSTOM AUTO CONFIG

So new ways to customize the KJAM

So further to my discovery yesterday I have dug around and discovered the following

The AutoRun.exe contained within the \ExtendedRom\of your KJAM is hard coded, which means that if you place any file (.CAB) which you would want it to install and rename it..

Original file = I_want_this_file_to_auto_install.cab

To…

New File Name = Default_ I_want_this_file_to_auto_install.cab

By adding “Default_” to the beginning of the name it is also AUTO INSTALLED

BUT and it’s a BIG BUT only WM5.0 APPS will be installed as installing earlier apps makes the PDA ask a question “this was designed for an er..” and as you cant press any buttons it don’t get installed…

SO WHAT CAN WE DO…

Well did you know that if you go to http://xdaforums.com/front_page.php and register and then go search for the JASJAR Extended Rom

You might well find a link in this thread… http://xdaforums.com/viewtopic.php?t=28629&s...ighlight=extendedrom

Now if you were to download it and look inside you would also find a different Autorun.exe which reads a config.txt file

Verey interesting you might think..

“What if I wanted to make my own Custom Auto config ?” is a question which you might well ask..

Well whilst we can not condone such things, in the interest of helping you understand how this different Autorun.exe functions, I’ll take you through an example, please do understand that it is against all the policies of this Board to entice you do download software from the internet and to install this on your own device.

If you however feel compelled to do this for yourself, please be aware that neither myself, PPCD or any of our sponsors can be held responsible in any way for any losses or damages incurred by you or any other persons resulting from information contained here in.

Lesson 1) The Autorun.exe

This file is an executable..but only on a PDA running wm5. It reads a file which is present in the \Extended_Rom\ called config.txt. This app understands certain commands such as

LOCK:Enabled ………………..which locks the Screen and Keys

LOCK: Disabled……………….. which Unlocks the Screen and Keys

CPY1:\Target\Target File.ext…..Which tells it that this file in this folder should be copied

CPY2:\Destination\Destination_File.ext…Which tells it where to copy the file to and what it should be called

CAB: \ Target \ Target_File_to_install.CAB…Tells it to install a cab file

RST: Reset………….Guess what ..Yep resets the PDA

All pretty basic stuff

Lesson 2) So what could I do …if I wanted to..

Little Johnny wants to create a Custom installation routine for his new PDA and did NOT want that nasty default autorun to install the antivirus files which would slooooooooow his new pet down.

a) He would like some CAB Files installed

b) Whilst he would like other to be simply copied so that he can install them later (He knows that if he just allows them to auto install instead that they will be put in to main memory, and he would like to have them on his SD Card instead)

c) He would like to put some Custome Ring Tones in to the \Windows\Ringers directory

d) He would like to put some wav files in to the \Windows directory so that he could use them for ALARMS and NOTIFICATIONS.

1) He creates a file in note pad called config.txt

2) Has he would not like the Device to be disturbed he first enters

a. LOCK:Enabled

3) The Files he would like to AUTO INSTALL are :-

a. Default_CAB-shortcut-CDL-08Sep05.CAB

b. Default_cdl_wwe_version.cab

c. Default_ie_view.sa.cab

4) Then he would have to enter :-

a. CAB: \Extended_ROM\Default_CAB-shortcut-CDL-08Sep05.CAB

b. CAB: \Extended_ROM\Default_cdl_wwe_version.cab

c. CAB: \Extended_ROM\Default_ie_view.sa.cab

5) Now he wants to have some files simply copied, he desides on coping them to \My Documents\Business\ so that he can find them quickly and install them later. The files he wants to copy are:

a. Default_tcmdpocketarm.CAB (Total Commander Freeware found at http://www.ghisler.com/pocketpc.htm)

b. Default_Backgammon_PPC_IMAM001.CAB

c. Default_SkypeForPocketPCnonxScale.CAB

d. Default_SmartDialing_enable_0915_signed.CAB

6) Thus he enters :-

a. CPY1:\Extended_ROM\Default_tcmdpocketarm.CAB

b. CPY2:\My Documents\Business\Default_tcmdpocketarm.CAB

c. CPY1:\Extended_ROM\Default_Backgammon_PPC_IMAM001.CAB

d. CPY2:\My Documents\Business\Default_Backgammon_PPC_IMAM001.CAB

e. CPY1:\Extended_ROM\Default_SkypeForPocketPCnonxScale.CAB

f. CPY2:\My Documents\Business\Default_SkypeForPocketPCnonxScale.CAB

g. CPY1:\Extended_ROM\Default_SmartDialing_enable_0915_signed.CAB

h. CPY2:\My Documents\Business\Default_SmartDialing_enable_0915_signed.CAB

7) No he wants to get those custom sounds and ringers installed, these being

a. MyNeatSMSMsg.WAV………...A cool neat SMS Sound ! (Can only be wav)

b. MyNeatNewAlarmSound.WAV..A cool neat ALARM Sound ! (Can only be wav)

c. MyReallyCoolRinger.WAV…….A cool neat RINGER Sound ! (Could be .MP3, .MID or .wav)

8) So he enters:-

a. CPY1:\Extended_ROM\MyNeatSMSMsg.WAV

b. CPY2:\Windows\ MyNeatSMSMsg.WAV

c. CPY1:\Extended_ROM\MyNeatNewAlarmSound.WAV

d. CPY2:\Windows\ MyNeatNewAlarmSound.WAV

e. CPY1:\Extended_ROM\MyReallyCoolRinger.WAV

f. CPY2:\Windows\Rings\ MyReallyCoolRinger.WAV

9) Now Johnny is nearly finish so he completes the new config.txt with the following lines

a. LOCK: Disabled

b. RST: Reset

10) His now finished config.txt looks like this.

CAB: \Extended_ROM\Default_CAB-shortcut-CDL-08Sep05.CAB

CAB: \Extended_ROM\Default_cdl_wwe_version.cab

CAB: \Extended_ROM\Default_ie_view.sa.cab

CPY1:\Extended_ROM\Default_tcmdpocketarm.CAB

CPY2:\My Documents\Business\Default_tcmdpocketarm.CAB

CPY1:\Extended_ROM\Default_Backgammon_PPC_IMAM001.CAB

CPY2:\My Documents\Business\Default_Backgammon_PPC_IMAM001.CAB

CPY1:\Extended_ROM\Default_SkypeForPocketPCnonxScale.CAB

CPY2:\My Documents\Business\Default_SkypeForPocketPCnonxScale.CAB

CPY1:\Extended_ROM\Default_SmartDialing_enable_0915_signed.CAB

CPY2:\My Documents\Business\Default_SmartDialing_enable_0915_signed.CAB

CPY1:\Extended_ROM\MyNeatSMSMsg.WAV

CPY2:\Windows\ MyNeatSMSMsg.WAV

CPY1:\Extended_ROM\MyNeatNewAlarmSound.WAV

CPY2:\Windows\ MyNeatNewAlarmSound.WAV

CPY1:\Extended_ROM\MyReallyCoolRinger.WAV

CPY2:\Windows\Rings\ MyReallyCoolRinger.WAV

LOCK: Disabled

RST: Reset

Lesson 3) So where did he get the files and mor important what did he do with them.

To complete your education I would like to explain exactly how little Johnny got a hold of the files (Default_) mention in lesson 2) above.

1) He downloaded Total commander for PPC (http://www.ghisler.com/pocketpc.htm) and installed it (Windows Installer Version) on both his PC and PDA after the install he made sure that he ActiveSynced and Ran the file on the PDA

2) He again downloaded the CAB version from the same site

3) He placed this in a Directory of his SD card called \GoAuto and created another folder called \AutoBackup, both in the root of the SD CARD

4) On the PDA he typed in the ENTER BOX at the top of the Total Commander screen exactly the Word “\Exteneded_Rom” making sure that the spelling and capitalization were correct

5) He was then presented with a display showing the contents of this otherwise hidden folder.

6) He quickly selected from the TC menu the word “Show”…this brought up a Dialogue with many options. He selected “Single window mode”, this brought up another dialog, here he selected “Virtual 2 window mode”

7) Now by selecting the “>” he had to file display windows

8) He Depressed the “>” which showed him the root of his device, here he selected “Storage card”, and then “\AutoBackup”, pressing the “<” now brought him back to the “hidden folder”

9) He he dragged his stylus across the screen, thus selecting all the files and after pressing the 2 icon at the bottom of the screen , he was asked where he would like to copy or move the files.

10) He made sure that the Diloge showed “\Storage Card\AutoBackup\*.*” and after depressing Move. All those nasty files were moved on to his SD card.

11) He reconnected his PDA to his PC, and via ActiveSync and “Explore ”, he was able to select his storage card.

12) He copied the contents of “Storage_Card\AutoBackup\” to his PC for safe keeping.

13) As this copy now contained the some files which he wanted , he copied the files in question on to his SD Card, placing them in the “\GoAuto” Folder.

14) After coping the remain files (wav, mid,…) which he wanted to auto install, he created a “Config.Txt’ as described in Lesson 2), which he also placed in to the folder.

15) KNOWING that the original “Autorun.exe” would not install the files as per this config.txt, he proceded to go search on xda-developers for the rom image, he then extracted the other ‘Autorun.exe” and placed this also in the folder \GoAuto

16) Back on his PDA he started “TC” again, and reselected the “\Extended_Rom\” and via the “Virtual 2 window mode” also the “\Storage Card\GoAuto\”

17) He then procedded to select all the files in the “\GoAuto” folder and copied them all across to the “\Extended_Rom\” folder.

18) He was now able to HARD RESET his device and watched as the PDA installed and copied the files as requested.