yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] pmatthewsatiug:
Thanks so much for your quick reply. I think I must be over thinking this operation. I was using the CeRegsistryEditor to compare the registry after a clean flash to after fully configured. Once I compared the two, I was trying to create a reg file that contained the changes. I now have them (I created more than one to be more manageable) in the REGEDIT4 format. I can import them into the DotFred and try to re-export, but the settings are already on the PPC (it's fully configured.) I'm thinking I'll take your second suggestion and merely change the first line and saving as a Unicode.

Am I making this too hard, or does this seem like a reasonable approach.

Again, thanks for your quick reply.
[Windows Mobile Software Development] Noonski:
I have my registry settings applied after G-Alarm is installed and it runs with the right settings.

I know what you mean serfer.

But I put registry importing at the end so you could always undo what any cab file would do.

Adding a registry import at the beginning (or moving it) would bring in other issues. Like these settings being overwritten by what happens afterwards.

And doing it twice would make setup a bit more complicated. (and the whole UC slower as DotFred's taskmanager isn't lightning fast with importing these.

If there's enough animo for a double run (like i made with creating shortcuts) i might consider adding it anyway.
[Windows Mobile Software Development] Incarniac:
Seems reasonable to me. You have your changes as some sort of text, put those into a Unicode WRE5 reg file and you're sorted.
[Windows Mobile Software Development] Noonski:
I can finally plan some time to implement code suggestions from post 288,

http://xdaforums.com/showpost.php?p=5018526&postcount=288

Should speed it up a bit, good friend explained the logic behind it.
[Windows Mobile Software Development] ai6908:
That code looks good.
[Windows Mobile Software Development] Noonski:
As i don't directly come from a programming backround i had to grasp on how it simply means that it sets either a true or false state for the script to react to. Is this the simplest way of calling saying this?
[Windows Mobile Software Development] Incarniac:
Yep. There are two key things that change does for you:

- It avoids duplication (the reg read/write stuff that is exactly the same)

- This in turn makes the script much smaller (so it should be faster to load/run)

A simple but effective change.

A very minor change you can do is to remove empty 'Else' clauses. For example, this:

If (FileExists( "\Windows\Cook.mscr" ))
Run("\Windows\Cook.mscr")
Else
EndIf

can be:

If (FileExists("\Windows\Cook.mscr"))
Run("\Windows\Cook.mscr")
EndIf
[Windows Mobile Software Development] Noonski:
When your used to something working why change it ;)

Will also apply/ remove these. I left these out of a bad habit (Bad experiences in the beginning with mort returning there was If without EndIf errors, so I left everything as I understood the manual)

I have now done a few changes (running the old checking method alongside the TRUE method) and changing parts step by step testing at each step.

I already know I should trust the method but I'm neurotic and addicted to overly testing:D.

Removing the use of Subs should also speed up the script again as it doesn't need to read the whole script first.
[Windows Mobile Software Development] ai6908:
Its complicated! The problem with this method is, if there is runcc.exe by any chance in the dump, then the code will never run! Whereas yours, it reads of registry. But problem I ran into is, sometimes it just runs in circles, and XDA_UC never executes!

On the other hand, I dont like reading off registry! I just dont believe in it that much! It's too risky for me, in the sense, if someone changes the reg value to 0, and reboot phone, xda_uc will run!

So there are gives and takes. If the cooks knows what he or she is doing, then coding it for checking to see if a file exists will be lot faster and less complicated.

I will play with the new code as well, and see if I can get XDA_UC working.

EDIT: There is always million different ways to code a simple program!:D
[Windows Mobile Software Development] yassero:
I am not concerned about settings. I only want to have my cabs installed. I have put the cabs of the apps, not requiring user intervention during their set up, in storage card\XDA_UC while the cabs of the apps, mandating user intervention during their set up, in storage card\XDA_UC\SD

I tried without SDconfig.txt & it did not do anything, only the standard ROM customization. I have then hard reset & added the attached SDconfig.txt to the storage card. It then installed the cabs in storage card\XDA_UC & neglected the cabs in storage card\XDA_UC\SD

Also I believe that UC has installed the apps to the device memory & not the SD.

Anyone can help ?

LOCK:Enabled

CAB: \Storage Card\XDA_UC\KamilM Sudoku Mobile 0.8a.cab

CAB: \Storage Card\XDA_UC\MusicID_by_FuNKeY.cab

CAB: \Storage Card\XDA_UC\Qibla_VGA.cab

CAB: \Storage Card\XDA_UC\Skype.cab

CAB: \Storage Card\XDA_UC\SMSREPORT.cab

LOCKisabled

HIDE:Enabled

CAB: \Storage Card\XDA_UC\SD\ARA_patch.PPC_V1.0.cab

CAB: \Storage Card\XDA_UC\SD\MOBiDIV Customization_NOI.Cab

CAB: \Storage Card\XDA_UC\SD\Mobidiv_417_EN_TSD_May26.cab

CAB: \Storage Card\XDA_UC\SD\MOBiDIV_PrayerTimes_Diamond2_B15_TS D_Jun1.Cab

CAB: \Storage Card\XDA_UC\SD\NLS _Support_ARB_P1_NOI.Cab

CAB: \Storage Card\XDA_UC\SD\SetupInit.CAB

CAB: \Storage Card\XDA_UC\SD\phoneAlarm_Pro.cab

CAB: \Storage Card\XDA_UC\SD\MobilityClient612.WM50ARMV4I.cab

CAB: \Storage Card\XDA_UC\SD\Sametime.cab

CAB: \Storage Card\XDA_UC\SD\BacklightHotfix.cab

CAB: \Storage Card\XDA_UC\SD\LumosSetupV10RC2.CAB

CAB: \Storage Card\XDA_UC\SD\tacchan23 Dusk Taskbar VGA wm6.5.cab

HIDEisabled

LOCKisabled

RST: Reset

EDIT: JUST INSTALLED ENERGY 21898 & XDA_UC IS AUTOMATICALLY DONE
[Windows Mobile Software Development] Noonski:
If it's doing the standard Rom customizing first then XDA_UC wil run after the reset at second boot.
[Windows Mobile Software Development] Noonski:
Because installing Some cabs to SD during most of the time doesn't need an actual installation (i repeat most of the times).

Most apps installed to SD can be run directly without reinstalling the cab file.

So just having a shortcut to them can be enough.

I would recommend using the User Input method for the ones that really need to be installed through cab.
[Windows Mobile Software Development] RoryB:
But if you have a relatively short script that has three or four calls to the same subroutine, would it not be better to keep the sub instead of having its code 3 or 4 times?
[Windows Mobile Software Development] shafizal:
will u please tell me how to run the mortscript in first boot....

MSCR: \WINDOWS\cook.mscr is it ok.....

thanks
[Windows Mobile Software Development] Noonski:
There's only a few instances that might require a sub, there's a whole let less repeats in the script. (practically none)
[Windows Mobile Software Development] serfer222:
I want to create a program, that will update my reg keys, pimbackup files, my custom t9 files and so on in XDA_UC folder.

Something like "XDA_UC backup", that has its settings, and helps to prepare XDA_UC folder to flashing new OS is several clicks.

Maybe it's already done, is there any program like this?
[Windows Mobile Software Development] Noonski:
Yes there is a back up project like the one you mentioned.

Give me a minute. ...

Here it is FlashBack from JMCkeejr:

http://xdaforums.com/showthread.php?t=577728

It's still somewhere on my to do list to align XDA_UC with this, it was JMCKeejr's idea, but i haven't had the free time to get into it with him.
[Windows Mobile Software Development] serfer222:
FlashBack - it allows to backup predefined items.

it's good, but if you read its Planned Features - this is what I want =)

"Allow user to select files to backup"

"Allow user to select reg keys to backup"

and so on.

I think it's easy to implement as GUI application (using C#).

Then I will just run this app and backup anything I need to restore after flashing.

And of course I will use XDA_UC to restore all these settings =)
[Windows Mobile Software Development] RoryB:
True, for your system. I was kind of making sure I was right for me. I have the ability to support parsing cabs, xmls, regs, etc. in ext_ROM folder and in SDAUTO folder as well as a few other things. I potentially have 5 "locations" that get parsed.
[Windows Mobile Software Development] Samhain77:
Hello Noonski.... just quick questions: to add XDA_UC support to my rom I only need to add the EXT package to my Visual Kitchen? Or should I copy an EXT package for mortscript too??

