yashsingh1/xdaforums huggingface dataset:
[Touch Pro, Fuze ROM Development] markmi300:
Hi benjamminzIS,

Once again I want to thank you for the widget help the other week. I’ve also got some feedback for you regarding the benjamminz_NRG_XDA_UC_Mod_2.5.

I updated to NRG’s 23569.Sense2.5.Cookie.DinikGlass.Jul.13 ROM and tried your XDA Mod. When I flash my ROM it’s done via USB not from the SDcard. The widget portion only installed 2 out of the 12 widgets. I had mis-read your doc regarding the SDAUTO folder and didn’t realize that CABS placed there would install to the SDcard. I interrupted the XDA_UC and moved the .wgt files from XDA_UC\_Mod_\WGTfiles to XDA_UC\ and put the original widget.mscr script we created back under the XDA_UC. I also moved all of the cabs from the SDAUTO directory to the XDA_UC root. I did a hard reset and started over with the config. All the CABS and widgets installed correctly this time. I did have to manually click YES to confirm each widget installation.

Also, (and this might be something I’m doing wrong), is it possible that I could be installing the chtbackup.cht and/or registry entries twice? I ran the CHTEditor Export Settings, Settings Exporter and the customFRE Full minus file option. The ROM auto configuration just seem to take a very long time. Here is the way \Storage Card\XDA_UC is setup. I’m only listing directories that have updates in them:

\XDA_UC

Cabs, 0001_NRG_XDA_UC_Mod_Loader.mscr, widget.mscr, PIMBackup_20100722.pib, .reg, .wgt, AdvancedConfig.xml

\XDA_UC\_Mod_\CHTfile

chtbackup.cht, chtbackup_(date).old.cht

\XDA_UC\_Mod_\Manual\PIM

Default files from your .zip

\XDA_UC\_Mod_\Manual\REG

1005_htcaccountmgr.reg

\XDA_UC\_Mod_\Manual\Root\Windows

Rings Folder, .wav

\XDA_UC\_Mod_\Root\

Application Data, My Documents, Program Files, ShakeAndSave, Windows

\XDA_UC\_Mod_\TSKfiles

autoTSK.ini

I’ve only used the NRG XDA_UC a couple of times and this was the first time I used your XDA_UC mod, so I want to make sure I’m doing things correctly.

Thanks.

SIDENOTE: Does anyone know how to setup an automatic purge of SMS mail by date? Thanks again.
[Touch Pro, Fuze ROM Development] blast0id:
I'm not sure what's going on with the widget portion, it was acting funny for me too after working perfectly with the past couple energy roms... I don't know if it's his ROM or something else, I'm going to have to do some more testing... not really clear on your other issue, maybe I'm misunderstanding something...

edit: ok, if you want to backup, you only need to use the customFRE, you don't need to use CHTEditor or Settings Exporter, alternatively you can could use the Settings Exporter (which I think also does a backup of CHT settings)... but you definitely don't need to do all 3 and you risk have some registry issues as you are importing multiple reg files that overwrite the same key, in a perfect world this shouldn't matter, but much better to clear either the reg files in the Exporter folder, or the reg files in the root of XDA_UC, reg files (depending on the number of keys exported into them) can take a while to import, so if you're importing the same hundreds/thousands of reg keys, multiple times, it will definitely slow down the auto configuration process...
[Touch Pro, Fuze ROM Development] nikagl:
In AdvancedConfig I see the following registry setting:

HKEY_CURRENT_USER\ControlPanel\Phone

LogCleanPeriod = ???

"0" = 1 Week
"1" = 1 Month
"2" = 2 Months
"3" = 3 Months
"4" = 6 Months
"5" = 1 Year
"6" = Never

Not sure whether it works? Might also be the call log which it's talking about?

If that doesn't work, try the following:

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

Regards,

