yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] jandeeg:
Also my SDconfig seemed to fail too.

The files we're present when UC was to run. Then it just gave me "file not found" errors and then cabs that we're to be installed we're gone!

here's my sdconfig

LOCK:Enabled
CAB: \Internal Storage\cab\InstallDeviceMemory\Audio_Lighter_Boost.cab
CAB: \Internal Storage\cab\InstallDeviceMemory\MyPhone_Beta_WM_Professional.cab
CPY1:\Internal Storage\cab\Settings\OPERA6.ADR
CPY2:\Windows\Opera9\OPERA6.ADR
CPY1:\Internal Storage\cab\Settings\cookies4.dat
CPY2:\Windows\Opera9\cookies4.dat
CPY1:\Internal Storage\cab\Settings\wand.dat
CPY2:\Windows\Opera9\secure\wand.dat
CPY1:\Internal Storage\cab\Settings\opera.ini
CPY2:\Windows\Opera9\opera.ini
CPY1:\Internal Storage\cab\Settings\Contact_Card\eT9Cdb.Cdb
CPY2:\Windows\eT9Cdb.Cdb
CPY1:\Internal Storage\cab\Settings\Contact_Card\eT9Cdb.Rdb
CPY2:\Windows\eT9Cdb.Rdb
CPY1:\Internal Storage\cab\Settings\Contact_Card\MyContactCard_MyPhoto.jpg
CPY2:\Windows\MyContactCard_MyPhoto.jpg
CPY1:\Internal Storage\cab\Settings\Games\hexic-savegame.pdb
CPY2:\hexic-savegame.pdb
CPY1:\Internal Storage\cab\Settings\Games\Hexic-Settings.pdb
CPY2:\Hexic-Settings.pdb
XML: \Internal Storage\cab\Settings\SleuthProvisioning.xml
LOCK:Disabled
RST: Reset
[Windows Mobile Software Development] mma123:
Assuming that the paths are OK, I would suggest you to check file encoding.

It should be ANSI + Windows new line (CR + LF) format.
[Windows Mobile Software Development] jandeeg:
Fixed my provisioning for the most part.. only need to include the Timezone and Currency settings. Turns out I was just being stupid and not reading correctly. :/
[Windows Mobile Software Development] Forever022:
Question... I've learned to use the sdconfig.txt to install the programs I choose during flashing....

But I have a few programs that require a key to be registered and would be nice to have them automatically done every time I flash (which is every 2-3 days).... Im not a programer and the Xml thing just seems to be too complicated....

Is there an easier way ? Backup or Reg keys ? and then restore after install? Dont know how to do that so well.perhaps a few pointers?

Thanks
[Windows Mobile Software Development] Pudl:
favorite people and program tab

Has anyone a hint how to solve this problem?

Greetings Pudl
[Windows Mobile Software Development] RoryB:
The last three are registry settings that you can extract and then run under UC.

Launcher in a Diamond with TouchFlo3 is HKLM\Software\HTC\Manila\ProgramLauncher keys 0 through whatever.

The first is something like EMAIL2 in what is probably a CM setting. Search for rapiconfig tool.
[Windows Mobile Software Development] Pudl:
Thanks for this fast answer.
[Windows Mobile Software Development] Pudl:
Disable GPRS after a certain time

Hello two another Questions:

I want to switch off my GPRS/Data connection after a certain time because I don't have a Data-Flat Rate. Under WM6.1 I have done this with the "Advanced config Tool", but under WM 6.5 this seems not to work. Now I try to do this with UC but I did not find the Registry where you can set this. Does anyone know the Registry key?

Does anyone know the Regitry key for switching TouchFlo on and off?

Thanks in advance

Greetings Pudl
[Windows Mobile Software Development] freelancex:
Hi, have searched for this but can not find an answer to it.

I only started looking at UC yesterday, and so far I think I have done everything right to get my phone to a point where I barely have to do anything myself.