Or Mortscript is included on your last 1.1.00???
[Windows Mobile Software Development] Noonski:
Mortscript is included in the package.

In next versions I will make the package in ext format (I'm now also used to it)
[Windows Mobile Software Development] Incarniac:
Yes, you definitely want to avoid duplication as much as you can. There's an entry on Wikipedia about "Duplicate Code" covering the subject, which should give you an idea of why :)

If you want to go further than that, there is always "Don't Repeat Yourself" and "Code Reuse" ;)
[Windows Mobile Software Development] RoryB:
Thank you for your feedback.
[Windows Mobile Software Development] nelsonw:
Can't make this works... using Apr2 Energy ROM with Co0kie HT for Rapahel... Nothing happens when manila folder is created...
[Windows Mobile Software Development] Noonski:
Oke, this has to to with the different name that Sense uses to be selected in the home control panel.

Can you get me the exact name for Sense instead of the older TouchFLO 3D?

HKLM\Software\Microsoft\Today\Items\TouchFLO 3D

I'll make the script check for the existence of this new name and if so use that instead.

Found it, it should be HTC Sense.

I have already added the code to the upcoming Beta of XDA_UC.

But I have attached a little script to test if it's reading the value correctly.
[Windows Mobile Software Development] nelsonw:
Yes, its HTC Sense... this is the name of the folder? or wait for new version?

