yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] Noonski:
My aim is mainly into the restoring and applying of customisations.

And hooking up with some other great developments going on on XDA.

I'm not sure and i might be mistaken, but didn't Pimbackup have a parameter to silently import a back up?

If all is easy to implement for cooks, and if XDA_UC can also take over the functions of SDAutorun.exe using RoRyB's script, it will probaply hit a bigger percentage of your estimated cook ins. If i understand it correctly it is also being used to cook a Samsung Omnia rom.

And theoreticly some exporting of reg files and user files could be done to a .XDAZ file.

Althought Mortscript isn't officially opensource, it is a very easy to learn scripting language making this project Semi Open Source:D

Which reminds me i should add the Manilla.reg jmckeejr requested.

Okay Rory here goes my first Flash with your addition.
[Windows Mobile Software Development] wg5566:
While as a pretty noob I don't know a lot of things yet, just have a feeling that with all the supporting resources XDA_UC can export/import almost everything.

By the way is there someway to export the email account settings only? This maybe another headache after flashed a new ROM. Like me I have 7 email accounts, have to spent a lot of time after hardreset for setting accounts.
[Windows Mobile Software Development] Noonski:
Finished up first tests with 1.0.02

V 1.0.02 Beta Changelog:

Added Copy1 to Copy2 by reading from registry settings

[HKLM\Software\XDA\DirCopy]

"\\Storage Card\\Some Folder"="\\My Documents\\Some Folder"

Added Disabling Manila from Homescreen then Copying files from "\Storage Card\XDA_UC\manila" to Windows, The checking for existence of wallpaper_TF3D.png or wallpaper_TF3D.jpg and adding that to

[HKCU\Software\HTC\Manila]

"HomeBackgroundPath"="\\Windows\\wallpaper_TF3D.jpg"

Import registry files from "\Storage Card\XDA_UC\manila\manila.reg"

Re-enable Manila on Homescreen and redraw it.

If not present do nothing.

Added RoryB's Complete SDAutorun.exe replacement/SDConfig.txt parser script.

Check for existence of Autorun.exe or RunCC.exe to automatic determine which method/bootcount to use.

There is no longer the need for two separate XDA_UC versions let alone a third.

.reg and .xml files will now be sent to renamed taskmanager "FS_TaskMgr.exe"

I have attached the Beta Script to get some more feedback on experiences for the Manila timing.
[Windows Mobile Software Development] blazingwolf:
You understand perfectly. :D

I have released the first ROM with this in an Omnia and it works very well. Thank you very much. :)

I will check out the new additions you have made and see how it works on my Omnia.

Thanks for visiting my thread over on PPCGeeks to let me know you had made some changes. I appreciate it. :D
[Windows Mobile Software Development] blazingwolf:
Don't worry, I'm still a scripting newb also and this is working quite well in my ROM. I won't be surprised if this is picked up by a lot of people as it is easy to install and very easy for the end user to use.
[Windows Mobile Software Development] Noonski:
Let's just say that Google didn't know my friend XDA_UC a few weeks ago.

Helps me to easily find user experiences, so i can tweak the timing and order to fit the needs. Or it might in the future.

Oeps looks like o forget to tell about one extra new function.

Make an SD folder in XDA_UC and put cab's you want complete user input control over in the SD folder.

You can choose where you want the cab file installed to.
[Windows Mobile Software Development] Noonski:
Weeding through your thread right now, looking for information.

Even reading some German to.

Only thing i found is that creating the XDA_UC would actually make it more easier, up till now.
[Windows Mobile Software Development] blazingwolf:
I will probably need to do some clipping as I have no need for the TF3D code. We can't use it. :( That won't mess things up will it?
[Windows Mobile Software Development] ai6908:
Search for settingssaviour, it was in hermes forum i think! It does a great job of backing up almost everything you need, including email accounts.
[Windows Mobile Software Development] blazingwolf:
Most of my time is spent on Modaco as the Omnia has a bigger forum there. I haven't fielded to many questions about XDA_UC yet though. The big one is installing cabs to other locations. Once I get that nailed down I think XDA_UC will be bigger.

I want this to run on first boot though and not second so I need to get that straight. I'm looking at what roryb wrote earlier to see for that will work for me.
[Windows Mobile Software Development] Noonski:
If the manila folder is not there it does nothing.

