yashsingh1/xdaforums huggingface dataset:
[Touch Pro, Fuze ROM Development] zee750s:
but i tried that and nothing installed. i just want to install everything to sd card. the sdauto folder did not work for me , im a newbie to xdauc, so is there a file i need to correct. how di i set xda-uc to default to sd card instead of the phone. so i can place all files in the main folder.
[Touch Pro, Fuze ROM Development] blast0id:
are you using my mod? or just xda_uc? xda_uc does not support SDAuto folder, only my mod does... you have not been clear if you are using my mod or not...
[Touch Pro, Fuze ROM Development] chrisrj28:
Hello my friend, I am using your mod and have been since you posted it in the Leo thread but on the latest release in my signature I am having some trouble. The mscr to install sdauto starts just fine but then and random points during the install period I get an error for line 191 saying windows 'installation' file can not be located and then XDA_UC ends and reboots without installing all my .cabs. Any ideas?

Oh and some .cabs don't auto install but most do, do you know why that happens? I mean if I select them they install fine and then it continues just fine. Thanks for any info.

**Edit I just tried to hard reset and reload, the exact words are:

Window 'Installation' could not be found

Line 191 (\Storage Card\XDA_UC\0002_sashimi_sdauto.mscr):

Show( txtInstallWindow)
[Touch Pro, Fuze ROM Development] blast0id:
ok, sorry for your troubles, I will look into it... are the cabs you're using all UC compatible? as in no pop-up windows of any sort?
[Touch Pro, Fuze ROM Development] blast0id:
pretty solid update to 2.4, check out the new features, let me know how it's helped you =)
[Touch Pro, Fuze ROM Development] chrisrj28:
You know I just deleted my current sdauto.mscr and re-downloaded the one you posted and did it again and it went through fine. Maybe the one I had became corrupted? Oh well, is there an update to the sdauto? That's the only one I really need, great work here by the way
[Touch Pro, Fuze ROM Development] blast0id:
no changes were made to that file, so it must have been corrupted some how... glad it's working for you now =)
[Touch Pro, Fuze ROM Development] chrisrj28:
Yeah thanks again!
[Touch Pro, Fuze ROM Development] mrcpu:
OK, 1 ?, 1 contribution.

I don't get how the filebackup.ini stuff actually gets populated. By the time I flash a ROM and then XDA_UC runs, I've already lost the settings that at that point in time I'm trying to back up... LIke pim.vol and such. I can see how XDA_UC could replace it, but I don't see how to get the copy just before I flash.

Now for the contribution:

I did find this web page at MS that documents a lot of provisioning examples that may be useful...

http://msdn.microsoft.com/en-us/bb737572.aspx
[Touch Pro, Fuze ROM Development] blast0id:
as for the question, I'm not exactly sure what you're asking...

the customFRE mod, is a backup tool, to use BEFORE flashing.

filebackup.ini (in the 2nd post) is just an example, but I didn't blank it out when zipping up the mod, I left it so people could see how things need to be put/structured in it...

[section]
FileBackupDirMode=Auto/Manual
brief_description=\path to file(s)\*.*,*

Auto gets saved in \XDA_UC\Root\, Manual gets saved in \XDA_UC\Manual\Root

*.* will only copy all files in the folder

*.*,* will copy all files plus subfolders

if that isn't what you were asking, please clarify, I'm sorry if I misunderstood what you want to know.
[Touch Pro, Fuze ROM Development] chrisrj28:
Dang it this happened again. I downloaded it again and it worked. THen this same thing again, that line 191. Any idea what thats about?
[Touch Pro, Fuze ROM Development] blast0id:
weirdness, how many cabs do you install to mSD, is it too many to "troubleshoot" eliminating them one by one to see which one might be causing it... if it was the script it would be giving you the same error on every single cab. Is that what it's doing? or are you only seeing this error once during the setup?
[Touch Pro, Fuze ROM Development] chrisrj28:
Yeah I got rid of the .cabs that I wasn't using and may have been questionable. The weird thing is it happens at random. On one flash the script worked just fine, on the next I got that error. i did a hard reset and then it happened again at a different point in the flash. I'm not faulting the script as you said it would happen for every .cab.

