yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] RoryB:
4) the SDConfig.txt contains (some of it)

LOCK:Enabled
HIDE:Disabled
CPY1:\Storage Card\SDAUTO\User_C.mscr
CPY2:\User_C.mscr
CAB: \Storage Card\SDAUTO\S2U2-1.62-QVGA.CAB
CAB: \Storage Card\SDAUTO\Transcriber.CAB
CAB: \Storage Card\SDAUTO\GoogleMaps_3.0.1.6.CAB
EXEC:\User_C.mscr
HIDE:Enabled
LOCK:Disabled
RST: Reset

5) User_C.mscr contains (some of it)

# *****************
# Stop programs to make registry changes, etc.
# *****************
If(ProcExists("ilock2.exe"))
Runwait( "\Program Files\S2U2\iLock2.exe","-nomsg" )
Endif

While(ProcExists("ilock2.exe"))
kill( "ilock2.exe" )
sleep( 3000 )
endwhile

While(ProcExists("S2U2.exe"))
kill( "S2U2.exe" )
sleep( 3000 )
endwhile

While(ProcExists("QuickMenu.exe"))
Kill("QuickMenu.exe")
sleep( 3000 )
endwhile

While(ProcExists("manila2d.exe"))
Kill("manila2d.exe")
sleep( 3000 )
endwhile

# *****************
# Delete AutoSnooze to try to stop reminder repeat
# *****************
If( RegKeyExists( "HKCU", "\ControlPanel\Notifications\Reminders\AutoSnooze" ) )
RegDeleteKey( "HKCU","\ControlPanel\Notifications\Reminders\AutoSnooze", TRUE, TRUE )
Endif

# *****************
# Create folder in Programs called "Explorers" and move shortcuts into it
# *****************
MkDir( "\Windows\Start Menu\Programs\Explorers" )

Move( "\Windows\Start Menu\Programs\Internet Explorer.lnk", "\Windows\Start Menu\Programs\Explorers", TRUE )
Move( "\Windows\Start Menu\Programs\Google Maps.lnk", "\Windows\Start Menu\Programs\Explorers", TRUE )

Copy( "\Storage Card\SDAUTO\CopyFiles\S2U2_stuff\AT&T.png", "\Program Files\S2U2\gfx\operator\AT&T.png", TRUE )

Move( "\Windows\Start Menu\Programs\S2U2\*.*", "\Windows\Start Menu\Programs\Accessories\S2U2", TRUE, TRUE )
DelTree( "\Windows\Start Menu\Programs\S2U2" )

# *****************
# Running registry settings
# *****************

ForEach xregfile in Files( "\Storage Card\SDAUTO\REG Files\*.reg" )
Runwait( "\Windows\TaskMgr.exe", xregfile & " /silent" )
While( ProcExists ( "TaskMgr.exe" ))
sleep( 1000 )
endwhile
EndForEach

ForEach xxmlfile in Files( "\Storage Card\SDAUTO\XML Files\*.xml" )
Runwait( "\Windows\TaskMgr.exe", "/provxml " & xxmlfile )
While( ProcExists ( "TaskMgr.exe" ))
sleep( 1000 )
endwhile
EndForEach

UnZipAll( "\Storage Card\SDAUTO\User_C.zip", "" )
Sleep( 1000 )

RunWait( "\Windows\TaskMgr.exe", "\User_C.reg /silent" )
While( ProcExists ( "TaskMgr.exe" ))
sleep( 1000 )
endwhile

If( FileExists( "\User_C.reg" ))
sleep( 1000 )
Delete( "\User_C.reg" )
EndIf

If( FileExists( "\User_C.mscr" ))
sleep( 1000 )
Delete( "\User_C.mscr" )
EndIf

User_C zip and the reg file contains what it takes to have programs on sd card run without using the cab to install. Basically I unzip files to their correct folders and the User_C.reg sets the registry for the programs.
[Windows Mobile Software Development] Noonski:
I used a similar way in the registry to add the shortcuts and deleted the whole key at the end.

But was not using Endwhile for that so good idea there.

xda-developers - Reply to Topic

HTC is also switching from putting their autoshortcut links from provxml files and moving these to rgu.