6. Added checking for cab files in "\Storage Card\XDA_UC\SD\", for those that don't have the luxury of changing the install paths in a cab file to hardcoide these to Storage Card. So you get full user input to choose on these cabs.
[Windows Mobile Software Development] blazingwolf:
Thanks. I will try it as is then and see what happens. :)
[Windows Mobile Software Development] Noonski:
Thanks for sharing SettingsSaviour

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

It's been around for a while and from the looks of it it's using some .XML files for the configuration. Will Play with this for sure.
[Windows Mobile Software Development] ai6908:
YW. Yup I have been using it for a while! Sigh makes me feel old now! LOL...Anyhow, real nice tool, works wonderful with WM6.5, I wish it was developed upon.
[Windows Mobile Software Development] wg5566:
Thanks everybody.

Request two more functions.

1. If I put PIMBackUp (.pib) file inside the XDA_UC folder, want XDA_UC to silently run it.

2. It will be convineint if shortcuts inside the XDA_UC folder (like abc.cab.lnk or def.xdas.lnk ) will work. If so users don't need to move thie file in, just paste a shortcut there, good for file management.
[Windows Mobile Software Development] Noonski:
1. You find me the Parameter to do this and we have a deal.

2. Don't get me wrong, but using shortcuts instead of actual file can be more confusing for some and you risk getting more errors or failures for user setups.
[Windows Mobile Software Development] blazingwolf:
Put the new script in to my OEM and reflashed my device. Worked on second boot as expected. Installation of cabs to SD card worked perfectly as did silent install of cabs to windows folder.

None of my reg changes took though. With this install I did three separate changes. Change time to HH:ss, added my name to owner info and removed the data connection notice.

So I am almost there. :)
[Windows Mobile Software Development] Noonski:
I also tested a reg change using .reg for my owner name.

It didn't stick as a reg while other values from that same reg file did.

So i made an XML file and that did carry over my owner info.

I always have check files for these on my SD that i can check after flashing.

But those have values that are never used by the system and always get applied correctly. I think that some Registry values that are checked by the system more often are better of being in an .xml file :(.

Anyone else with ideas on this?

Aah wait off course, you replaced te script.

So you need to rename Taskmgr.exe to FS_taskmgr.exe in the OEM

Oepsie.

That might also be the cause of NONE of your reg files carrying over.

(but i would still recommend owner info in an XML file)
[Windows Mobile Software Development] wg5566:
1. Failed to find any command line parameter for PIMbackup. Then I thought of an important useful function (not only for this issue), like 'open a file with an app', not command line to 'run a app & open a file'. If this could not be done with MortScript, is there some other program could do this kind of thing? Total commander? (I remember there is an 'open with' function in context menu, dunno command line available or not. I sent my phone to service center and can not use it at the moment to test anything)

If this could be done, basicly all file could be opened silently.

Another thing is: What is the mechanic for the OS to do this: When I tap on a file, it will open it with the associated app.? Can we use that?

2. Forget it.

All these thoughts may be rediculous only becoz actually I'm nonpro of this field.

I checked the reg file for .pib file, writen this:

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\pbckpfile]
@="PIM Backup"

[HKEY_CLASSES_ROOT\pbckpfile\DefaultIcon]
@="\\Program Files\\GreenWare\\GreenWare\\PPCPimBackup.exe,-219"

[HKEY_CLASSES_ROOT\pbckpfile\Shell]

[HKEY_CLASSES_ROOT\pbckpfile\Shell\Open]

[HKEY_CLASSES_ROOT\pbckpfile\Shell\Open\Command]
@="\"\\Program Files\\GreenWare\\GreenWare\\PPCPimBackup.exe\" %1"
[Windows Mobile Software Development] RoryB:
@Noonski

I went back to what you had in the group for XDA_UC.

I removed AutoRun and all its parts, and SDAutoRUN.

I added an initflashfile.txt to copy my mortscript to \windows\startup and it runs right after (actually starts during) the screen calibration.

Now I have ROM setup and SDConfig on the first boot without autorun or sdautorun. I assume this would be true for RunCC.

I added the following lines to the end of my ROM script to get it deleted.

WriteFile( "\windows\startup\clean.mscr", "Delete( ""\Windows\StartUp\RoryB.mscr"", TRUE )^NL^" )
WriteFile( "\windows\startup\clean.mscr", "Delete( ""\Windows\StartUp\Clean.mscr"", TRUE )^NL^", TRUE )
[Windows Mobile Software Development] blazingwolf:
Yep, I'm a maroon. Completely forgot that. :o

Now that I have fixed the taskmgr issue. XDA_UC is working like a champ. :D