My question is; I use SPB Backup to backup all my contacts/texts/emails/Tasks/Appointments and Documents. I use a self contained exe file for this. Can I get this file to run during UC and if so, can it be run silently?

So far my config file looks like this:

LOCK:Enabled
CAB: \Storage Card\Cabs\CMYLXGOs.Rhodium.SMS.App-Disable.cab
XML: \Storage Card\Cabs\Owner Information.xml
XML: \Storage Card\Cabs\Backlight.xml
XML: \Storage Card\Cabs\Device ID.xml
XML: \Storage Card\Cabs\AdvancedConfig.xml
XML: \Storage Card\Cabs\Manila.xml
XML: \Storage Card\Cabs\Clock.xml
XML: \Storage Card\Cabs\Regional Settings.xml
XML: \Storage Card\Cabs\TimeZone.xml
XML: \Storage Card\Cabs\TimeZone 2.xml
CPY1:\Storage Card\Cabs\Clean RAM.lnk
CPY2:\Windows\Start Menu\Programs\Utilites\Clean RAM.lnk
CPY1:\Storage Card\Cabs\Core Player.lnk
CPY2:\Windows\Start Menu\Programs\Multimedia\Core Player.lnk
CPY1:\Storage Card\Cabs\reSTART.lnk
CPY2:\Windows\Start Menu\Programs\Utilites\reSTART.lnk
CPY1:\Storage Card\Cabs\SKTools.lnk
CPY2:\Windows\Start Menu\Programs\Utilites\SKTools.lnk
CPY1:\Storage Card\Cabs\SpbBackup.lnk
CPY2:\Windows\Start Menu\Programs\Utilites\SpbBackup.lnk
CPY1:\Storage Card\Cabs\TomTom Navigator.lnk
CPY2:\Windows\Start Menu\Programs\GPS\TomTom Navigator.lnk
CPY1:\Storage Card\Cabs\myPlayer.lnk
CPY2:\Windows\Start Menu\Programs\Multimedia\myPlayer.lnk
LOCK:Disabled
RST: Reset

I want to put it to run before all my shortcuts are copied over (this is because all my cabs are installed on storage card and stay there.).

Can this be done?

Also is it ok to have lots of xml files run? As I am new to this, it has taken me a while to create seperate ones without confusing myself by having one big long one.

I can post contents of my xml files if it is any help. If I can get my SPB backup installed during UC, all I will need to config after boot is the date and time. (although this is done during the spb restore but not sure how I would if I ran it silently...)

Thanks in advance guys and sorry if some of this has already been answered. I have searched alot. That is how I have got so far already. :)
[Windows Mobile Software Development] mma123:
Yes. You may want to use the EXEC found here:

http://xdaforums.com/showpost.php?p=1897212&postcount=6

I use a mortscript script without a problem.

I run a provisioning XML as large as 30K. Everything works perfectly.

I am not sure whether SDAutoRun.exe or some other module takes care of files in SDConfig.txt. Whoever reads the files, I guess, it is done line by line and file size shouldn't matter.
[Windows Mobile Software Development] dadeadman:
Can .jar files be installed with UC?
[Windows Mobile Software Development] Noonski:
Nope unfortunatly not.
[Windows Mobile Software Development] RoryB:
Anyone try runwait in mortscript to run a jar file? I do not use them, but mortscript might be able to run it for you.
[Windows Mobile Software Development] freelancex:
Thanks mate for replying. Thing is if I use SDConfig builder it says an exec command cant have any spaces in it. The command looks like this:

EXEC:\Storage Card\Cabs\Backup.exe

Is that right or not?
[Windows Mobile Software Development] mma123:
I asked a similar question few days back. l3v5y confirmed that EXEC can't handle space. That's why, the command is often written with CPY1,2:

CPY1:\Storage Card\mortscript.mscr

CPY2:\Temp\mortscript.mscr