Should save those extra unneeded provxml files.

This new setup should reduce a lot of the scripting for those not familiar with it. But again it's great to see how others are leveraging the added control in a creative way that suits them best.

But i have to say to others "Don't get get scared away" by some of the previously posted methods. The basis of the XDA_UC will be very easy to implement. But you'd be giving the hardcore tweaking part of our community a lot of freedom in adding their own customizations.

PS: Your using QuickMenu, cool, it rocks so much more in straight forward quick use. To bad it's not updated regularly. Hoping for a release to Get rid of that damn Manilla issue taskswitch issue.
[Windows Mobile Software Development] Laurentius26:
What can I say, awsom work gentleman thank you!

I'm going to check this out immidiatly. :):):)

Grtz, Leo
[Windows Mobile Software Development] Noonski:
I will start changing the script after a little break (tonight), with a few extra ideas from the input from previous threads.

There will be one that takes RunCC into account and another that takes Autorun into account.

I will document as much as possible.

Rory

Still fun to see how close to each everything we have done lies.

I was using

HKLM\Software\Mortinstall\LNK

As the directory to create Shortcuts from.

I have added your

While( ProcExists ( "TaskMgr.exe" ))

sleep( 1000 )

endwhile

And aplied it to WCEload and CusTSK.exe.

To help get the Finished Installation message timed at the correct moment.

And also made the Link installation from Registry a part of the process.

Etc to the Script i'll be uploading tomorrow.

It's getting ro late now.
[Windows Mobile Software Development] RoryB:
Funny thing.

Last night I realized I could move the registry settings to the rgu and get rid of the provxml. We do seem to attack this from different directions and end up at the same place or close to it.

I forgot to subscribe to this thread so I just now saw your posts as I went to mention this idea.

I'll need to add the delete registry key to my script.

---------------

I cannot download the OEM packages. I am trying to see your command line for wceload to see is there a way to force not asking where to install. That is why I still use sdautorun. If I could install cabs without having to respond I would use a mortscript line to do so.
[Windows Mobile Software Development] Noonski:
ForEach CABfile in files ("\Windows\*.cab")

if (RegRead( "HKLM", "Software\XDA\UC\cab", "" & CABfile & "" ) eq 1)

Else

Run("\Windows\wceload.exe", "/silent " & CABfile)

While( ProcExists ( "wceload.exe" ))

sleep( 10000 )

endwhile

RegWriteDword ( "HKLM", "Software\XDA\UC\cab", "" & CABfile & "", "1")

EndIf

EndForEach

Longer Sleep for those annoying large Cabs sometimes.

I Lower it after some stress test Cabb installing.

I think i should also add the Nodelete command to it even if the NoDelete is already set in System File Open Registry entry.

I write all installed stuff to Registry for safeties sake.

And for User Debugging to see where the **** Hits The Fan.

Give me two more hours and i'll have the v1 uploaded and fully tested.

UPDATE:

Post 3 has now been updated with V1 of the Fully Automated Script.

http://xdaforums.com/attachment.php?attachmentid=197663&d=1245517969

Moving Thread.

I will not use my Moderator power to Sticky something i have done as a User.

That depends on the importance cooks think this has.
[Windows Mobile Software Development] Noonski:
Added Minor Adjustments to scripts.

Small adjustments to V 1.0.01:

Changed Sleep to start UC to 50 seconds for full device Boot before UC starts.

Changed "XDA UC Service Start" title to "customization" to match the old one.

Changed sleep before completion message to ten second in case the last cab needs user input and the Completion message pops up to early.

Changed Sleep at while for Theme installation to 2 seconds.

Populated .dsm file and added filled in option.xml

And Added the Semi (Runs at Second Boot after RunCC or Autorun) version.
[Windows Mobile Software Development] Noonski:
Why not make just a .reg file

with

[HKEY_LOCAL_MACHINE\\Software\\XDA\\AutoShortCut]

"\\Windows\\Start Menu\\Programs\\PIM Backup.lnk"="\\Storage Card\\Program Files\\PIMBackup\\PIMBackup.exe"

And save some storage space.