Still trying to pin it down lol
[Touch Pro, Fuze ROM Development] blast0id:
alright well if you figure out what cab it is let me know and maybe I can figure out a workaround for it...
[Touch Pro, Fuze ROM Development] zehro:
In the latest version (2.4.1) it is throwing an error while trying to read "customFRE.mscr" at line 49. Here is the problem line of code:

PIMBackArr = dirContents( XDAUC_FOLDER & "\*.pib )

It should be:

PIMBackArr = dirContents( XDAUC_FOLDER & "\*.pib" )

EDIT: another line of code is throwing an error. Line 187:

If (NOT isEmpty( PIMBackArr )

It should be:

If (NOT isEmpty( PIMBackArr ) )

Runs perfectly after this. Thanks for your work on this, its a great program.
[Touch Pro, Fuze ROM Development] blast0id:
shoot, yeah, sorry I uploaded the wrong one... I thought I had already fixed that... so so sorry!, but thanks for posting the fix for those who want to manually edit the file =) much appreciated!
[Touch Pro, Fuze ROM Development] markmi300:
Automatically install Widgets

Hello. Is there a way to automatically install widgets (.wgt) files during User Customization (XDA_UC or SDConfig.txt)? Thanks for the help.
[Touch Pro, Fuze ROM Development] blast0id:
I'm sure there is... I will look into it. =)
[Touch Pro, Fuze ROM Development] markmi300:
Thanks. I appreciate it.
[Touch Pro, Fuze ROM Development] zehro:
This part isn't working for me. Is this the correct place to put the file? Does it work for other people?

I did search in the other UC thread's and found this suggestion to place the file here:

Storage Card\SASHIMI\Auto\Root\Windows

I notice that the XDA_UC folder has a different structure to this. So I wonder if it is possible to import other files (images/sounds) from the mSD to the device storage by putting them in this folder:

\STORAGE_CARD\XDA_UC\Root\

If so, then I could perhaps solve my first question by putting the welcomehead.192.png file into:

\STORAGE_CARD\XDA_UC\Root\Windows\

I can't test this right now, but when the new Energy rom is released (hopefully soon!) I will let you know how it goes.

Sorry if this has already been answered and I am wasting your time, I did try to find a solution.
[Touch Pro, Fuze ROM Development] blast0id:
If you use this mod, then placing it in the above mentioned folder (XDA_UC\Root\Windows) will work... however, if you do not use my mod, then place the file in XDA_UC\sense and it will get copied over properly...
[Touch Pro, Fuze ROM Development] blast0id:
maybe you can try:

RunWait( "\Windows\WidgetInstaller.exe", "\Storage Card\XDA_UC\widget1.wgt" )

copy this into a new txt file and name the file widget.mscr (NOT widget.mscr.txt) and place the widget.mscr and widget1.wgt both in the XDA_UC folder, if you already have a XDA_UC folder populated, just rename it to XDA_UC2 temporarily, then create a new folder and name it XDA_UC, place the two files in it and then run XDA_UC from start>programs>tools

let me know if it works.
[Touch Pro, Fuze ROM Development] markmi300:
Hey thanks for the input. Unfortunately it didn't work. I did not have "WidgetInstaller.exe" in the windows directory, but there was "wmwidgetinstaller.exe". I used that one. Here's the code:

RunWait( "\Windows\wmwidgetinstaller.exe ", "\Storage Card\XDA_UC\CNN.wgt" )

The XDA_UC goes through the motions, I don't get any errors, but sadly the widget does not install. Just for grins, I even did a soft reset. Any ideas?
[Touch Pro, Fuze ROM Development] blast0id:
Hmm... try:

[B]RunWait( "\Windows\wmwidgetinstaller.exe", "/install ""\Storage Card\XDA_UC\CNN.wgt""" )[/B]

otherwise I'm really not sure... I'll keep digging though...
[Touch Pro, Fuze ROM Development] markmi300:
:( No Go. XDA_UC says its successful. Is there any kind of log I can look at for clues?

EDIT: enable_widgets_wm6.5.cab was installed when I flashed the rom. I'm not sure if this will help in your investigation or not. I just removed it and tried xda_uc again, but same results.
[Touch Pro, Fuze ROM Development] markmi300:
Hey benjamminzIS,

I tried running the mscr files manually. Here are the results. Hopefully this will help with the debug.

This first one is from the entry:

RunWait( "\Windows\WidgetInstaller.exe", "\Storage Card\XDA_UC\widget1.wgt" )

The second one is from the entry:

RunWait( "\Windows\wmwidgetinstaller.exe", "/install ""\Storage Card\XDA_UC\CNN.wgt""" )

Thanks again.
[Touch Pro, Fuze ROM Development] RezzZ:
Hi benjamminzIS, trying your dialer_copy2root.mscr but it won't copy any folders or files from my XDA_UC\Root folder to the root of my device... do I need to do something besides copying the file to my XDA_UC folder?

edit: it looks like it won't complete it's task.. after I select a theme I get a blank screen with the correct theme background, the start, action and contacts button and that's it. No reload of Sense and no XDA_UC is completed please restart popup...

edit2: only got the following line in my mscr file now:

XCopy( "XDA_UC\Root\*.*", "", TRUE, TRUE )

still no luck.
[Touch Pro, Fuze ROM Development] blast0id:
I need to find a better way to try killing manila.exe, because sometimes it won't kill and if that's the case my script is stuck in a while loop trying... I'm working on the issue... you can, in the meantime, change those "While / EndWhile" statements (any one that contains a kill statement in it) to "If / EndIf" statements...

edit: the xcopy, if you're going to have it by itself should be:

XCopy( "\Storage Card\XDA_UC\Root\*.*", "", TRUE, TRUE )
[Touch Pro, Fuze ROM Development] blast0id:
Hey, I'm sorry... but I haven't had any luck with this... someone in a thread, did say that wgt files are just a zip, so technically you just extract them, and then use a mortscript to copy the contents where they need to go and create a shortcut...
[Touch Pro, Fuze ROM Development] RezzZ:
damn, stupid of me to miss that. Hope it works next time I flash ;). Thanx man!
[Touch Pro, Fuze ROM Development] markmi300:
Hey BenjamminzIS,

I have been playing around some and trying to learn (code) mscr and was able to get the following to work. Now if I can just get it to install automatically and silently that would be great! All suggestions welcome. :D

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\CNN.wgt")

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\craigslist.wgt")

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\DISH.wgt")

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\EBAY.wgt")

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\Fandango.wgt")

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\Flight_Stats.wgt")

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\FoxNews.wgt")

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\People.wgt")

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\TVGuide.wgt")

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\YouTube.wgt")

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\weatherchannel.wgt")

RunWait("\Windows\wmwidgetInstaller.exe", "\Storage Card\XDA_UC\wikipedia.wgt")
[Touch Pro, Fuze ROM Development] blast0id:
koolio, so this would be a little better for you...

XDAUC = "\Storage Card\XDA_UC"
WGTfilesArr = dirContents( XDAUC &"\*.wgt" )

ForEach key, file in array( WGTfilesArr )
If ( isEmpty( WGTfilesArr ) )
sleepMessage( 5, "Couldn't find any^NL^widget files to^NL^install... aborting...", "Error!!!", 1 )
Else
filename = part( file, "\", -1, 1 )
Run( "\Windows\wmwidgetInstaller.exe", file )
sleep( 1000 )
SendLeftSoft
waitForActive( "Warning", 10 )
If ( wndActive( "Warning" ) )
sleep( 250 )
SendLeftSoft
ElseIf ( wndExists( "Warning" ) )
Show( "Warning" )
sleep( 250 )
SendLeftSoft
Else
sleepMessage( 5, "Couldn't find window^NL^widget may still have^NL^installed properly though...^NL^check remove programs list", "Error!!!", 1 )
EndIf
EndIf
EndForEach

This will automatically parse each .wgt file in the folder, and will also "automate" the install process, it's not totally "silent" as you can see what's going on... but you don't have to manually do anything =)

I think I will add this to my mod, I'm pretty close to being done with the re-write, trying to make it more modular, and decided to include the SDAuto script from sashimi, hopefully I will have the updated mod, posted later tonight... definitely going to include this widget script though, thanks for getting the command figured out =) I'm sure that will make some people happy =)
[Touch Pro, Fuze ROM Development] markmi300:
Hey Ben. Happy 4th of July.

Unfortunitly the script didn't work. I got the errors listed below.

Is it possible it's because I'm using version MortScript-4.2-PPC of the mortscript?

I have to downgrade to this version in order to get the Titanium Weather module to work.
[Touch Pro, Fuze ROM Development] blast0id:
yeah, I did some testing with latest beta i could find of mortscript... not sure why they changed it like that... but anyway see below for corrected script, I have tested this and it installed them all with no issue =)