I did make a change so that it would run at first boot even with the autorun.exe since I am not using that for UC. :)

One other thing I would like to add is a soft reset after tapping OK to get out of the Popup saying that XDA_UC has run. If you have the code handy that would be great but I will be reading the Mortscript manual too.
[Windows Mobile Software Development] RoryB:
In Mortscript, the line is "reset" without the quotes and no ()
[Windows Mobile Software Development] blazingwolf:
Thanks. I will work on getting this in. :)
[Windows Mobile Software Development] Noonski:
That's exactly where the v 1.0.02 is at indeed. there is no actual need for either RunCC or Autorun type of config.

Just the illusion that it is needed. A very respected, and for this quote unnamed XDA member and PPC developer, said "I find all unnecessary reboots unwanted and anyoing"

But the votes do tell us something, that opposes the mindset that we might share. People tend to stick to what they are familiar with.

No offence meant here, just looking at the poll results and drawing conclusions of these.
[Windows Mobile Software Development] wg5566:
Well, I'm so stupid that always one way thinking. Just figure it out that if I use SpriteBackup and only backup the PIM info, the backup file will be an executable itself. But SpriteBackup uses a forced reset. This only can be added to the last stage.

Another thing is I found in China somebody developed some similiar ways like XDA_UC.(Will edit this post and provide more info later on.) In that way they just restored the pim.vol file from the designated folder.

Edit:

In China, the way used is called MicNeo, seemes developed by a guy named 'Lao Mai' or 'Mic', while Neo seems to be author of autoshotcut.exe.