Nika.
[Touch Pro, Fuze ROM Development] blast0id:
On a side note, I'm working on a SASHIMI_4_XDAUC mod that includes every feature that SASHIMI "auto" mode does... I think I'm about 70% complete, so hopefully by early next week I will have the first version available for testing...
[Touch Pro, Fuze ROM Development] markmi300:
Thanks Again. If I get time this weekend, I'll reflash my ROM with your suggestions and just customFRE imports. :D
[Touch Pro, Fuze ROM Development] markmi300:
Thanks Nika I appreciate the input. It looks like that setting is for cleaning out the calls, not SMS. I'll give the purge software a try and let you know the results.
[Touch Pro, Fuze ROM Development] frosty911:
is there a way or can some one point me in the direction of backing up my internet tab favorites? i dont need XDA_uc to add them after flashing, but i wouldjust like to save the file or reg.

thankyou
[Touch Pro, Fuze ROM Development] blast0id:
in the 2nd post, look at the filebackup.ini, look at the entries for opera, if that's the browser you use, you just need to back those files up, and restore them after a flash... for them to show on the manila internet tab there is a reg setting under HKLM\Software\Opera somewhere it looks like "enableOperaShortcut" or something I think it should be 0x1 just export that key via totalcommander and then import it after a fresh flash... hope that helps!

if you have any other questions feel free to ask =)
[Touch Pro, Fuze ROM Development] blast0id:
I need some SASHIMI users to do some testing for me, please see my signature if you are a SASHIMI user... thank you!
[Touch Pro, Fuze ROM Development] markmi300:
Hi Nika,

I tried the purge program and it worked great. Thanks for the help
[Touch Pro, Fuze ROM Development] markmi300:
Hey benjamminzIS, I tried a couple of flashes over the weekend with your suggestions. I only did the customFRE export which worked great. It did not export/import my Bluetooth or Power settings, so I'll use the XDA_UC exporter for those settings only. It looks like NRG will be releasing an update in the next day or so to correct some bugs, so I'll try this routine then. Thanks for your help.
[Touch Pro, Fuze ROM Development] blast0id:
feedback, pleeeease!

MAJOR UPDATE IN THE FIRST POST =)

hope you guys like it, I would REALLY like to hear from some of you SASHIMI users, and especially some of the advanced, there was a few things I wasn't able to test yet, *.XDA* installs, customlink.ini (I think I have some code to add yet, need to look into it more), tandem and *.auto installs... please, I really need your feedback guys =)
[Touch Pro, Fuze ROM Development] blast0id:
did you see my reply or not? did you get it figured out? did I help?

TRY THE NEW MOD =) I think I've got them FULLY automated now (.wgt/.widget file installs) also some other goodies in the new version, better task killing (thanks to sktools.exe)... and much more!
[Touch Pro, Fuze ROM Development] blast0id:
If you downloaded the new mod, before the date & time of THIS post, please redownload it, as somehow I forgot the code that actuated the CERT install portion...

I also added "Manual" cab functionality, under XDA_UC\_Mod_\filesCAB\Manual, anything in here will just start the installation and wait for you to complete it.

also, the customLnk functionality is now fully functional. I think, I would like to hear back from you though if you use this feature!

sorry for the laziness of my eye =P
[Touch Pro, Fuze ROM Development] blast0id:
updated 1st and 3rd posts, nothing really changed in the auto customization portion, but backup portion got this added functionality for regexport.ini
[Touch Pro, Fuze ROM Development] avs777:
Hi, thanks for the mod.

I just ran the latest S4X_Auto and I see something that does not look correct.

It loops thru cab files and installs them, but when it gets to Reg files, it goes

thru the cab files again trying to import them as regs then imports my reg files.

Then in XML section it does cabs+regs+xml, in MSCR section it tries to run

cabs+regs+xml+mscr and so on.

Am I doing something wrong or is there something missing?

Pre July 31st mod ran fine.