I haven't tried newer versions of MS VC but i know i had older versions working just fine from SD.
[Windows Mobile Software Development] hilaireg:
You should be ok to deploy MSVC to SD ... I recommend looking at an OEM package so as to verify the registry entries - just in case.

For the most part, MSVC uses \Application Data for temporary voice announcement and such.

HTH,
[Windows Mobile Software Development] ai6908:
I want to use this with VIsualKitchen, but it keeps crashing when building platform! What am I doing wrong? Will this work with VisualKitchen? I want to release a ROM with this, but just cant seem to figure this crashing part! Please let me know if there are any tricks! Thanks.
[Windows Mobile Software Development] twopumpchump:
make sure none of your files have "hidden" attibute in properties, as this will make platformrebuilder crash. maybe this isnt it, but is worth checking on :)
[Windows Mobile Software Development] Noonski:
Aah the Visual Kitchen.

I'm still on old Bepe's Buildos package style.

I'll check into how to format the package to be compliant for that new lay out.

I attached a package for that Kitchen.

I have put the whole file structure i found used in the Touch Pro 6.1 Visual Kitchen by.

If someone can check if i did this correctly i can add it to the first posts.

I tested this and i got no errors myself just now.
[Windows Mobile Software Development] hilaireg:
Looks good to me ... you only need your package structure. You can drop everything above - i.e. .\EXT\SHARED\Utilities.
[Windows Mobile Software Development] Noonski:
I have to correct myself i still got an error on this:mad:
[Windows Mobile Software Development] hilaireg:
Just had another look.

The package looks fine ... there's an extra "_skip" file in the files folder but that shouldn't cause you any grief.

The APP.DAT looks in order and same goes for the .REG file.

What are you bumping up against?
[Windows Mobile Software Development] peshkoff:
I looked script XDAUC.mscr from version PACKAGE_XDA_UC_1_1_0.zip and did not find there code to install cab from XDA_UC. There are two identical installation procedures of XDA_UC \ SD with full user interaction only = ( In PACKAGE_XDA_UC_1_0_0_5.zip everythings ok. Is that normal?
[Windows Mobile Software Development] Noonski:
I think you downloaded the Beta 1.1.1b instead of 1.1.0

(ichecked the code)

Serfer222 also posted that mistake

I's rather post the next Beta then fix First Beta (puts the presure on me)
[Windows Mobile Software Development] peshkoff:
Ok it will be good. But i've allready fixed this for me =) Anyway, wating for new beta =)
[Windows Mobile Software Development] Noonski:
Keep on eye out on my Twitter today @TheNoonski

New Beta Online!
[Windows Mobile Software Development] warri:
It seems my XDA_UC doesnt fully work. It installs cabs and .reg files fine, however does not install my xml, provxml , and Manila\wallpaper_TF3D.jpg Properly. Any one have ideas?
[Windows Mobile Software Development] Noonski:
Can you check which encoding you have on the .xml files?

And which version are you using of XDA_UC?

Also which version of Manila are you using?

Updated Beta with Fix.
[Windows Mobile Software Development] thefa:
How to copy files from SD to /Windows?

Hi,

Sorry if this is already available somewhere. I could not find it.

Is there another way than the SDConfig one with CPY1 and CPY2 to copy a file from my SD card to /Windows file?

What is the "XDA_UC way" of doing this, please?

Example of what I trying to do :

Copy et9.Rhodium.xxxx.kmap.txt to /Windows.

And, I'm also trying to rename automatically some files in /Windows filer (i.e. some BT dll for TomTom proper work).

What would be the right "XDA_UC" way to do that?

Thanks!
[Windows Mobile Software Development] Noonski:
Renaming a Rom file is going to be a problem.

If the file needs renaming write a mortscript.

And if the file does not need any renaming just drop it in the Manila or Copy2Root in new 1.1.1Beta's)

I will also add a Copy Command to registry just to round it up in next Beta.
[Windows Mobile Software Development] warri:
I am using which ever XDA_UC NRG installed on his April 14th CHT 23xxx Build..

Manila is 2.5 with Cookie Home Tab MOD
[Windows Mobile Software Development] Noonski:
I checked NRG's script it's using adjusted code.

In his case the manila folder should be

"Sense"
[Windows Mobile Software Development] NRGZ28:
The FDC taskmanager (which is what the XDA_UC script uses to parse XML file) doesn't always like all XMLs. It's weird... FDC wont process an XML, while the Advanced Config tool built by that french guy a while back, process it just fine. Too bad advanced config doesnt' have a command line option :(

Anybody know of an alternative XML processor for the PPC ? Maybe a microsoft built one ?

p.s. I edited the XDA_UC script in my ROMs quite a bit to make it work better with my ROMs.
[Windows Mobile Software Development] thefa:
Ah! I missed this. I don't change any Manila file, so did not notice that where you are putting them is where I wanted my file to be put. My mistake:-(

Thank you very much for the answers and the great job.
[Windows Mobile Software Development] nrfitchett4:
ok, trying to understand this.

I am using calk's kitchen v1.6 r3. I can put the OEM folder into the kitchen under oem/common right?

then in the xda_uc folder, I put any mort's and cabs I want to install after ROM flash?

will this handle any cab install? I'm having trouble with toucnhwatch2 (pops up this annoying made by ... thing), and lookout, which requires reset after install. If I could get this to animate the last couple of things I need to do, that would be awesome.

edit: after looking more into the kitchen, it looks like I can do this right in the kitchen, just add it to config_operator.txt on his kitchen. this is what is in it:

LOCK:Enabled

CFG: \Windows\Manila.txt

CFG: \Windows\Config.txt

CAB: \Windows\Calkulins_Touch_Pro2_Tweaks.cab

XML: \Windows\Start_Menu.xml

XML: \Windows\zzBTFix.xml

LOCK:Disabled

so i can manually add what I want right, and then put the cab files the same place as the rest of these?

also, will this run a mortscript if I put it there as well?
[Windows Mobile Software Development] thefa:
Renaming a file in Windows folder but not in Rom?

After double check, I think the file gets installed by one of my cab files. But I can rename the files using Total Commander.

In this context, do I have a change to be able to rename those files?

Thanks,
[Windows Mobile Software Development] Noonski:
Nope not yet ;)
[Windows Mobile Software Development] Rabangus:
Ah - that explains it!
[Windows Mobile Software Development] nelsonw:
hi... now the Co0kie Home Tab Editor, enables to make a shortcut for the settings... it is possible to load this settings with xda_uc? or copy the shortcut (via cab), and execute it? or copy to startup aqn delete after restart? thanks!
[Windows Mobile Software Development] Noonski:
I would need more information on the file and CHTEditor.