I can not access their main website (www.5dppc.com) right now, becoz that site can only be accessed from ip address in China. Through Baidu (the #1 search engine in China)'s cache, I can access the first page of their forum(all Chinese language, but still can not access the target page: http://www.5dppc.com/thread-5897-1-1.html

But I got some introduction from some other sites. translate here: (seems first developed only for diamond ROM.)

Edit:

Latest MicNeo Customization Mechanics & Tools (Basically can be used immediately after flash a rom)

Customization Mechanics:

Only most basic parts are integrated in ROM, others made in cabs, can be installed by user as per need.

These are realized after flashing a ROM:

Automatic installation of CABs;

Automatic restore contacts;

Auto restore user dictionary of MeiHua SIP;

Auto registry import (from .reg .rgu .xml .proxml etc);

Auto classificate shortcut for programs;

auto creat shortcut for greenwares stored in storage card folder;

customize startup splash picture & sound,

customize system fonts (for users to select Chinese fonts)

...

Customization Package Contents::

MyROM folder ----place to root of storage card

GreenSoftware Folder--- place to root of storage card

MyROM contents & function:

Auto_CAB---------------place here CABs needed to be auto installed after flash

MANUAL_CAB------------Cabs needes user interference

DIC_BACKUP--------------MeiHua SIP user dict

PIM_BACKUP-----------------pim.vol

MANILA----------------Contains different styles of TOUCHFLO3D,no need user touch

REG-------------------Reg、Rgu、XML、Provxml

STARTUP_SPLASH----------------------animated.gif, BootUpHTC.wav

GreenSoftware Contents & Function:

Shortcuts for the Greenware here will be auto created and automatically clasified to respective folder.

User may place his own GreenWare here, micneo autoshortcut will do the shortcut creation & classification;

May edit the config.ini to classify user's own additives.

That's all for now
[Windows Mobile Software Development] Noonski:
I used to copy over pim.vol over to and it worked great until it got corrupted and was breaking my cprog.exe after every flash.
[Windows Mobile Software Development] wg5566:
If pim.vol could cause crash, an exe created by SpriteBacup should be better.

Although SpriteBackup is not freeware, in Asia a lot of HTC devices are shipped with Spritebkp bunddled.

If not for pim restore, to execute some exes may also needed for other poppose.

Please check my last post for MicNeo.

Just found that's the instruction for a doamond rom with OS19965, pretty old, maybe has updste now. Will check again.
[Windows Mobile Software Development] RoryB:
I just remembered your XDAUC had a bootcount check in it. When I get back to my kitchen I'll have to check it and get rid of writing the clean script. If I remember correctly bootcount=1 right after flash, so if bootcount>1 I can delete \windows\startup\RoryB.mscr otherwise run it.
[Windows Mobile Software Development] blazingwolf:
That's what I have done. Working great. :)

Thanks for the reset code. That works perfectly too.
[Windows Mobile Software Development] RoryB:
I figured another trick for the zip files I use. The zip file trick I do allows me to have only one file in the windows folder and puts the files in their final locations. Example: the templates for office mobile. I have an office.zip file that has the templates in their correct subfolder in the zip file. When I unzipall, the templates end up in \My Documents\Templates folder. I understand that keeping the number of files in the windows folder as low as possible is supposed to help with operating speed.

I use this to run the zip files.

ForEach xprogram, xzip in regValues ( "HKLM", "\Software\MortZip" )
SetFileAttribute( xzip, "readonly", FALSE )
Sleep( 1000 )
Unzipall( xzip, "")
Sleep( 1000 )
EndForEach

If( RegKeyExists( "HKLM", "\Software\MortZip" )
RegDeleteKey( "HKLM", "\Software\MortZip", TRUE, TRUE)
EndIf
[Windows Mobile Software Development] Noonski:
I see why you're using the reg read for these now.

But this is a perfect example to rename the .zip extension to .xdas.

And place the script to unzip to "", into the zip/xdas file and name the script inside to silent.mscr.

So there is no need to add extra script to unzip, as it's already there but in the form of execution of .xdas files.

DaMn what a weekend, hot and fun, could have used another day of rest before going back to work again.
[Windows Mobile Software Development] blazingwolf:
So I added a reset command at the end of the XDAUC.mscr. Now I am getting 2 soft resets instead of one. :confused:

Only thing I can think of is that something is still happening after I push the OK button. I'm assuming it is the removal of the files from startup. Would added a sleep command help in this situation?
[Windows Mobile Software Development] Noonski:
Can you attach your script?
[Windows Mobile Software Development] blazingwolf:
Here it is. Thanks for looking at it. :)

Only made two changes so far. Changed mode to 1 if autorun.exe is found. Added reset at the end of the file.
[Windows Mobile Software Development] Noonski:
I think it's best to place it here, check it out.

####################################
# Installation Finshed Message #
####################################

If (method = 2 )

If (RegRead( "HKLM", "Comm", "BootCount" ) eq 2)
Sleep("10000")
BigMessage("XDA_UC has finished installations of present personal installations and tweaks. Please do not report any errors to the MortScript Forum but to the XDA_UC User & Cook threads or the thread of the Rom you have just Flashed. Adding user created or your own scripts can do serious damage your device, only use installations from a trusted or confirmed source, but the responsibility and Choice to use these, is always your own. Press OK to start the XDA_UC installation service.", "XDA UC Service Start")
Sleep("5000")
Reset
Else
EndIf

Else

If (RegRead( "HKLM", "Comm", "BootCount" ) eq 1)
Sleep("10000")
BigMessage("XDA_UC has finished installations of present personal installations and tweaks. Please do not report any errors to the MortScript Forum but to the XDA_UC User & Cook threads or the thread of the Rom you have just Flashed. Adding user created or your own scripts can do serious damage your device, only use installations from a trusted or confirmed source, but the responsibility and Choice to use these, is always your own. Press OK to start the XDA_UC installation service.", "XDA UC Service Start")
Sleep("5000")
Reset
Else
EndIf

EndIf

But i can add a Yes/No/Cancel to that if this is where it works best for you.
[Windows Mobile Software Development] blazingwolf:
I will give that a shot and see what happens.

The Yes/No/Cancel sounds great but I hate to impose on your time.
[Windows Mobile Software Development] Noonski:
I had a snippet lying around, You can Easily adjust it by taking out the RegWrite commands. Sleep time for me now.

Switch (question ( "Disable Threaded SMS?", "Threaded SMS", "YesNoCancel" ))
case (0)
RegWriteDword ("HKCU", "Software\Microsoft\Inbox\Settings\OEM", "SMSInboxThreadingDisabled", 0)
SleepMessage( "5" , "Device Will Auto Reset in 5 seconds, to apply the settings." , "Threaded SMS" , 0 )
RESET
case (1)
RegWriteDword ("HKCU", "Software\Microsoft\Inbox\Settings\OEM", "SMSInboxThreadingDisabled", 1)
SleepMessage( "5" , "Device Will Auto Reset in 5 seconds, to apply the settings." , "Threaded SMS" , 0 )
RESET
case (2)
Message("No Settings Have Been Changed.","Threaded SMS")
EndSwitch
[Windows Mobile Software Development] blazingwolf:
Thank you. I will work with this some more. :)

Moving the resets as you suggested seems to be working. :D
[Windows Mobile Software Development] Noonski:
Bump, Uploaded V 1.0.02 and adjusted first posts to this.