It also hangs for me when trying to kill DeviceLock.exe process
[Touch Pro, Fuze ROM Development] blast0id:
hmmm... when did you download the mod? is it the 1.1? what is the last modified attribute of the S4X_Auto_1.0.mscr in the _bin folder... it sounds to me like the tempSort.tmp file isn't being deleted (as it should be) between iterations... let me look into that... and I apologize for the inconvenience...
[Touch Pro, Fuze ROM Development] blast0id:
OK. I see what I did... I updated the code a little for "debugging" purposes and forgot to change two commands"

open S4X_Auto_1.0.mscr and search for these lines, located in the "sub autoInstallFiles"

If ( fileSkipOverOrArchive = 0 )
copy( tempSortFile, filePath( tempSortFile ) \ "ARCHIVE_"& formatTime( archiveFolderStamp ) \ fileBase( tempSortFile ) &"_"& sType &".txt", 1 )
copy( autoProgressFile, filePath( autoProgressFile ) \ "ARCHIVE_"& formatTime( archiveFolderStamp ) \ fileBase( autoProgressFile ) &"_"& sType &".txt", 1 )
Else
delete( tempSortFile )
delete( autoProgressFile )
EndIf

SHOULD BE:

If ( fileSkipOverOrArchive = 0 )
rename( tempSortFile, filePath( tempSortFile ) \ "ARCHIVE_"& formatTime( archiveFolderStamp ) \ fileBase( tempSortFile ) &"_"& sType &".txt", 1 )
EndIf
If ( fileExists( tempSortFile ) )
delete( tempSortFile )
EndIf

again, I apologize, and I will re-upload the mod when I get home later tonight...

EDIT: Here are the two main scripts for 1.0 and 1.1, with the fixed code, just download whichever one you need, and extract it to the _bin folder and overwrite the existing file... will attache these to the main post as well...

EDIT2: see 1st post for updates now, I messed up again =(
[Touch Pro, Fuze ROM Development] avs777:
Thanks for quick reply :)
[Touch Pro, Fuze ROM Development] rmanaka:
I hope its only me, but I've gotten REALLY confused whether or not I have a current install...I thought I installed a current copy on Saturday (benjamminz_NRG_XDA_UC_Mod_2.5.zip; 837KB) by overwriting all of the files in my XDA_UC subdirectory.

I just downloaded the S4X_Auto_1.1_[FIXED].zip file, but when I looked in my _bin subdirectory I only have a S4X_SDAuto_1.0.mscr file!

What is the best way to completely blow-away your mods in my XDA_UC subdirectory and then re-install a full and current version? Just delete the _Mod_ and customFRE subdirectories and then the:

0001_NRG_XDA_UC_Mod_Loader.mscr

S4X_AutoLauncher.mscr

S4X_SDAutoLauncher.mscr

files in the XDA_UC subdirectory?

I think I got some of your updates crossed up and that was why my latest install (ROM in signature) blew out somewhere in your scripts...

Also, could you verify how I should name files so that they run in the proper order?

In my XDA_UC folder I have:

0001_NRG_XDA_UC_Mod_Loader.mscr

followed by my UC compatible cab files named:

001_xxxx.cab

002_yyyy.cab

...

015_zzzz.cab

followed by my registry files

021_regfile1.reg

022_regfile2.reg

etc.

then my xml file

051_MyAdvancedConfig.xml

and then my script files

081_CopyPOIFiles.mscr (Copies files into program install subdirectories on my SD card)

082_MoveShortcuts.mscr (This was before you processed customlinks.ini)

and finally

S4X_AutoLauncher.mscr

S4X_SDAutoLauncher.mscr

In my SD subdirectory I have cabs that require manual intervention.

002_xxxx.cab

003_yyyy.cab

...

006_zzzz.cab (but somehow it seems that 003_yyyy.cab installs first!)

I suppose that at some point I should move the files into their proper locations in the _MOD_ subdirectory, but at least my XDA_UC install WAS working automatically until the last series of overwrites of your package. That makes me hesitant to keep moving the files around in XDA_UC and getting lost on what installed and what got skipped!