Does it need to be at a specific location?

Does the system recognize it as an file that can be opened by CHTEditor, or can it be presented to CHTEditor in a parameter?

If it is an file that can be opened and is recognized by the system as file for CHTEditor, then you can also run it through mortscript with run command.

Or through registry

[HKEY_LOCAL_MACHINE\Software\XDA\RunFirstBoot]

"\\Storage Card\\A Folder\\CHTSettings.*"=""

(* is for whatever file extension CHTEditor uses for these settings.)

But i just looked at the cab file for CHTeditor and could not find it setting any file associations, so you can scratch that idea.

If CHTEditor.exe does accept the file presented in a parameter to apply the settings then you could go for.

[HKEY_LOCAL_MACHINE\Software\XDA\RunFirstBoot]

"\Program Files\CHTEditor\CHTEditor.exe"="\\Storage Card\\A Folder\\CHTSettings.*"

But i'm just going on theory here, as i don't know the full depths of how CHEditor works, i just took a quick look.

I would need to dive into it unless someone can explain to me how the restoring of settings for CHT work.
[Windows Mobile Software Development] nelsonw:
Load CHT 1.7.1 Settings with XDA_UC

How to load Co0kie's Home Tab Settings works only with 1.7.1 or newer:

The new CHT Editor no exports to .cht. And on first time u open CHT editor, the .cht extension is registered, so you can "run" the file from file explorer. To Load the settings in XDA_UC: You must put 2 Files on XDA_UC folder (Both attached)

1. Reg file to register .cht extension