sorry about that, wish they hadn't changed it like that, now I have to rewrite a bunch of script... lol... anyways, let me know how that works for you! =)
[Touch Pro, Fuze ROM Development] Ralt:
Ring Tones & Files

Hey benjamminzIS,

Have you found a way to automate ring tone assignments? I'm currently using keep my tone...but it's a manual run after each flash.

I'm just getting ready to use install customFRE with this flash and use it next time pre-flash. is there a way to copy my documents to the \root\my documents on the SD so they are copied back with XDA_UC.

And finally, I want to only use PIMbackup for call history and text messages...is there a way to set that up and save the job? AND if I were to back up non-exchange emails...would that eliminate re-downloading of the last 5 days of email when it restarts? edit..I'm testing that now...

thanks for your great work! I update your script before each flash.

Ral
[Touch Pro, Fuze ROM Development] pee-wee:
Hi Ben, :)

I love the XDA_UC, but i have little problem since i flash new energy with new sense 2016...

I can't copy all files from the XDA_UC\root to my device, even startup shortcut...

can you help me for this?

note:

difference from your original XDA_UC:

- all installer .cab in XDA_UC\SD (no problem, it can run)

- registry setting in XDA_UC root (no problem, it can run)

- files/folder tobe copy to internal in XDA_UC\ROOT (cannot copy all of these files) :confused:

- other than above is original from your XDA_UC MOD 2.4.1 link

thanks, sorry for my english... hope you understand what i mean
[Touch Pro, Fuze ROM Development] blast0id:
does your folder structure look something like this:

XDA_UC\Root\Program Files

XDA_UC\Root\Windows\Startup

XDA_UC\Root\Windows\Start Menu

...etc... ???

the Copy and XCopy functions can sometimes have trouble with files that have HIDDEN, SYSTEM or READ ONLY attributes set... I suggest using a program like "Flexible Renamer" (for windows PC) to change the attributes to be set as "ARCHIVE" only...

are some files copying and others not copying? or are NO files copying?
[Touch Pro, Fuze ROM Development] pee-wee:
i've set all atributes to "archive" on PC and trying to run XDA_UC again, and great... It work Ben :D

thanks for helping :)
[Touch Pro, Fuze ROM Development] blast0id:
I think that it would be possible to fully automate PIMBackup to backup only those things... and maybe even to restore them... I will see what I can do...

as for your question about copying to root, that is very easy to do with the customFRE tool, just look at the filebackup.ini in post#2 or #3

if you want to backup the entire My Documents folder the entry should look like "MyDocs=\My Documents\*.*,*"

if you only want to backup a certain folder then it should look something like:

"MyDocs=\My Documents\My Folder\*.*" if the folder you want to backup has sub-folders then add ",*" to the end...
[Touch Pro, Fuze ROM Development] blast0id:
happy to, anytime! =)
[Touch Pro, Fuze ROM Development] markmi300:
Hey benjamminzIS,