Also if you have a chance, could you document how and in what order do files get processed among the Noonski/NRGZ28 portion of XDA_UC and your mods? At present I am pretty confused about the execution flow... also I tend NOT to use NRG's configuration exporter as I am not sure if they corrupt the registry when I switch versions of ROMs.

I THINK, cabs in XDA_UC, cabs in SD, regfiles in XDA_UC, xml in XDA_UC, then .mscr in XDA_UC? Not sure how S4X fits into the flow!

I have a full SASHIMI install that I had been using prior to the July ENERGY ROMs, but you (and JVH3) convinced me to switch to XDA_UC and also to dump AEBplus in favor of Tarkim's key remapper!

Keep up the great work...sorry that I'm confused at the moment but I'd like to get everything right!
[Touch Pro, Fuze ROM Development] Scabes24:
dialerCABs problem

I'm also running into an issue when it gets to starting/installing dialerCABs it just starts looping.. at first I thought it was because of the dialer CAB, but I removed it and it still keeps get stuck there..

I havent tried 1.1/1.2 yet, was this in the update? or am I doing something wrong?
[Touch Pro, Fuze ROM Development] blast0id:
yeah, being that you have the OLDER version, you need to download the full mod zip, and rename your XDA_UC folder to XDA_UC_Old, then create a new XDA_UC folder and extract the new mod to it's root, now move the files from your XDA_UC_old folder to the proper folder in the new XDA_UC folder... I apologize... but S4X is not compatible with the older Mod...

EDIT: the only file you should have in the new ROOT of your new XDA_UC folder should be "S4X_AutoLauncher.mscr" and the _Mod_ folder, place the REG, XML, PIM...etc files in the respective folder under XDA_UC\_Mod_\filesREG, XDA_UC\_Mod_\filesCAB, XDA_UC\_Mod_\filesXML...etc...

yeah, I just did the update, I apologize... you only need to download the update to the respective mod you originally downloaded, as you already have the other essential files and folders...

sounds like you're using the full mod (S4X_Auto plus Backup Mod) so download, S4X_Auto plus Backup Mod_1.2_[updateONLY].zip
[Touch Pro, Fuze ROM Development] rmanaka:
Thanks, will do! I thought that my legacy file organization was probably goofing things up...:(

12:35AM and you are in FL, EDT, right? Guess XDA is full of night owls!!!

No wonder so many members give a WHOOT!:D Thanks a bunch!!!
[Touch Pro, Fuze ROM Development] blast0id:
hehe, yeah, guilty as charged! =P

happy flashing! =)
[Touch Pro, Fuze ROM Development] sh8an:
great job. haven't tried the latest release but if it is anything close to previous one it should be exciting.

is it just me wanting a move/rename function of files on the device itself?

must say that the sub deletoOps comes really close to being able to incorporate moving/renaming files.

maybe in future version call it fileops.ini and add file/folder renaming?
[Touch Pro, Fuze ROM Development] rmanaka:
I've been happily flashing with the 1.2 mod...

One issue, when I first let XDA_UC run it seems to hang at the step:

STARTING: task kill of process (LockDevice.exe)

If I reset and start over the script proceeds to finish.

I confirmed this behavior with a hard-reset and fresh run.

??? Thanks!
[Touch Pro, Fuze ROM Development] blast0id:
shouldn't be too difficult to add =) I'll look into it...
[Touch Pro, Fuze ROM Development] blast0id:
allright, I'll look into that... do you actually have to reset for it to continue, or does just restarting the script allow it to continue? how long does it hang for? the taskKill process can take as long as 40 seconds I think, because I put in a "while loop" function with a count in case the first, second...etc tries doesn't kill the process, but it eventually DOES break out of the loop, at least it's supposed too...
[Touch Pro, Fuze ROM Development] rmanaka:
Thanks. I let it run for about 10 minutes the first time. Next time I'll wait even longer.

Oh, one hint/procedure you might want to put in post#1 is how to "restart" the mod after a hard-reset. For me, I had to delete the files in the temp folder in order for the silent cabs to re-install. (I also emptied the log, but don't know if that's necessary)

