yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] l3v5y:
I personally hate having cabs installed, so in theory my ROMs should be good to go without the reset.

Based on what you said, it might be best if the number of complications are minimal, and device compatibility as great as possible. RunCC probably would make things more complex and error prone, so yes, I agree not having it as a dependency makes sense.

A mortscript could always recognise *cabname.cab, so even using an order flag at the front should work.

Silent install sounds like it could be great, although some of the cabs need user intervention... Also, having a flag settable somewhere that makes (or stops) a message box with "auto install is complete" would be useful...
[Windows Mobile Software Development] Noonski:
At the moment i have G-Alarm in my SD folder for that User intervention.

It just pops up at the moment after it's install i know at first i waited for it, no i grab a beer and tap it when i arive but the script continues with the rest of the files present so it's not waiting on that user interaction.

The possible Pop up message would in theory come up at the moment the last cab is just starting to install but it should be possible to add a check if wceload is still active before it pops up.

Which reminds me i still need to contact some of the people that actually helped out a lot without knowing.

"Installation has Finished, if your in a good mood and were planning to get beer from the fridge choose yes to reset the device, If your not in the mood and need to actually use your phone right now, press no to reset whenever you feel like it"

Do you think that would fit in the screen :D
[Windows Mobile Software Development] RoryB:
Another useful string for certificate installing

ForEach xcertfile in Files( "\Storage Card\SDAUTO\Cert\*.cer" )
SleepMessage( 2, "Installing ^NL^ ^NL^" & xcertfile )
RunWait( "\windows\certinstaller.exe", "/silent " & """" & xcertfile & """" )
EndForEach
[Windows Mobile Software Development] Noonski:
Tres Cool.

I'm currently putting my attention into Raphael rom, before i get to V3 update.

But will sure include, thanks again.
[Windows Mobile Software Development] blazingwolf:
Very nice. Where are certs kept at for an exchange account?
[Windows Mobile Software Development] RoryB:
I am not sure, I have a cert that I got through active sync for a website. I do not use certs for email.
[Windows Mobile Software Development] blazingwolf:
I'm having an issue trying to cook a new ROM with build 23016 which Da_G just gave us recently.

My theme is no longer loading upon first flash. The tsk file is installed and seen by the OS. It is also highlighted in the theme selector. If I change themes and then go back to the cook theme it works correctly. This happens with or without the XDA_UC folder in my Storage card.

I have made no other changes to the XDA_UC OEM which on the last build, 23009, worked perfectly.

Any ideas?
[Windows Mobile Software Development] blazingwolf:
Darn. Maybe Noonski knows.
[Windows Mobile Software Development] Noonski:
I don't have that much experience with 6.5.

But i did read something about cusTSK.exe missing in some 6.5 os-ses and that adding solved the issues.

But it might be that MS is moving away from the old method of applying Themes this way.
[Windows Mobile Software Development] blazingwolf:
I was really hoping you had a better answer. :(

Oh well. I'll see if I can get it figured out.
[Windows Mobile Software Development] kidoucorp:
Hi,

I'm cooking a ROM for HTC Diamond (NmLs), but it seems that despit XDA_UC is launched after the first soft-reset, it doesn't install my cabs :(

I made a folder "XDA_UC" on my Internal Storage.

If you need a tester for this device, pm me ;)
[Windows Mobile Software Development] Mr. Makk:
well to use it with diamond you need to replace:

SDF = RegRead("HKLM", "System\StorageManager\Profiles\SDMemory", "Folder")

Into

SDF = RegRead("HKLM", "System\StorageManager\Profiles\moviNAND", "Folder")

So it will recognize the Diamond Storage on the diamond.

nookski told me this but i couldnt test it as yet.
[Windows Mobile Software Development] kidoucorp:
Thanks, will try as soon as I get back to home :)
[Windows Mobile Software Development] Noonski:
try these Securit Settings

<characteristic type="SecurityPolicy">
<parm name="4109" value="64" />
<parm name="4141" value="4096" />
<parm name="4142" value="4096" />
<parm name="4119" value="180" />
<parm name="4122" value="1" />
<parm name="4097" value="1" />
<parm name="4101" value="40" />
</characteristic>

To loosen the security settings so Mortscript can be runned.

I will recheck these values at home, don't have all available info here.
[Windows Mobile Software Development] Mr. Makk:
nops it din helped. i rechecked a few things and i think the prob is not with this .provxml but something else. dunno what but its strange.
[Windows Mobile Software Development] ai6908:
What version of Mortscript do you use? I think it happened to me once, when I used a different Mortscript that was not included in the package by noonski!
[Windows Mobile Software Development] Mr. Makk:
i use 4.2.
[Windows Mobile Software Development] nicklashidegard:
Just cooked this into a ROM and it works great!!

The only issue (very small one) is that it first install my cabs from the SD folder automatically into program memory, and after that it REINSTALLS the progs again (asking me where i want to install them) which should have happened in the first place..

Anyone had the same problem?

Thanks for a great program though.. will help a lot (as i seem to be flashing at least every day at the mo):)
[Windows Mobile Software Development] RoryB:
Do you have them listed in your sdconfig.txt file and saved in a manual folder?