2. Mortscript file to run the CHT config file. (You MUST edit with your file location and name)
[Windows Mobile Software Development] Rabangus:
Is there any way to debug where things go wrong? For example at the moment I'm having trouble on a 23559 build where XDA_UC is freezing during installing cab files in the main XDA_UC folder, and not even reaching the ones in the /SD folder. I have tried about 10 times now trying to use a process of elimination to work out where it's freezing, but haven't found yet which one it's taking exception to. Would be much easier if there was some way to stop the process and see how far it had got?

Funnily enough exactly the same configuration and cabs installed seamlessly on a 21899 rom by the same chef...

Edit: Found the problem - was a cab file I had used many times before, but which had become corrupted on the SD card and wouldn't even install manually. Would have been nice to have a quick way of identifying that though.
[Windows Mobile Software Development] Noonski:
Good morning, and thanks.

So most probably you can also give the file as parameter

Run("\Program Files\CHTEditor\CHTEditor.exe", "\Storage card\backup\nelson.cht")

If CHTEditor is cooked into Windows it won't be a problem adding a function for that.

I was just downloading a rom to test it :D

The script should then stop registering Cab files at:

HKLM\Software\XDA\UC\Cabs

It (Should) write the succesfull cabs.
[Windows Mobile Software Development] nelsonw:
Good Morning :)

I tried but without the ","... LOL will try again with the little , :)

Thanks!

EDIT: Didn't works... don't know why...
[Windows Mobile Software Development] Noonski:
I keep getting errors exporting the settings from CHTEditor :(

Can you attach your settings file?
[Windows Mobile Software Development] nelsonw:
Did u upgraded to 1.7.1.1? those problems are fixed ;)

The file is on prev post... ren to .zip
[Windows Mobile Software Development] Noonski:
Hmm i could execute the cht file and it got applied.

Doing another reset.

PS my cht did get exported, just got the error, but they are there.

Okay i removed the file associations and ran this Mortscript

Run("\Program Files\CHTEditor\CHTEditor.exe", """\Storage card\XDA_UC\Nelson.cht""")

That worked now to put back my settings :)
[Windows Mobile Software Development] nelsonw:
via RUN("Program Files/xxxx","Storage Card/xxx")?
[Windows Mobile Software Development] peshkoff:
I think you should move proccessing of *.pib to the end of all stuff. For example on Topaz restoring data from *.pib causing ~80-90% cpu load by cprog.exe after finish, and all other stuff like installing reg,cab etc will be proccessing too long. I hope you understood me =)
[Windows Mobile Software Development] Noonski:
The Priority for PimPackUp is lowered by default in the .rgu i provide in the packages to lesson that strain. And contacts is one of the things people want restored ASAP that's why it is very early.
[Windows Mobile Software Development] Noonski:
Yup

Run("\Program Files\CHTEditor\CHTEditor.exe", """\Storage card\XDA_UC\Nelson.cht""")

Notice the triple Quotes.
[Windows Mobile Software Development] nelsonw:
ahhhhh those little quotes... LOL Thanks!

Just to confirm.. WORKS!!
[Windows Mobile Software Development] peshkoff:
But the problem isn't in PPCPimBackup. The problem is in the cprog.exe that load CPU after restoring backup. May be it's ok to use Kill("cprog.exe") just before PPCPimbackup like before restoring pim.vol?
[Windows Mobile Software Development] Noonski:
That would also be a possibility indeed.
[Windows Mobile Software Development] ThrottleAbuse:
Not sure if this is the correct place to ask so if not please let me know.

I have been trying to setup my XDA_UC folder in my storage card. So far I put in S2U2 and the Verizon keyboard fix cab in the folder and it working perfectly. Now I added the microsoft my phone cab which I believe is working. I also put in the TellmeInstallClient that appears as an application on my PC. This didn't seem to install from the XDA_UC folder. Am I doing something wrong? What do I need to do to get it to install the TellMeInstallClient from the XDA_UC folder?

Also I am trying to have a .lnk made to a IGO8.exe that is saved on my storage card. I made a text file named XDA_UC.txt and it contains this text.

[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]

"\\Windows\\Start Menu\\Programs\\GPS\\IGo8.lnk"="\\Storage Card\\IGO8\\iGO8.exe"