I Also want to know how i can choose the default Windows Theme... I installed one via cab and wanna choose that as the default with XDA_UC and also select the same wallpaper for HTC Sense as Windows wallpaper... Where is that on Registry? Thanks!
[Windows Mobile Software Development] andersskov:
Problems with importing REG and XML files

Has been deleted
[Windows Mobile Software Development] Noonski:
All right here's the New Beta.

V 1.1.0B:

Applied script improvements to reduce code used and make script a bit faster.

Removed Manila folder copy and replaced it with more general Copy2Root function/folder.

Added recognition of "REG: " command in SDConfig.txt parsing.

Added recognition of "CER: " command in SDConfig.txt parsing.

Added recognition of "HTC Sense" and "TouchFLO 3D" for new sense version, remember there is no more need for Manila folder anymore use the new Copy2Root folder. Adding Manila.reg inside "\Storage Card\XDA_UC\Copy2Root\Windows\" still works.

Added:

If( FileExists( "\" & SDF & "\Cabs\pim.vol" ))

Kill("cprog.exe")

EndIf During SDConfig.txt just before cpy1, cpy2 function.

Doing a few more tests myself the coming days before putting up Beta for Cooks to test and feedback on.

There is no need for an extra Extendir copy function as you can simply place an Extendir folder inside Copy2Root to copy Extendir files.

Depending on Cook feedback I could ad in support for Windows\Config.txt

For .XML, .REG and .CER (no Cab support as these are already done automaticly and would then conflict with each other), but in most cases this is unneeded as this can be cooked in anyway

I have made two version, Legacy Kitchen and Visual (visual Ext package I made from head I don't use that enough)

http://xdaforums.com/attachment.php?attachmentid=304785&stc=1&d=1270552514
[Windows Mobile Software Development] AdamiX:
Can it install cab files to storage card?
[Windows Mobile Software Development] fwt:
Please read Post 2 http://xdaforums.com/showpost.php?p=3954547&postcount=2

Point 14
[Windows Mobile Software Development] serfer222:
there is error in V 1.1.0B

it doesn't install cab files from XDA_UC folder with /silent param

script just has two sections witch install cab files from XDA_UC\SD
[Windows Mobile Software Development] krook6023:
After searching (and tweaking) I have my email working through XML...but for a XML noob like me finding examples for what I am trying to do is frustrating.

I am specifically looking to set up my notifications for;

Incoming Call - Set to Ring no vibrate

New SMS – alert only, do not display on screen or vibrate

New Text Message - alert only, do not display on screen or vibrate

Missed Call – alert only, do not display on screen or vibrate

New Voice Mail - alert only, do not display on screen or vibrate

New Email - No alert, do not display on screen or vibrate

I would appreciate it very much if someone would share a XML that works...so I can see how it is done. Sleuth255’s thread has lots of examples but I found it hard to search…

What we need is a XML script repository!

I have not found a dedicated thread with XML examples. We need a reference (if there is not one already) with clear cut XML examples for changing only one specific thing. This would be very useful so that a user could find the examples for exactly what there are looking for and create a XML for exactly what they need. When I look at some of the XML examples I have seen there is simply too much going on to get my mind wrapped around it.

If someone would start a thread I am sure people would embrace it…:)
[Windows Mobile Software Development] Noonski:
Yup thanks found it, made the mistake with the versions i uploaded.

I'm planning some time tomorrow to go through the scripts and add the method to simplify the multiple folders code.
[Windows Mobile Software Development] Rabangus:
I love the idea of this, but it freezes every time I try to use it - all I'm trying to do is have a bunch of cab files installed, and a reg file imported. I've put the cab files that have dialogs at installation in the /SD folder. Customisation starts and several cabs are installed, but somewhere in the middle manila freezes and then nothing happens. I've tried leaving it 20 mins but nothing further happens.

I'm using the latest NRG 21898 ROM with CHT1.7 on a Raphael. Any ideas?
[Windows Mobile Software Development] Rabangus:
Problem solved. Not sure exactly, but it was either a couple of cabs that required a restart after installation, or the fact that I had a /manila folder with nothing in it...
[Windows Mobile Software Development] Noonski:
NRG roms are using a slightly modified XDA_UC, i have to look into the differences but they are using modified code.
[Windows Mobile Software Development] rajeshjha84:
is it possible to have cab file, many chefs still not using this so we can just install it and run after every new flash.
[Windows Mobile Software Development] Noonski:
It will come as a stand alone folder that you place on your SD.

You run it and it will then install XDA_UC to Windows folder and then it will run it.

It will first be available as a Beta to iron out mistakes.
[Windows Mobile Software Development] Noonski:
I have been just now contemplating to add in PimBackUp.exe into the XDA_UC package as it needs it anyway for easy contacts and mail restore it needs to be present either in XD_UC or Rom so i could just as well ad it as default to the package.

Any Comments an why not to do this?
[Windows Mobile Software Development] serfer222:
if user do not use pib file - for example user uses other backup software - there is no need to include PimBackUp.exe into ROM.
[Windows Mobile Software Development] Noonski:
I was thinking of adding PIB:\pim.pib as a command to SDConfig.txt

Butdoubting as pib will already work anyway if you just drop it into XDA_UC with pimbackup in there.

I'm now myself switching to 50/50.

I use Pim.vol for contacts agenda and tasks (this way my Manila Favourites also get restored which pimbackup does not do)

And then i only restore my messages and Mails through PimBackUp.

But Pim.vol trick only works with a restart :(

Unless i copy pim.vol over very early after first boot.
[Windows Mobile Software Development] magawa:
hi am a rom cooker

how can I Use xda uc to to install cabs automatically at startup ( like Autorun.exe and ccrun )

thanks for great app

ps. I have omnia so It doesnt have autorun.exe like htc devices
[Windows Mobile Software Development] Noonski:
If there's no Autorun.exe or RunCC.exe present, then XDA_UC will install all cabs present in Windows folder silently in the background before it does user customisation.

You don't need to make any config.txt to do this.

Adding Config.txt might be a possibility in the future post Version 2.0 but it is a bit redundant.

Most .xml files that you can find in rom that are done through config.txt can simply be renamed to .provxml or added to RGU's

This does force Cooks to clean out OEM Config's a bit making for a cleaner rom ;)
[Windows Mobile Software Development] magawa:
so I dont need autorun.exe and config.txt

just I need to cook cabs in windows and xda_uc

how about

TSK:

EXEC:

and others

am waiting for new version ( you can add option for config.txt without autorun.exe )

cheers
[Windows Mobile Software Development] Noonski:
When you open XDA_UC.mscr in notepad and search for Cook.tsk

You can rename it to the theme you want installed.

(this will be a configurable variable in next version)

If EXEC:

Has an exe file you can add this to the registry

[HKEY_LOCAL_MACHINE\Software\XDA\RunFirstBoot]

"\\Windows\\StartUpDisabled\\Something.exe"="Parameters"

And these will then be executed at first boot.

It is most likely that adding config.txt support won't be in V2 (depending on the time it takes to apply the rest of the new functions & Code)
[Windows Mobile Software Development] Noonski:
Thanks,

I didn't even know the

FILEOP: \WINDOWS\File_Operation.txt

Command

Well for starters it is going to be a lot easier to configure in the new way.

But your post does show one of my initial intentions more control over what happens when after a flash. And it confirms that not all versions of RunCC are as good as the one L3v5y is using.

In the first tests i did i could not get RunCC to accept

EXEC:\WINDOWS\SDAutorun.exe

It just wouldn't run.

I then had one of my month and a half XDA Vacation stints because of a lot of bad luck.

Then when i started again i retried some stuff and found the mistake i made before that made me stop pursuing the silent install parameter for WCEload.

But then Cmonex put me on the right syntax for that and it changed my whole perspective on the case.

I posted to this forum because i would meet more cooks that would have direct problems from the new Rom Config setup. But the final version will be setup for older devices without RunCC to.
[Windows Mobile Software Development] bobsbbq:
Thanks for your work here I'm trying this out now and will report back. I tried SDAutorun with RunCC and I put AutoRun in as well and while they would run the AutoRun would try to run sometimes before the RunCC and thus cause screen recalibration evertime a soft reset. If I got through the calibration and date fast enough and the RunCC started first it worked ok.

Glad to know many good chef and developers are working on this.
[Windows Mobile Software Development] mac_es:
Ok, It is working fine here:

21812, 0C0A, QVGA...

Method1, ok

Method2, not tested

Method3, ok

Also I want to understand the official runcc, scheme.

If I left the init line, I kept in a boot loop. How is done in the 'official' way?

Thanks
[Windows Mobile Software Development] RoryB:
@Noonski, I got your invite to come look at this thread. I saw you stopped the group we were in. I apologize, I got busy trying to learn enough to finish S.V.I's Angel since he could not finish since his phone stopped syncing.

Just to let you know where I ended up with your ideas.

1) I still use the old SDAutoRun.exe since I wasn't sure what I would gain from trying the beta.

2) My Config.txt contains

HIDE:Disabled
LOCK:Disabled
EXEC: \windows\RoryB.mscr
EXEC: \windows\cusTSK.exe \windows\HTC_BrandGREY.tsk
EXEC: \windows\SDAutoRun.exe

The autorun.exe waits for the mscr to finish before it starts cusTSK.exe.

3) RoryB.mscr contains