If so, that might be why they get installed twice.
[Windows Mobile Software Development] nicklashidegard:
Of course!!

Thought i deleted the SDConfig.txt file earlier but i didn't. Thanks for your help, i had a blonde moment...
[Windows Mobile Software Development] ai6908:
OK, I run into the same issue when applying tsk files too. Some tsk it applies fine, but some it doesnt!

So I looked into my tsk files, and find out the wallpapers are saved different between them. One was using gif files as wallpaper, and other jpg.

Tsk files with jpg gets applied properly, but with gif does not!

I dont know how to fix it, but this is what i see. You can test this theory and see if it matches.
[Windows Mobile Software Development] blazingwolf:
Hmm, I'll have to look in to this as I have this issue also. Noonski wasn't sure what the problem could be.
[Windows Mobile Software Development] Noonski:
Don't know this one by head give me a moment.

First unzip the.tsk and check the XML file to determine what the gif file names should be.

stwater.gif and stwater.jpg should be accepted and shown by OS when it's just one graphic.

Check if you theme has

<characteristic type="HKCU\Software\Microsoft\Today">

<parm name="UseStartImage" value="1" datatype="integer" />

<parm name="DPI" value="192" datatype="integer" />

That's about all i could find at the moment, i never ran into the issue.

Maybe you can upload the .tsk file.

I could also look into Trowing the .tsk file to WCELoad as that might also get it installed silently. (might)

If not manually add it to a RGU file.
[Windows Mobile Software Development] ai6908:
I agree that it shouldnt make a different, and yes I do have that reg in my setup file!

I will if I see any difference if I use RunCC to apply themes!
[Windows Mobile Software Development] Noonski:
Status Update to v04

Autoshortcut and DirCopy has been Changed to use Make Dir from the same DirCopy Lines.

And Write File has been added after DirCopy Process And before Make Shortcut.

This should make initflashfiles.txt and HTC's Autoshortcut outdated as those always need existing files to do the file operations.

These changes are more with the cook in mind that now does not need to make a seperate mortscript file for fileoperations but can keep these inside the RGU of the package.

Here's a few examples of the registry code that can be used.

[HKEY_LOCAL_MACHINE\Software\XDA\DirCopy]
"\\Windows\\Start Menu\\Programs\\Tools"="MakeDir"

[HKEY_LOCAL_MACHINE\Software\XDA\Write]
"\\Windows\\Start Menu\\Programs\\Tools\\QuickMark.lnk"="99#\"\"\\Windows\\QuickMark.exe\"\"?MPI_ProgramIcons.dll,-149"