EXEC:\Temp\mortscript.mscr
[Windows Mobile Software Development] bopp:
For some reason i do not get the possibility for userinput when needed! Someone knows what i do wrong?

LOCK:Enabled
CAB: [cabs with no user input needed]
LOCK:Disabled
HIDE:Enabled
CAB: [cabs with user input needed]
LOCK:Enabled
HIDE:Disabled
CAB: [cabs with no user input needed]
LOCK:Disabled
RST: Reset
[Windows Mobile Software Development] mma123:
Looks fine to me. Do your first set of cabs (without input) get installed properly?
[Windows Mobile Software Development] kidoucorp:
Hi,

I'm facing a small problem with SDAutorun : My device doesn't reboot after the end of the customization :(

I have RST: Reset on the last line of both my config.txt and config_operator.txt but it does'nt reset :(

Any idea of what the problem may be ?
[Windows Mobile Software Development] cekpi:
first set your local settings as you like it, use reg editor to export HKLM\nls key, use SDConfig Builder to convert .reg to .xml and that's about it....

for comparison this is my region and locale settings

<wap-provisioningdoc>
<!-- *** Croatian Locale *** -->
<characteristic type="Registry">
<characteristic type="HKLM\nls" translation="filesystem">
<parm name="DefaultOCP" value="852" datatype="integer"/>
<parm name="DefaultACP" value="1250" datatype="integer"/>
<parm name="DefaultLCID" value="1050" datatype="integer"/>
<parm name="SystemLCID" value="1033" datatype="integer"/>
<parm name="LegacyLocaleMode" value="1" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\nls\overrides" translation="filesystem">
<parm name="SLDte" value="dddd, dd MMM yyyy" datatype="string"/>
<parm name="STime" value=":" datatype="string"/>
<parm name="LCID" value="1050" datatype="integer"/>
<parm name="STFmt" value="HH:mm:ss" datatype="string"/>
<parm name="ITime" value="1" datatype="integer"/>
<parm name="ITLZr" value="1" datatype="integer"/>
<parm name="ITMPN" value="9" datatype="integer"/>
<parm name="SSDte" value="dd.MM.yy" datatype="string"/>
<parm name="SDate" value="." datatype="string"/>
<parm name="IDate" value="1" datatype="integer"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
[Windows Mobile Software Development] dadeadman:
Thanks, but the SD config builder causes my antivirus to come up with an alert abt w32 virut.cf after extraction, is there another way in which i not use SDconfig builder?
[Windows Mobile Software Development] mma123:
Why not reg -> XML tool from the first post?

http://xdaforums.com/showpost.php?p=1902590&postcount=35
[Windows Mobile Software Development] cekpi:
edit my .xml file

set your local settings go to HKLM\nls and manually check the values (DefaultOCP, DefaultACP, etc) you use

or send me your .reg file and i will export it to .xml
[Windows Mobile Software Development] bopp:
Yes they do. The problem starts when the first user input needed cab is installed (i tried to switch some apps but that doesnt matter). I even tried to 'lock:disabled' and 'hide:enabled' at the begin and install all the cabs that way, but the only thing i see is the windows logo and the progress bar. Anyone a tip :)?

And one more question, why is it removing the .cab after install? Should i first copy al the caps to another directory and then run them?
[Windows Mobile Software Development] Beeble:
Mark them all as read only. There is a setting you can change as well / instead, but simply marking as read only should stop them being deleted.

Hmm, just had a look through my advconfig.xml (i have loads of xml files so its easier to edit!) and i *think* this is the setting

<wap-provisioningdoc>
<characteristic type="Registry">

<characteristic type="HKCR\cabfile\Shell\Open\Command">
<parm name="Default" value="wceload.exe "%1" /nodelete" datatype="string" />
</characteristic>

</characteristic>
</wap-provisioningdoc>

i cheated with my advconfig.xml file though. Simply make the settings you want in advanced config, then output to xml and it makes it all for you!
[Windows Mobile Software Development] combat goofwing:
im new to rom flasjing and know nothing about creating roms, but i do want to try different roms on my TP2 with out all the hassle of installing apps again