The only other issue I've experienced (and I don't think it's script related) is that when I provision my Exchange server via two silent cabs (been using these for years) as 001_ and 002_, after the soft-reset at the end I find that I have to jump-start active sync by reconfiguring my exchange settings manually and then forcing a send/receive disconnect/reconnect. I think I saw something about this in the Energy thread and it might be because I am hard-resetting rather than task29 and re-flashing. Using MaxSense ATM.

Perhaps I'll use the JVH3 method of sync'ing with Exchange first and then running XDA_UC...

Thank you SO MUCH for your excellent work!
[Touch Pro, Fuze ROM Development] blast0id:
well I just realized why it kept looping... if you don't mind trying this for me

open the S4X_Auto_1.2.mscr in the _bin folder and change

Sub tskKill ( prog, func, attempt )
ms = "500"

If ( procExists( prog ) <> 1 )
ElseIf ( procExists( prog ) )
@taskMSG( "STARTING: task kill of process ("& prog &")", func )
runWait( appSKTools, "#KILLPROC("& prog &") #DELAY("& ms &") #SILENT" )
While ( procExists( prog ) )
Repeat( 5 )
runWait( appSKTools, "#KILLPROC("& prog &") #DELAY("& ms &") #SILENT" )
sleep( 2000 )
If ( ( procExists( prog ) <> 1 ) || ( killTry > 3 ) )
break( BLOCK_WHILE )
EndIf
EndRepeat
EndWhile
If ( procExists( prog ) )
@taskMSG( "ERROR: process ( "& prog &" ) was NOT killed", func )
Else
@taskMSG( "SUCCESS: ( "& prog &" ) was properly killed", func )
EndIf
EndIf

EndSub

to this:

Sub tskKill ( prog, func, attempt )
ms = "500"

If ( procExists( prog ) <> 1 )
ElseIf ( procExists( prog ) )
@taskMSG( "STARTING: task kill of process ("& prog &")", func )
runWait( appSKTools, "#KILLPROC("& prog &") #DELAY("& ms &") #SILENT" )
While ( procExists( prog ) )
killTry = killTry + 1
Repeat( 5 )
runWait( appSKTools, "#KILLPROC("& prog &") #DELAY("& ms &") #SILENT" )
sleep( 2000 )
If ( ( procExists( prog ) <> 1 ) || ( killTry > 2 ) )
break( BLOCK_WHILE )
EndIf
EndRepeat
EndWhile
If ( procExists( prog ) )
tries = killTry * 5
@taskMSG( "ERROR: process ( "& prog &" ) was NOT killed after "& tries &" attempts", func )
Else
@taskMSG( "SUCCESS: ( "& prog &" ) was properly killed", func )
EndIf
EndIf

EndSub

somehow the code from my test script didn't make it into the release version for this particular sub... this is getting to be embarrassing... lol...