[HKEY_LOCAL_MACHINE\Software\XDA\Write]
"\\Windows\\Start Menu\\Programs\\Office Mobile\\icon.lnk"="31#officeres.192.dll,-7690"

[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]
"\\Windows\\Start Menu\\Programs\\Office Mobile\\Word.lnk"="\\Windows\\pword.exe"

Also the Mortscript error Message has been brought to the beginning and at the end of the process the possibility to reset the device is presented.

Aplying the Theme got a little bug fix where it would also do it at a second and third boot.

RoryB's Cert script will also be added to the V04.

And now back to the Beach.
[Windows Mobile Software Development] svprm:
First of all,

Thanks for this UC.

First it didn't run.

After i restarted the phone app ran.

Why?
[Windows Mobile Software Development] ai6908:
You might be using RunCC as your first customization. I think it is the Method 2 here described by noonski.
[Windows Mobile Software Development] Noonski:
That is correct, if RunCC.exe or Autorun.exe is present in the ROM, then it will run at second boot.

As for another v4 update for cooks:

[HKEY_LOCAL_MACHINE\Software\XDA\RunFirstBoot]

"\\Windows\\AutoShortcut.exe"=""

Has been added for apps that only need to run at first boot (or second for that matter).

So there is no need to know any mortscripting to still use it's advatnages.

I have now managed to build a rom with 0 file operations in iniflashfiles.dat.

And practicly no .provxml files. Thus reducing my first boot time by almost ten seconds.

Added Final update for next Update.

XDA_UC will now check for the existence of a *.pib file in the Storage Card\XDA_UC folder then check for the existence of PPCPimBackup.exe in either Windows folder or Storage Card\XDU_UC.

And if requirements are met it will start the Restore of alphabetical /numeral first *.pib file.

The only thing i'm testing is when this will occur.

So uploading in 30 minutes.

As for an earlier problem related to Theme not installing, check if the provided wm61_stwater.jpg or it's new variant in the Windows Folder. Don't know this one yet)

Moved RoryB's SDAutorun additions to post #5
[Windows Mobile Software Development] Noonski:
I updated to V5.

The PimBackup command had RunWait in it but in case you want the rest to continue installing instead of waiting for PimBackup to finish (and what if PimPackup window gets hidden in the background, the whole Process stalls :mad:)
[Windows Mobile Software Development] blazingwolf:
Nice to see an upgrade Noonski. I'll start looking at this to see the new features. :)
[Windows Mobile Software Development] Noonski:
I will need to update today again.

Running PimBackup in the beginning with al the rest also going on is to resource intensive. (really is because of PimBackup, it really uses a lot of processor power).

So it will move a bit more to the end to prevent freezing.
[Windows Mobile Software Development] digitalattic:
What are the advantages of this new UC over Sashimi? I personally prefer Sashimi to UC (no disrespect to Sleuth), but I'm not seeing how this feature set goes beyond what Sashimi/BenG has been offering for several years now.

Thanks
[Windows Mobile Software Development] Noonski:
That is a valid remark.

Bengalih, contacted me about a year ago, when this wasn't an UC replacement yet. He was right then that working together or using an already existing platform would be better.

And i agreed with him. Unfortunately things didn't work out between Bengalih and XDA. I found this personally a loss and wished things had turned out differently.

Sashimi was no longer supported and further developed here at XDA, so that was point one to go ahead.

I found the idea of just needing one folder to drop everything in a better step in model for the not so hardcore Tweaker, that was my Point two.

It get's rid of the need for a Restart at the end of customisation if applied without the classis Autorun method and requires no user input unless wanted.

It basicly has the same set of features, maybe a few more and maybe a few less. In my opinion it is easier to use, if you don't let the more advanced features scare you.

And besides it being a User Setup, I set it it up starting from my cooking point of view. Adding some functions that are useful to cooking to.
[Windows Mobile Software Development] kidoucorp:
Thanks, forgot to report since the time, but it's working well...:D :rolleyes:

+1, I was using Sashimi before, but right now I prefere XDA_UC, easier to maintain / customize than Sashimi (even if I did some powerfull things with sashimi ;) )

Keep the good job, PIMBackup restore is nice !!
[Windows Mobile Software Development] Noonski:
PimBackup restore might Slow/to Freeze Manila a bit at the end of restoring as it consumes a lot of resources and Manilla has to reload.

It's just the way it is.

Wonder if DotFred is still developing, having a Silent Parameter for restore for PimBackup would make it even cooler.

Nice to hear you like it.

RoryB had a nice addition to re-ad a parsing of a config.txt

Now it's not needed, but for some cooks this might be a easy way to get rid of RunCC and Autorun completly as some less experienced cooks might have more trouble converting the OEM config.txt XML files commands to a FULL version of XDA_UC.

So i'm curious of everyone's experience and thoughts about this.

Is there a need to add support for 1 config.txt file to give it support for old style Autorun?
[Windows Mobile Software Development] digitalattic:
Thanks for your answer Noonski: I'm gonna jump into the pool and see what this has to offer, and then based on my experience w/Sashimi, decide what to use going forward.

I plan to release a kitchen shortly, and initial ROM customization has been an area I've been looking at with great interest recently.

I'll probably still poke around w/RunCC to, just to "see it in action."

AFA Sashimi goes, I have been toying with a method to update my phone after I apply new ROM version using Sprite, WinMerge, RegSnap, and Sashimi with limited success. I'm still trying to find a method that will allow me to flash an updated ROM, and then apply ALL the changes I made to the previous version as I used it daily, sorta abstracting the "post flash" application space from the base ROM space. It has been elusive thus far, but I have made some progress over the last year.

Sprite does a reasonable job on porting system changes to ROM updates, but it's not there yet either... maybe in v7 ;)

Thanks again for all the great info from this post and others I have stumbled upon that you are OP for!
[Windows Mobile Software Development] Noonski:
Now Testing Version 1.1.0.0 Beta With MrCapcom for Omnia "MyStorage" and Diamond "Internal Storage".

(so it will either read from XDA_UC folder on extra storage and if present read both Sorage card and My Storage)

So if there's a Diamond Cook out there to Test this release, Shoot me a PM. (But Theoretical if it works on the Omnia it will also work on the Diamond)

Also in next Update:

Set PimBackup Priority to low as it took a lot of the resources which stalled Manila (updating with the new Apointment and messages Information) and froze the device for a while if the PimBackup iption was used.

Removed a ten second sleep, which I had put there out of security, so it should now finish faster.
[Windows Mobile Software Development] blazingwolf:
Hmm, guess I didn't send you that PM soon enough. :(

Ah well, can't wait to see it working. :)
[Windows Mobile Software Development] Noonski:
You got it to.

MrCapcom looked up the correct Values for it, and then i thought of you to.

There's now three Variables for three types of storage:

SDF = RegRead("HKLM", "System\StorageManager\Profiles\SDMemory", "Folder")
DIA = RegRead("HKLM", "System\StorageManager\Profiles\MoviNand", "Folder")
OMN = RegRead("HKLM", "System\StorageManager\Profiles\INAND", "Folder")

This should make covering other storage names like HP can use sometimes, supported to.

Example

SDF = RegRead("HKLM", "System\StorageManager\Profiles\SDMemory", "Folder")
DIA = RegRead("HKLM", "System\StorageManager\Profiles\SomeOtherTypeOfNand", "Folder")
OMN = RegRead("HKLM", "System\StorageManager\Profiles\SomeFlashDiscNameUsedInOtherDevies", "Folder")

Now i think i did the Manual Copy, Replace then reinsert for each part correctly (Can't drink coffee this late), But the Test Package from the first Post should help confirm each installed .reg .xml etc in the Registry, As it will show the full part to the installed files.
[Windows Mobile Software Development] blazingwolf:
OK, I'll start playing. :D
[Windows Mobile Software Development] MrCapcom:
Going to build the kitchen and test it now :-)
[Windows Mobile Software Development] serfer222:
Hi, I'm building new ROM with XDA_UC.