SetFileAttribute( "\windows\RoryB.zip", "readonly", FALSE )
SetFileAttribute( "\windows\M2D_ver_23.zip", "readonly", FALSE )
Sleep( 1000 )
Unzipall( "\windows\RoryB.zip", "")
Sleep( 1000 )
SetFileAttribute( "\registry settings.reg", "readonly", FALSE )
Sleep( 1000 )
Runwait( "\Windows\TaskMgr.exe", "\registry settings.reg /silent" )
Sleep( 1000 )
Unzipall( "\windows\M2D_ver_23.zip", "")
Sleep( 1000 )
ForEach xshortcut, xsourcefile in regValues ( "HKLM", "\Software\MortShortcut" )
CreateShortcut( xshortcut, xsourcefile, TRUE )
EndForEach
rename( "\windows\start menu\Office Mobile\Excel Mobile.lnk", "\windows\start menu\Office Mobile\Excel.lnk", TRUE )
rename( "\windows\start menu\Office Mobile\OneNote Mobile.lnk", "\windows\start menu\Office Mobile\OneNote.lnk", TRUE )
rename( "\windows\start menu\Office Mobile\PowerPoint Mobile.lnk", "\windows\start menu\Office Mobile\PowerPoint.lnk", TRUE )
rename( "\windows\start menu\Office Mobile\Word Mobile.lnk", "\windows\start menu\Office Mobile\Word.lnk", TRUE )
Delete( "\registry settings.reg" )

I found I had to set attributes to not be readonly to get unzipall to work with nested subdirectories in the zip file. Also, if a file already exists, unzip fails and locks up. I'll have to post Mort about getting an overwrite = TRUE for unzipall.

RoryB.zip contains some files I want without having them in windows. For example the manuals for mortscript get unzipped to where I want them and there is only RoryB.zip in the windows folder. It also contains registry settings.reg such as network wizard settings to turn it on after the first boot instead of right after the hard reset. This avoids the notification during customization.

The foreach statement parses through registry key HKLM\Software\MortShortcut and and gets each parm and its value. It is similar to autoshortcut without adding another exe file. As an example the mxipupdate_QuickMenu_MortShortcut.provxml file contains

<wap-provisioningdoc>[/COLOR] [COLOR=DarkGreen]
<characteristic type="Registry">
<characteristic type="HKLM\SOFTWARE\MortShortcut">
<parm name="\Windows\StartUp\QuickMenu.lnk" value="\Windows\QuickMenu.exe" datatype="string" translation="install"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

As a result I have quickmenu.lnk in windows\startup and I do not have a copy of it in the windows folder.