Is that how I am supposed to do it? I read the first post, but I have no idea what I am doing. Thanks for the help.
[Windows Mobile Software Development] Noonski:
Yeah there's some crossover from:

http://xdaforums.com/showthread.php?t=503060&page=28 and here.

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\Software\XDA\DirCopy]
"\\Windows\\Start Menu\\Programs\\GPS"="Makedir"

[HKEY_LOCAL_MACHINE\Software\XDA\AutoShortCut]
"\\Windows\\Start Menu\\Programs\\GPS\\IGo8.lnk"="\\Storage Card\\IGO8\\iGO8.exe"

And save as a .reg file instead of .txt with blank line at the end.
[Windows Mobile Software Development] ThrottleAbuse:
Cool thanks for the help. You call for a Makedir. Is that necessary when that folder labeled GPS is already there? And I am assuming I can just make this file in notepad, but save it as .reg ?

Any idea what I need to do to get the tellmeinstallclient to install?
[Windows Mobile Software Development] Noonski:
MakeDir is not needed if folder exists, it's just safety.

Didn't get the last part.
[Windows Mobile Software Development] nelsonw:
Hi Noonski, I want to change the tabs order to one I have set. After arrange the tabs the way I want, i copied the file 26948339_manila to SD\Backup and I want to Stop Manila, copy the file, delete the manilafull.xml, delete some regystry and enable manila again... This scrip is correct?

If(ProcExists("manila.exe")=TRUE)

Show("Desktop")

Sleep(1000)

RegWriteDWord("HKLM","\Software\Microsoft\Today\Items\HTC Sense","Enabled","00000000")

Sleep(5000)

RedrawToday

Sleep(2000)

copy("\Storage Card\backup\26948339_manila", "\Windows\26948339_manila", 1)

Delete("\windows\ManilaFull.xml")

**HERE I Need to Delete the configuration reg-key HKLM\Software\HTC\Manila\Configuration***

RegWriteDWord("HKLM","\Software\Microsoft\Today\Items\HTC Sense","Enabled","00000001")

Sleep(2000)

Show("Desktop")

RedrawToday

EndIf

Exit

Thanks

EDIT: Found it...

RegDeletekey ( "HKLM", "\Software\HTC\Manila\Configuration", TRUE, TRUE )

that's right?
[Windows Mobile Software Development] nelsonw:
Hi, I want to change theme, this is for SDConfig.txt

XML: \Storage Card\xDA_UC\XML_cabs\gmail.xml

CAB: \Storage Card\xDA_UC\XML_cabs\Condor.cab

EXEC:\windows\cusTSK.exe "\windows\Condor GT Black Edition.tsk"

Condor.cab is the Theme i want to install and use...

Or i must use:

TSK: "\windows\Condor GT Black Edition.tsk"

Is that way?

Thanks
[Windows Mobile Software Development] Noonski:
TSK: "\windows\Condor GT Black Edition.tsk"

Will trow the theme to cusTSK.exe.

I will look into the rest when i'm awake and after some job hunting:D
[Windows Mobile Software Development] nelsonw:
Didn't work, neither CAB: nor TSK: .... don't know why... so i saved all registry needed and its working... thanks man... I learned a lot this days...

**WORKED... ADDED LOCK... Thanks!

This is how my SDconfig looks:

LOCK:Enabled

CAB: \Storage Card\XML\condor.cab

CAB: \Storage Card\XML\clock.cab

CAB: \Storage Card\XML\conn_off.cab

XML: \Storage Card\XML\gmail.xml

TSK: "\windows\Condor GT Black Edition.tsk"

CAB: \Storage Card\XML\sys_Wallpaper.cab

LOCK:Disabled
[Windows Mobile Software Development] ThrottleAbuse:
I have tellmeinstallclient.exe that I am trying to get to run from the XDA_UC folder and it doesnt install. Any ideas what I am doing wrong? Or do I need to find a .cab of it?

Thanks.
[Windows Mobile Software Development] badwolf:
running nrg 23 cookie april 20.

tried the beta install and it seamed to take along time.

does the sdconfig file install before the update.mscr to install the new xda_uc?

whould I be better off not using the sdconfig and just the xdauc folders?

thanks