It looks promising, I like your idea. =)

Can you just tell me how to debug it?

Is there a log?

At the end of second boot, after install, Task Manager opens and after I close it "...complete..." message is displayed.

I think the problem is with one of reg files...

I know that I only renamed some of them, and before this step it was OK.

How to figure out what's wrong?

EDIT: I renamed reg files again - replaced ' ', '.', '-' characters with '_' and it works again.

Anyway - how to debug? =)
[Windows Mobile Software Development] Noonski:
Well you can check the registry.

Almost everything except the SDconfig.txt reading/parsing, (but i will look into maybe adding it to that to) Will write a a line into registry.

Check HKML\Software\XDA & HKML\Software\XDA\UC

You can see which Shortcuts where installed through the registry, which .xml, .cab, .reg etc etc was installed from where.

I did this so these files couldn't be installed twice and so that i g=could do a bit of debugging.

But it won't debug Syntax mistakes in .xml and .reg files. Mistakes in mortscripts will pop up the regular Mort Error's.

And your right it's always best to avoid Spaces and other punctuations in file names.
[Windows Mobile Software Development] serfer222:
Thank you!

Another issue - there is the last message box (something like "do you want to restart your device?"). It has 3 buttons "Yes", "No", "Cancel".

I know what is "Yes".

"No" is good.

I just wondering who will press "Cancel" button?

=)
[Windows Mobile Software Development] Noonski:
Cancel will revert your Rom to the state before you flashed it ;)

Cancel is the same as No or Close.
[Windows Mobile Software Development] svprm:
Thank Noonski.

All working well.
[Windows Mobile Software Development] serfer222:
There is an unobvious issue with DirCopy.

You cannot copy several folders to one another.

for example if you use two reg files

reg1

[HKEY_LOCAL_MACHINE\Software\XDA\DirCopy]

"\\Windows"="\\Storage Card\\XDA_UC\\copy_to_Windows_1"

reg2

[HKEY_LOCAL_MACHINE\Software\XDA\DirCopy]

"\\Windows"="\\Storage Card\\XDA_UC\\copy_to_Windows_2"

this will be imported to one key and one reg file overwrites another one.

only one folder will be copied.

hm... Easy to solve, but confusing... =)
[Windows Mobile Software Development] Noonski:
Yup that's why i initially put the From directory at the String part of the registry key.

Because i used

"MakeDir"="\\Program Files\\Something"

In the beginning but got into the same predicament, so i switched the parameters around taking the side effect that copying two different directories could not be possible. I chose a lesser evil.

Another easier solution as you hinted, would be to have both the from directories together into one ;)

Thing is that these keys get converted into an actual Mortscript command.

So this is the only way this can be done.

Good that you pointed out this limitation, i have run into it myself to but didn't hit me to post it.
[Windows Mobile Software Development] serfer222:
released ROM for Iolite with XDA_UC

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

Thank You!
[Windows Mobile Software Development] makeveral:
Hi!

I'm having a problem with .reg files, taskmanager is launched but it doesnt import the .reg keys. I have tryed with the .reg file in the sample package you posted and another one I've created and none of them works. I know someone else is having the same problem but i dont know from where it comes from and i haven't been able to fix it.

And another thing, anyone knows wich reg keys should i add to associate .reg files to FS_Taskmanager so .reg files get imported to registry?

Thanks guys!
[Windows Mobile Software Development] Noonski:
Those values are already in the OEM package.