is there a numpty version of this guide for me to follow and downlaod

thanks
[Windows Mobile Software Development] dadeadman:
Thanks i managed to get it done. Secondly, does anyone know how to restore opera mini settings with UC?
[Windows Mobile Software Development] mma123:
What about going through first few posts?

I, myself, started with the files given with 888's eOS extended pack for Kaiser. First few posts helped me a lot. Finally, helps, I got from other XDA-members on this thread, were awesome.
[Windows Mobile Software Development] Beeble:
Think of this in 3 parts:

1) Installing cabs

2) Changing settings (using xml to edit registry & move files)

3) Copying new files from SD card

Part 3 you might not even need!

Part 1 - make a list of all the cab files you want to install after a rebuild/hard reset, seperate them into 2 lists - those which require user action during install, and those which dont.

Start your SDConfig.txt file as:

LOCK:Enabled
CAB: \storage Card\<auto cab 1>
CAB: \storage Card\<auto cab 2> etc etc
LOCK:Disabled
HIDE:Enabled
CAB: \storage Card\<manual cab 1> etc etc
LOCK:Enabled
HIDE:Disabled

Hard reset and see what happens!

Check all the cabs install correctly.

Then start on the XML's - you can make 1 big xml file to do everything, but if its screwed up, or you want to change something its a pain. There's no harm in calling several xml files 1 after the other in the SDConfig file (i currently have 16 xml files, 34 cabs and copy over 4 or 5 files [mostly config files])

That way if i want to change anything, or there is a mistake its easy to find & fix
[Windows Mobile Software Development] Forever022:
Hey Noonski... I was just in Portimao.... im in Lagos right now... where u at ? lets go for a beer ... cheers mate !
[Windows Mobile Software Development] korbi:
Touchpal

Hi!

I was wondering, where are settings and registration of touchpal stored?

Which reg-values/files do I have to backup?

Greetz

korbi
[Windows Mobile Software Development] leebickmtu:
Move links in Start Menu using UC

I have a program called "Pocket Uno" that installs by UC. I am trying to use an XML file to move the shortcut into the Games folder. However I can't seem to get it to work, what am I doing wrong ?

Here is the code for my XML file "Change_link.xml"

<characteristic type="%CE2%\Start Menu\Programs\Games" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Pocket Uno.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\Pocket Uno.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>

And here is my UC file "SDConfig.txt"

CAB: \Storage Card\Cabs\PocketUno_1.62.cab
XML: \Storage Card\Change_link.xml
RST: Reset

When UC runs I can see it load Chnage_link.xml but after the phone reboots and I check to see if it worked, the link is still outside the Games folder.
[Windows Mobile Software Development] RoryB:
I do not know. Maybe the file is read only. You could try copy first and then delete/force delete in your xml to see if that works.
[Windows Mobile Software Development] leebickmtu:
I have no idea how to do the xml for this stuff, the code i had to move the file i copy and pasted from the internet. So how would I do the force delete you talked about ?
[Windows Mobile Software Development] RoryB:
<characteristic type="FileOperation">
<characteristic type="%CE2%\Start Menu\Programs\Games" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Pocket Uno.lnk" translation="install">
<characteristic type="Copy">
<parm name="Source" value="%CE2%\Start Menu\Programs\Pocket Uno.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>
<characteristic type="%CE2%\Start Menu\Programs\Pocket Uno.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
</characteristic>
[Windows Mobile Software Development] mma123:
I have similar problem. I want to delete and copy some links in start menu using a mort script, which runs from SDConfig. But the operation always fails. Moreover, I am also trying to override a patched HTCHome.dll (to enable weather tab over proxy, I prefer HTC Home, :-) ) using the same script. When the script is running, HTC Home is not running. And the overwrite is never successful.