The script worked!! I uninstalled all the widgets and ran the mscr script from File Explorer. Curious though. Some of the widgets prompted me for “Add and Run the Widget?” Yes or No answer, while others installed without the prompt. If I delayed my “yes” response for too long, the script would abort. No big deal. This is still much better than doing each widget manually. I really appreciate the time you put into this.

Thanks

Mark
[Touch Pro, Fuze ROM Development] blast0id:
I will post my updated version of the script later this evening, I think I've got it tweaked a little better... it is now (upon release) included in the full NRG_XDA_UC_Mod_2.4.5, to be released later this evening, I know I said I was going to do it the other day, but with a baby on the way things have been a little hectic, to say the least =P
[Touch Pro, Fuze ROM Development] markmi300:
No problem. Thanks again for all the help.
[Touch Pro, Fuze ROM Development] Ralt:
Sense Fix files

benjamminzIS,

I probably posted this question in the wrong forum previously, but could you provide as part of your zip file the sense fix folders\files (if you have them)? I have all of the files in \root\windows and everything works...but as issues are fixed in the ROMs, I would not have any idea which files to remove without breaking other things.

Thanks

Ral
[Touch Pro, Fuze ROM Development] blast0id:
sure I will do that, I will update this post in a little while, with links to the fixes I'm currently using =)
[Touch Pro, Fuze ROM Development] shaolin95:
I am not having luck getting the benjamminz sashimi_sdauto_mod to work.

I unzipped it to the root of xda_uc folder and added some Cabs to the SDAuto folder but nothing gets installed.

The first time I got this message:

Couldn't Write file

Line 366/Storage Card\XDA_UC\_Mod_sashimi_sdautoinstall....etc, etc

But that happened just one time

Now it just goes through the whole list of things when I activate the xda_uc and ends without installing anything on the SDAuto folder.
[Touch Pro, Fuze ROM Development] Ralt:
How to set outlook signature

Is there a way to incorporate an email signature into exchange xml provisioning file? or another way?
[Touch Pro, Fuze ROM Development] blast0id:
I'm sorry I haven't gotten to this yet, I am working on a sorting method for a few of the routines... also want to see what is or isn't needed for the latest NRG RAPH ROMs...

I will double check the script when I get home later tonight... I haven't heard anyone else mention this kind of problem yet though...

not that I am aware of...
[Touch Pro, Fuze ROM Development] nikagl:
Not with provisioning. There's a tool that works for me:

http://mobilitydojo.net/2009/02/23/setting-email-signatures-from-your-mdm-platform

Regards,

Nika.
[Touch Pro, Fuze ROM Development] shaolin95:
Yes, I havent found anything either so maybe I am doing something wrong but it seems fairly simple based on your instructions...just extract to the root of xda_uc and add the cabs to the SDAuto folder. Then I am running the xda_uc from the tools options in my Windows start menu.

Thanks
[Touch Pro, Fuze ROM Development] blast0id:
have you localized your ROM to any particular language?
[Touch Pro, Fuze ROM Development] nikagl:
It's an issue with my ROM too and caused by lack of the logFile variable and a typo in the starting SASHIMI SDAuto taskMSG. Debugging now and will send the fix in a minute... :)
[Touch Pro, Fuze ROM Development] nikagl:
Hi guys,