[HKEY_CLASSES_ROOT\regfile]
@="Registry Entries"
[HKEY_CLASSES_ROOT\regfile\Shell\Open\Command]
@="\"\\Windows\\FS_TaskMgr.exe\" %1"
[HKEY_CLASSES_ROOT\regfile\DefaultIcon]
@="\\Windows\\FS_TaskMgr.exe,-228"
[HKEY_CLASSES_ROOT\.reg]
@="regfile"
[HKEY_LOCAL_MACHINE\Security\AppInstall\FdcSoft TaskMgr]
"InstallDir"="\\Windows"
"Role"=dword:00000018
;"Uninstall"="\\Windows\\AppMgr\\FdcSoft TaskMgr\\000A.tmp"
[HKEY_LOCAL_MACHINE\Security\AppInstall\FdcSoft TaskMgr\ExecutableFiles]
"\\Windows\\FS_TaskMgr.exe"=hex(0):
[HKEY_CURRENT_USER\Software\FdcSoft\TaskMgr\Tabs]
"SwitchMinExit"=dword:00000001
[HKEY_LOCAL_MACHINE\SOFTWARE\OEM\MASD]
"FdcSoftTaskMgr"="3_1_0_0"

So the rest is working except the .reg files?

Try changing the RunWait in just Run, in the XDAUC.mscr at:

If (method = 2 )
If (RegRead( "HKLM", "Comm", "BootCount" ) eq 2)
ForEach REGfile in files ("\" & SDF & "\XDA_UC\*.reg")
if (RegRead( "HKLM", "Software\XDA\UC\reg", "" & REGfile & "" ) eq 1)
Else
RunWait("\Windows\FS_TaskMgr.exe", REGfile & " /silent")
While( ProcExists ( "FS_TaskMgr.exe" ))
sleep( 3000 )
endwhile
RegWriteDword ( "HKLM", "Software\XDA\UC\reg", "" & REGfile & "", "1")
EndIf
EndForEach
Else
EndIf
Else
If (RegRead( "HKLM", "Comm", "BootCount" ) eq 1)
ForEach REGfile in files ("\" & SDF & "\XDA_UC\*.reg")
if (RegRead( "HKLM", "Software\XDA\UC\reg", "" & REGfile & "" ) eq 1)
Else
RunWait("\Windows\FS_TaskMgr.exe", REGfile & " /silent")
While( ProcExists ( "FS_TaskMgr.exe" ))
sleep( 3000 )
endwhile
RegWriteDword ( "HKLM", "Software\XDA\UC\reg", "" & REGfile & "", "1")
EndIf
EndForEach
Else
EndIf
EndIf
[Windows Mobile Software Development] makeveral:
Hi!

Thanks for your answer, i've checked the .reg keys and i couldn't find them in the OEM package at 1st post (maybe im blind xD). I added them and checked the .reg files and when i click on them taskmanager opens but it wont import the registry keys. Same happens when i change the runwait to run and XDA_UC is executed.

I guess it's all the same problem but i dont know why it doesnt import the reg files :p tomorrow i'll take a look again.

regards
[Windows Mobile Software Development] henrik.dk:
I wish I had seen this thread before. It took me quite sometime to make auto installation

using mortscript especially quite some cabs requires manual interference.
[Windows Mobile Software Development] Noonski:
Maybe it has something to do with the encoding used in a Spanish Rom?

I'm a little bafled...
[Windows Mobile Software Development] mac_es:
It works flawlessly in an spanish rom...

The reg files had the header no? also they are encoded in UTF-16 Little Endian no?
[Windows Mobile Software Development] makeveral:
i think so, I attach the .reg

It used to work in al my roms some months ago but i tryed last week and it didnt work, i dont know if it has something to do with wm6.5.X :confused:

I'm also running out of ideas xD

btw i make english roms xD
[Windows Mobile Software Development] Noonski:
Reg files look fine to me.

Saved as Unicode and all :(
[Windows Mobile Software Development] mac_es:
That's is a desktop reg file format...

Try changing to this:

REGEDIT4

[HKEY_LOCAL_MACHINE\SOFTWARE\XDA\TEST]
"Reg 2 Parsed"="1"

Saving it as unicode...