Now there is just one method.

Thanks for the feedback.

And the biggest thanks to RoryB that took a shotgun to SDConfig.txt and made it work without SDConfig.txt
[Windows Mobile Software Development] Noonski:
Yes if you have Mortscript as a seperate Package there is no need for that extra package.

Taskmanager is important it parses the .xml and .reg files from User folder.

The Cook.tsk is optional and an example, you can replace it with the theme you want to use in the rom. Then remove that theme from the config.txt line it is implemented in.

If a user places a My.tsk theme in the XDA_UC folder that theme will be aplied instead of the cook's theme.
[Windows Mobile Software Development] Mr. Makk:
thanx for answering my question,

i small querry. me being a cook, if i have to by default add a tsk theme in rom on 1st installation then i have to name it as cook.tsk only?? right??
[Windows Mobile Software Development] Noonski:
That is correct.

But you could also do it the old fashioned way if your still using Autorun or RunCCm config files.

Personally i like to cook my roms with no cabs in rom at all.
[Windows Mobile Software Development] Mr. Makk:
1 Suggestion

well all seems cool and very helpful. but 1 restore process is done manually, i.e. pim backup.

if possible or if seems feasible you can even add pimbackup restore as well in future
[Windows Mobile Software Development] Noonski:
PimBackup is also on my Whishlist.

Also it looks like i will need to disable the Screen light from going of and then returning the default values once XDA_UC is finished when the screen goes of something is slowing down cab installations.

Didn't sleep yesterday so that will have to wait.

For V3 i will be adding:

BattSuspendTimeout = RegRead ("HKLM", "System\CurrentControlSet\Control\Power\Timeouts","BattSuspendTimeout")
ACSuspendTimeout = RegRead ("HKLM", "System\CurrentControlSet\Control\Power\Timeouts","ACSuspendTimeout")
BatteryTimeout = RegRead ("HKCU", "ControlPanel\Backlight", "BatteryTimeout")
ACTimeout = RegRead ("HKCU", "ControlPanel\Backlight", "ACTimeout")
Brightness = RegRead ("HKCU", "ControlPanel\Backlight", "Brightness")
ACBrightness = RegRead ("HKCU", "ControlPanel\Backlight", "ACBrightness")

RegWriteDword ("HKLM", "System\CurrentControlSet\Control\Power\Timeouts","BattSuspendTimeout",0)
RegWriteDword ("HKLM", "System\CurrentControlSet\Control\Power\Timeouts","ACSuspendTimeout",0)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "BatteryTimeout", 0)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "ACTimeout", 0)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "Brightness", 10)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "ACBrightness", 10)

At the beginning to keep the Screen on during the whole UC proccess to speed up the installations, the Installations time out when the device goes to sleep.

And at the end i put back the values again.

RegWriteDword ("HKLM", "System\CurrentControlSet\Control\Power\Timeouts","BattSuspendTimeout",BattSuspendTimeout)
RegWriteDword ("HKLM", "System\CurrentControlSet\Control\Power\Timeouts","ACSuspendTimeout",ACSuspendTimeout)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "BatteryTimeout", BatteryTimeout)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "ACTimeout", ACTimeout)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "Brightness", Brightness)
RegWriteDword ("HKCU", "ControlPanel\Backlight", "ACBrightness", ACBrightness)

Many thanks to who ever posted this to the Mort Script Accumulations Thread.

Works Like A Charm.
[Windows Mobile Software Development] Mr. Makk:
NOONSKI comes online last night according to my timezone and its just afternnon here and i need this registry changes in the script as i havt to upload my new rom.

can someone do it for me?

where and how to add these above changes to the script??
[Windows Mobile Software Development] RoryB:
@Noonski, we keep attacking things similarily. I set the backlight and power off settings in one of my rgu files that was setting them already and reset them at the end.
[Windows Mobile Software Development] Mr. Makk:
Backlight issue solved

Here is my script. I have changed alot of things which some of you can take up but most imp is the inclusion of Backlight Solution.

I have added the Backlight Soln that noonski gave above, to the below script so that anyone can use it.

Some more speciality about my script is that the End msg is deleted and straightaway the phone resets.

Basically this script is to be used as 1st boot installation.
[Windows Mobile Software Development] Noonski:
Mort has specificly asked to have a message pop up about suppiort for any error messages.

If you remove the message it should be stated somewhere else.

The intention is to keep things unified a bit so not to confuse users of different roms.

Check with Ameet,

I'm either a not so secret CIA agent or a mind reader ;)