Any suggestion?
[Windows Mobile Software Development] RoryB:
read mortscript manual about changing file attributes to remove read only before trying to delete. Also, I think mortscript offers force with TRUE flags.
[Windows Mobile Software Development] mma123:
Thanks, works perfect.

I am looking for the UC way to set "Settings -> Phone Settings -> Internet calling" to "Whenever available ... ". I spent an hour to search for registry settings without any luck. May be there isn't any registry settings. I would appreciate some pointers to solve it.
[Windows Mobile Software Development] RoryB:
For registry settings, I use ceregedit. You can create a backup image of the current settings then change the check box and use compare to find the registry keys that have changed.
[Windows Mobile Software Development] korbi:
Does nobody know?
[Windows Mobile Software Development] RoryB:
You too could try ceregedit. Just change the settings you want to track to something else and do the comparison.
[Windows Mobile Software Development] korbi:
l allready tried that- no Results. Seems like the Registration is stored another Way...
[Windows Mobile Software Development] RoryB:
Sometimes they save in a .dat file or similar, and that is where you lose me. I do not know any tricks for that other than saving the current version of the file and copying over from your SDCard.
[Windows Mobile Software Development] korbi:
i guess thats what i am going to do. thanks
[Windows Mobile Software Development] 6Fg8:
SKTracker does this AND checks for file changes as well, really nice tool. Version 1.1.2 runs perfectly on all versions of WinMo 6.1 and 6.5 i've tried so far.
[Windows Mobile Software Development] leebickmtu:
I have no idea how to use mortscript. Could you show me a way to do what you recomended above for moving two links from "\Windows\Start Menu\Programs" to "\Windows\Start Menu\Programs\Games" during the UC stage of the ROM.
[Windows Mobile Software Development] RoryB:
Did this way not work? http://xdaforums.com/showpost.php?p=4429841&postcount=1353
[Windows Mobile Software Development] leebickmtu:
No it did the same thing a the original code that I posted a few posts before that reply. I could see the XML file run during UC but after the phone reboots the links had not moved.

The only thing I can think of besides either error in that code is maybe the files are locked somehow, or maybe the file path need something before "\windows" to distiguish between the main memory and SD card.

Also the icons that I am trying to move during UC are from programs that are installed during UC. I made sure to have the programs install before the XML code runs but could this be affecting its ability to move them somehow?
[Windows Mobile Software Development] mma123:
Try this mortscript (say in file "\Storage Card\UC.mscr"):

SetFileAttribute("\Windows\Start Menu\Programs\mygame.lnk", "readonly", FALSE)
SetFileAttribute("\Windows\Start Menu\Programs\mygame.lnk", "hidden", FALSE)
SetFileAttribute("\Windows\Start Menu\Programs\mygame.lnk", "system", FALSE)
Copy("\Windows\Start Menu\Programs\mygame.lnk", "\Windows\Start Menu\Programs\Games\mygame.lnk", TURE)
Delete("\Windows\Start Menu\Programs\mygame.lnk")

replace mygame with the name of your link. From SDConfig.txt use:

CPY1:\Storage Card\UC.mscr
CPY2:\Temp\UC.mscr
EXEC:\Temp\UC.mscr
[Windows Mobile Software Development] RoryB:
I went back a reread the posts. You do have wap provisioning doc open and closing statements, right? And characteristic = File operation open and closing statements too?

<wap-provisioningdoc>
<characteristic type="FileOperation">
<characteristic type="%CE2%\Start Menu\Programs\Games" translation="install">
<characteristic type="MakeDir" />
<characteristic type="Pocket Uno.lnk" translation="install">
<characteristic type="Copy">
<parm name="Source" value="%CE2%\Start Menu\Programs\Pocket Uno.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>
<characteristic type="%CE2%\Start Menu\Programs\Pocket Uno.lnk" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>
[Windows Mobile Software Development] leebickmtu:
No, I didn't have those Tags but I just tryied it again with what you said added in and it still didn't work. I am trying the meathod that "mma123" posted above yours right now.
[Windows Mobile Software Development] leebickmtu:
Thankyou "mma123", after about 4 days of trying to get those icon moved during UC, your meathod finnaly worked. It alot simpler and cleaner code than XML too.
[Windows Mobile Software Development] mma123:
Query to RoryB:

I found your project Scripted Angel very interesting. Few quick questions and I hope you don't mind answering them.

1. How do you install cab with and without user prompt?

2. How did you managed XML, TSK and REG files from MortScript?

Possibly all of them has been answered before (like, I saw the answer to Q1 somewhere in the forum) but can't find.
[Windows Mobile Software Development] RoryB:
For cab install without input

Runwait( "\Windows\wceload.exe", "/nodelete /silent " & "xcabfile" )

For cab install with input

Runwait( "\Windows\wceload.exe", "/nodelete " & "xcabfile" )

My tsk file

RunWait("\Windows\cusTSK.exe", "\Windows\HTC_BrandGrey.tsk")

Xml file

Runwait( "\Windows\TaskMgr.exe", "/provxml " & "xmlfile" )

Reg files

Runwait( "\Windows\TaskMgr.exe", "regfile" & " /silent" )

I monitor Mortscript examples in my signature for future script questions.
[Windows Mobile Software Development] mma123:
Thanks a lot, RoryB.
[Windows Mobile Software Development] Beeble:
A little late i know - i tried posting this from work 2 days ago but it kept failing (and then i forgot when i got home!!)

This is one of the xml files i call, this one moves shortcuts about and has several comment lines to help make it clear whats happening.
[Windows Mobile Software Development] mma123:
Hi all:

UC is a simple and great tool. Other efforts have been taken to simplify the customization process. After looking around this thread for some time, I thought that the customization process should be more automated (for naive users) and customizable (for advance users).

I decided that I may write a new customization tool, if I find sufficient interest from the community.

The poposal is here.
[Windows Mobile Software Development] Zsocee:
HI,

Sorry if you have already answered this question, I was searching but couldn't find...

So is is possible to have reset after a CAB installation? I mean one of my CAB require restart when it's finishing. (there is no question, just I press OK, and it's restart my phone.) To be accurate after that I would like to continue the installations of the cabs... Is this only possible if I put this CAB at the end of the list? or?

Thanks in advance,

Zsocee
[Windows Mobile Software Development] Noonski:
If the cab gives you the option not to restart then take that option.

Autorun will reset the device anyway.
[Windows Mobile Software Development] Zsocee:
Thanks, actually It is blackberry connect, and I don't have option to select no restrat I'm trying to put at the end of the list, and keep my fingers crossed :)

Thanks.

Zsocee
[Windows Mobile Software Development] dude_perm:
Point me, please what I'm doing wrong?

<wap-provisioningdoc>

<characteristic type="FileOperation">

<!-- i-nigma link -->
[B] <characteristic type="%CE2%\Start Menu\Programs\Applications" translation="install">[/B]
<characteristic type="MakeDir" />
<characteristic type="i-nigma.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="\Storage Card\Program Files\i-nigma\i-nigma.exe" translation="install"/>
</characteristic>
</characteristic>
</characteristic>

<!-- GPS Test link -->
[B] <characteristic type="%CE2%\Start Menu\Programs\GPS" translation="install">[/B]
<characteristic type="MakeDir" />
<characteristic type="GPS Test.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="\Storage Card\Program Files\Chartcross\GPSTest\Bin\GPSTest.exe" translation="install"/>
</characteristic>
</characteristic>
</characteristic>

</characteristic>

</wap-provisioningdoc>

My shortcuts, are not created, maybe I need to use "%CE12%" instead of "%CE2%\Start Menu\Programs\Applications", but if I need to create custom directory, as for GPSTest?
[Windows Mobile Software Development] RoryB:
Have you tried "\windows" instead of "%CE2%?