I have tried a minute ago, same error. Debugged it, see attached a new version of the script (just sashimi_sdautoinstall.mscr). Can you try this?

Changes:

* Added the following to the local variables:

logFile = ModPATH \ "log.txt"

* Added double quote and ", 1" to the "starting SASHIMI SDAuto" taskMSG:

@taskMSG( "Starting SASHIMI SDAuto", "SASHIMI SDAuto", 1 )

It's up to Benjamminz to check this, make a new version and edit his first post :)

Regards,

Nika.
[Touch Pro, Fuze ROM Development] shaolin95:
Thanks mate!

I tried it and it works if I manually go to the xda_uc folder and run the 0002_sashimi_sdauto..etc file.

If I run the xda_uc option from my Tools menu it does not run.
[Touch Pro, Fuze ROM Development] nikagl:
Just use the one from my previous post and extract it to the _Mod_ folder and you're set to go :)
[Touch Pro, Fuze ROM Development] blast0id:
jeez, ::hides face in shame::facepalm::

fix will be up momentarily... so much for double checking =P
[Touch Pro, Fuze ROM Development] nikagl:
Lol, no probs, I hadn't tried your installer yet, maybe with the next ROM I'll try the full mod too :)
[Touch Pro, Fuze ROM Development] shaolin95:
I did amigo and it works great as long as I run the file within the xda_uc folder...if I use the xda_uc option in my TOOLS section, then it does not start.

Still, I love it :D
[Touch Pro, Fuze ROM Development] nikagl:
Correct, XDA_UC writes an entry when it has executed an mscr and this one it has already executed, so it won't do it again. Rename the mscr, install a new ROM, or remove the registry entry and you're good to go again (just once :D).

Regards,

Nika.
[Touch Pro, Fuze ROM Development] shaolin95:
This for sure makes my day bro...at the rate I update Roms, the more I can get automatically to install, the better. :-)
[Touch Pro, Fuze ROM Development] blast0id:
first post updated =)
[Touch Pro, Fuze ROM Development] bokechukwu1:
every script that i try to run i get an operator error cant get this to work
[Touch Pro, Fuze ROM Development] blast0id:
I need some more info, a screen shot, what device, rom are you using? I can't be of much help if you are this vague... trust me I DO want to help!
[Touch Pro, Fuze ROM Development] blast0id:
updated early this morning.

SDAuto now supports numerical sorted install...

name your files 001_filename.cab, 002_filename.cab...etc... you CAN have duplicate numbers and the "_" is MANDATORY, ie: not optional, must be present and directly follow the numerical index.
[Touch Pro, Fuze ROM Development] SSJ4Gokou:
I downloaded your UC and everything seems alright but i Get and Error when running your script.

Unknown command '@taskmsg' Line 205 (\storage Card\XDA_UC\NRG_XDA_UC_Mod_2.5.mscr): @taskMSG("Main path variables have been set properly","starting Mod", 1)

But it never finishes installing my apps to my SD or any Sense files just was is on the root of the XDA_UC folder.
[Touch Pro, Fuze ROM Development] blast0id:
did you extract the contents of the zip to \Storage Card\XDA_UC\

if so, and you are running my script MANUALLY (ie: opening it via file explorer/total commander) you have to click on the 0001_NRG_XDA_UC_Mod_Loader.mscr, you can't run the script that is in the _Mod_ folder UNLESS you have installed MortScript 4.3b11 or higher, this is why I created the loader script so that it loads the script using the MortScript.exe that is in _Mod_ folder and not the "installed" version on your device...

so please run this: 0001_NRG_XDA_UC_Mod_Loader.mscr which SHOULD be in the root of XDA_UC

=)
[Touch Pro, Fuze ROM Development] steveianson:
Weather.widget

I use Weather.widget. Will this install if put in the WGTfiles folder?
[Touch Pro, Fuze ROM Development] blast0id:
if you change the extension from .widget to .wgt it should =)