can anyone suggest a good code/text editor that supports version checking...etc??? I'm kinda new at this stuff and don't do the best job of keeping track of things between versions apparently... =(
[Touch Pro, Fuze ROM Development] blast0id:
OK, updated first post with updated zips...

tskKill function is fixed, and I removed the CustomRegExport Mod for now... as it is definitely causing issues...

again, my apologies for the inconvenience!!!
[Touch Pro, Fuze ROM Development] nielsek:
ver. 1.3

I hade the same problem with killing applications (LockScreen & cprog).

With version 1.3 it works, but after installing everything, the whole script keeps looping ("Skipping file from AutoResume. VALUE: "filename")

Is it supposed to do that?
[Touch Pro, Fuze ROM Development] J_M_H:
Problem in SX4_Backup.mscr?

Hello benjamminzIS.

I think I found a problem in V1.2 S4X_Backup.mscr.

If you want to copy multiple files, you put x\y\*.* in filebackup.ini.

In S4X_Backup.mscr, in Sub FileBackup, you test for file existence as follows:

srcFullFileNamePath = srcFilePath \ fileName

if ( NOT fileExists( srcFilePath \ fileName ) )

With multiple files, fileName = "*.*", which will fail the fileExists test. Therefore, the files won't be copied and an error is written to the log.

xcopy works, because it accepts wildcards, such as "*.*".

I am running MortScript V4.2; perhaps this is a new feature of V4.3?

Regards,

Fred Futz
[Touch Pro, Fuze ROM Development] blast0id:
make sure before flash, if you have run the script in the past, that there are no files in XDA_UC\_Mod_\_bin\TMP folder, with the new versions (1.3+) there shouldn't be any, but if there are just delete them, it's safe...
[Touch Pro, Fuze ROM Development] rmanaka:
@benjamminzIS:

I can indeed verify that the tskKill fix works for me...sorry for the delay but the wife had me out on the road. I can also verify that the Exchange sync issues have NOTHING to do with your mods.

I had to wait about 1/2 hour for the Exchange sync to kick in after which it finished while I was driving. I then started XDA_UC while I was walking about our local Costco store, after which it finished, rebooted and ALL IS WELL!

Thanks for your quick fixes and again, for a pretty much automated restore following the flash of a new ROM or a hard-reset!!!

I'll download 1.3 and use on the next flash!
[Touch Pro, Fuze ROM Development] blast0id:
all I know is I haven't messed with that code at all, and it works for me everytime... it is exactly as it was in sashimi...
[Touch Pro, Fuze ROM Development] blast0id:
thanks for the confirmation!!!
[Touch Pro, Fuze ROM Development] pen²:
Taken from NRG Thread...

Hi, I was not sure whether this was an NRG specific topic or not ;-) I didn't alter any file from your zip - I just unzipped it to the XDA_UC Folder on my storage card...
[Touch Pro, Fuze ROM Development] sh8an:
never did backing up automatically, but decided to try so couple of quick bugs

1. confirm that filebackup with folders/wildcards does not work. structure is created but files are not copied.

2. regexport routine adds an unecessary \ at the end of the key.

ex.

AudioManager=HKLM\Software\HTC\AudioManager_Eng

becomes

[HKEY_LOCAL_MACHINE\Software\HTC\AudioManager_Eng\]

so subkeys subsequently become

[HKEY_LOCAL_MACHINE\Software\HTC\AudioManager_Eng\\Config]

which in turn results in an empty key in the tree during import.

i am guessing but i think that the problem is on the line 265 of S4X_Backup.mscr

upd.

changed it to

WriteFile(skImportFile,value & "^NL^",TRUE)

and worked.

upd1

heh i know it's kinda halfway but worked for me :)

for filebackup (issue No.1) changed line 362

If ( NOT ( fileExists( srcFullFileNamePath ) OR dirExists( srcFilePath ) ) )
[Touch Pro, Fuze ROM Development] motisu:
Sorry for the late responses.... been busy:(. I also ran into the loops problems and in the end went back to the older version. I DL'ed the new 1.3 and will start all over with combining my XDA_UC and Sashimi into 1 unified installation. 1 Sashimi function I didn't find was owner information, which is stored in Sashimi in the "backup" folder as a reg file. Can I just copy it into filesREG and it will install?
[Touch Pro, Fuze ROM Development] nielsek:
Deleted files from TMP, did a fresh flash, but still kept looping. Looked at the log, but didn't see anything interesting, just keeps looping.

Anything I can do to debug? Love the functionality of the script!
[Touch Pro, Fuze ROM Development] blast0id:
ok, that's really strange, because on both of those functions, I'm positive I never changed any of SASHIMI's code... I will have to go back and some comparisons... I apologize...

looping in 1.3? or 1.1/1.2?

still looping with 1.3?

I will check when I get home from work today... not sure what would be causing this now as the tempSortFile is definitely getting deleted... only thing I can think of is putting in a "sleep" command after it gets deleted... I dunno...
[Touch Pro, Fuze ROM Development] Pandur:
Please can you change the Install Order to run the .mscr Scripts AFTER copying the Files to Root?

Would help me alot...