View Full Version : [UC]XDA_UC V2.RC1, Automated & Silent User & Cook, Configuration Service[14/05/10]
kurniawan77
8th August 2010, 03:33 PM
Some noobieness....
Usually my rom (for HD2) used to startup with RunCC, this installs cab files that was configured in config.txt. After this Oobe wil run..and so on.
But now i would like to have XDA_UC run at first boot installing my cabs to be found in the ROM, after this oobe must run. Once Oobe is finished, then user customisation...
So i have deleted the RunCC package, placed Visual_XDA_UC in. In my cook.mscr i have
Run("\Windows\Welcome.exe")
Run("\Windows\htcOOBE.exe")
if (FileExists( "\Windows\AutoVer.exe" ))
RunWait( "\Windows\AutoVer.exe" )
Else
EndIf
enabled.
On startup there was no oobe...only thing i saw was wizard setup in the taskbar but no gui. (Also found out that my lockscreen isn't working at all). I did saw that the cab files were installed and the cab's (just testing) on my storage card so that part is working fine.
Wondering what RunCC was suppose to run i looked into runcc.lua. this is what i see:
runcc.lua
chk = oem.checkfileexist("\\windows\\config_operator.txt (file://\\windows\\config_operator.txt)")
if chk == 1 then
runcc.addrun("RunDefault", "run", "\\windows\\config_operator.txt (file://\\windows\\config_operator.txt)")
end
chk = oem.checkfileexist("\\windows\\config_PT.txt (file://\\windows\\config_PT.txt)")
if chk == 1 then
runcc.addrun("RunExtra", "run", "\\windows\\config_PT.txt (file://\\windows\\config_PT.txt)")
end
chk = oem.checkfileexist("\\windows\\config_AP.txt (file://\\windows\\config_AP.txt)")
if chk == 1 then
runcc.addrun("RunExtra", "run", "\\windows\\config_AP.txt (file://\\windows\\config_AP.txt)")
end
chk = oem.checkfileexist("\\windows\\config_end.txt (file://\\windows\\config_end.txt)")
if chk == 1 then
runcc.addrun("RunDefault", "run", "\\windows\\config_end.txt (file://\\windows\\config_end.txt)")
end
chk = oem.checkfileexist("\\windows\\config.txt (file://\\windows\\config.txt)")
if chk == 1 then
runcc.addrun("RunCustomer", "run", "\\windows\\config.txt (file://\\windows\\config.txt)")
end
chk = oem.checkfileexist("\\SP_ROM\\config_SP.txt (file://\\SP_ROM\\config_SP.txt)")
if chk == 1 then
runcc.addrun("RunCustomer", "run", "\\SP_ROM\\config_SP.txt (file://\\SP_ROM\\config_SP.txt)")
end
What can i do with this file? Can i let cook.mscr run these .txt fles???
For the moment i found a temp solution but it works...
Kept RunCC in, edited the lines in XDA_UC.mscr:
If (FileExists( "\Windows\RunCC.exe" ) OR FileExists( "\Windows\Autorun.exe" ))
runCustomization = BOOT_COUNT eq 1
deleteStartupScript = BOOT_COUNT eq 1
and set "timing" just before
# Give XDA_UC & MortScript Disclaimer
in cook.mscr i have placed # in every line.
This way RunCC wil do it's work while XDA_UC waits (timing = 50000). If Oobe is setted on time i''d see the XDA_UC popup dialog or else i can use taskmanager to bring it up. It works!
But what i really, really want is to dump RunCC, let XDA_UC do the first (chefcustomization) job, meanwhile or after that startup Oobe and when Oobe is finished with settings, no matter how long it takes, then start User customization. Same thing like i'did with "timing" but then with something like "wait/sleep till Oobe = finished...:confused:
Would be great if someone can show me the way...
regards kurniawan77
Mastiff
9th August 2010, 03:48 PM
XDA_UC runs all my XML's, CAB's and REG's perfectly. But I simply can't grasp the copy files thing! I have created a directory called Copy2Root under the XDA_UC directory on the SD card, but the files does not get copied anywhere. So I tried with a SDConfig.txt file, both in the XDA_UC directory and in the root directory of the SD card, with this in it:
*********************************************
LOCK:Enabled
CPY1:\Storage Card\XDA_UC\Copy2Root\test.txt
CPY2:\Program Files\test.txt
LOCK: Disabled #Added a space her for this message alone to avoid it being interpreted as a smiley
RST: Reset
*********************************************
Empty line after the last line and all. But nothing is copied. Any idea what I'm doing wrong here?
maesus
9th August 2010, 04:00 PM
kurniawan77,
I have the same question and similar problem as you. I took the entire RunCC EXT off the ROM but keep htcOOBE in, and use XDA_UC to customize the ROM. However, even after XDA_UC completed, reset, OOBE did not occupy the fullscreen and only the "setup wizard' at taskbar but no gui. Same issue as you had. I must run RunCC, and let it completed, then the next startup will have ConnectionSetupAuto and OOBE running.
I also tried to run RunCC, and modify the XDAUC.mscr to KILL runcc.exe to "take over' the customization process. However, on the next startup, it restart the whole installation process like fresh install ROM! :confused:
Have you found a good solution yet?
madnish30
17th August 2010, 04:48 PM
Hi,
Thanks for the great work.
Just a little question.
I'm cooking Visual Package using EVK, but i don't use UC for any customizations.
I'm cooking it so that the ROM is UC compatible for the users.
Can someone tell me what all i files do i delete in order to remove the theme which is cooked in by default.
I'm guessing that cook.tsk has to be deleted and cusTSk.app has to be deleted..
But i want to confirm i hope those are not dependencies.
Also cookinf the visual package make my ROM UC compatible right ?
Thanks alot.
MaXyM
18th August 2010, 11:57 PM
[edited - sorry, wrong thread]
RoryB
19th August 2010, 08:40 PM
@Noonski
I have not been working on my script for a while, but I have just finished dealing with the multiple config_???.txt files and also FILEOP: command.
Here are the portions of my script.
The part that develops the list of config files. First by looking in Config_operator.txt to see if it refers you to the next one with CFG: and then looks in that one for another CFG: and so on. Then it compares to a list of config files I know of and lastly checks the \windows\ folder for any others.###############################
# Generate list of Config.txt files
###############################
cfglist[1]=ToLower("\extended_rom\config.txt")
cfglist[2]=ToLower("\windows\config_operator.txt")
If( FileExists("\windows\config_operator.txt"))
i=2
xDir1=ToLower("\windows\config_operator.txt")
zcount = "1"
While(zcount EQ "1")
xDir=xDir1
zcount = "0"
xcount = ReadLine( xDir )
While( IsEmpty( xcount ) = FALSE )
If( SubStr( xcount, 1, 5 ) EQ "CFG: " )
If( FileExists( SubStr( xcount, 6 ) ))
i=i+1
cfglist = ToLower(SubStr( xcount, 6 ))
xDir1 = SubStr( xcount, 6 )
zcount = "1"
EndIf
EndIf
xcount = ReadLine( xDir )
EndWhile
EndWhile
EndIf
cfglist=join( cfglist, ", ")
ForEach ycfg in values( "\extended_rom\config.txt", "\windows\config_operator.txt", "\windows\config_pt.txt", "\windows\config_ap.txt", "\windows\config_end.txt", "\windows\config.txt", "\sp_rom\config_sp.txt" )
If( NOT find( cfglist, ycfg ) )
cfglist =replace( cfglist, cfglist, cfglist & ", " & ycfg )
EndIf
EndForEach
ForEach zcfg in Files( "\windows\*config*.txt" )
If( NOT find( cfglist, zcfg ) )
cfglist =replace( cfglist, cfglist, cfglist & ", " & zcfg )
EndIf
EndForEachAfter I generate my list, I run the parser.
###############################
# Config.txt without AutoRun or RunCC
# and Extra Config.txt files of RunCC
###############################
ForEach xcfg in array (split(cfglist, ", "))
If( FileExists( xcfg ) )
xDir = xcfg
Call( "CfgParser", xDir )
EndIf
EndForEachAfter this I run a SDCard config parser. I allow one in SDAUTO to let people use my additional config parser features and keep one in root of SDCard so they can switch back and forth to other UC ROMs. If they do not have a config in SDAUTO, it runs the one in root of SDCard.
###############################
# SDConfig without SDAutoRun
###############################
If( FileExists( "\Storage Card\SDAUTO\Config.txt" ) )
xDir = "\Storage Card\SDAUTO\Config.txt"
Call( "CfgParser", xDir )
ElseIf( FileExists( "\Storage Card\SDConfig.txt" ) )
xDir = "\Storage Card\SDConfig.txt"
Call( "CfgParser", xDir )
EndIf
Here are the subroutines.
Parser for config files###############################
# Subroutine CfgParser
###############################
Sub CfgParser
xcount = ReadLine( xDir )
While( IsEmpty( xcount ) = FALSE )
If( SubStr( xcount, 1, 5 ) EQ "CPY1:" )
xcopy1 = SubStr( xcount, 6 )
xcount = ReadLine( xDir )
If( SubStr( xcount, 1, 5 ) eq "CPY2:" )
xcopy2 = SubStr( xcount, 6 )
If( FileExists( xcopy1 ))
Copy( xcopy1, xcopy2, TRUE )
EndIf
EndIf
ElseIf( SubStr( xcount, 1, 5 ) EQ "SCT1:" )
xcopy1 = SubStr( xcount, 6 )
xcount = ReadLine( xDir )
If( SubStr( xcount, 1, 5 ) eq "SCT2:" )
xcopy2 = SubStr( xcount, 6 )
CreateShortcut( xcopy1, xcopy2, TRUE )
EndIf
ElseIf( SubStr( xcount, 1, 5 ) eq "ZIP: " )
If( FileExists( SubStr( xcount, 6 ) ))
UnZipAll( SubStr( xcount, 6 ), "" )
EndIf
ElseIf( SubStr( xcount, 1, 5 ) eq "CAB: " )
If( FileExists( SubStr( xcount, 6 ) ))
RunWait( "\windows\wceload.exe", "/nodelete /silent " & """" & SubStr( xcount, 6 ) & """" )
EndIf
ElseIf( SubStr( xcount, 1, 5 ) eq "XML: " )
If( SubStr( xcount, -4 ) ne "mscr" )
If( FileExists( SubStr( xcount, 6 ) ))
RunWait( "\windows\dfTaskMgr.exe", "/provxml " & SubStr( xcount, 6 ))
EndIf
EndIf
ElseIf( SubStr( xcount, 1, 5 ) eq "REG: " )
If( FileExists( SubStr( xcount, 6 ) ))
RunWait( "\windows\dfTaskMgr.exe", SubStr( xcount, 6 ) & " /silent" )
EndIf
ElseIf( SubStr( xcount, 1, 5 ) eq "TSK: " )
If( SubStr( xcount, -4 ) ne "mscr" )
If( FileExists( SubStr( xcount, 6 ) ))
xCopy( SubStr( xcount, 6 ), "\windows")
RunWait( "\Windows\custsk.exe", "\windows\" & filebase( SubStr( xcount, 6 ) ) & ".tsk" )
EndIf
EndIf
ElseIf( SubStr( xcount, 1, 5 ) eq "EXEC:" )
If( FileExists( SubStr( xcount, 6 ) ))
Run( SubStr( xcount, 6 ))
EndIf
ElseIf( SubStr( xcount, 1, 5 ) eq "MKDR:" )
MkDir( SubStr( xcount, 6 ))
ElseIf( SubStr( xcount, 1, 5 ) eq "MSCR:" )
If( FileExists( SubStr( xcount, 6 ) ))
CallScript( SubStr( xcount, 6 ) )
EndIf
ElseIf( SubStr( xcount, 1, 5 ) eq "MCAB:" )
If( FileExists( SubStr( xcount, 6 ) ))
RunWait( "\windows\wceload.exe", "/nodelete " & """" & SubStr( xcount, 6 ) & """" )
EndIf
ElseIf( SubStr( xcount, 1, 5 ) eq "SCAB:" )
If( FileExists( SubStr( xcount, 6 ) ))
Run( "\windows\wceload.exe", "/nodelete " & """" & SubStr( xcount, 6 ) & """" )
WaitFor( "Installation",3 )
SendDown( "Installation" )
SendSPACE( "Installation" )
SendLeftSoft
While( WndExists( "Installing" ) )
sleep( 500 )
EndWhile
SendOK( "Installation" )
While( ProcExists( "wceload.exe") )
sleep(500)
EndWhile
EndIf
ElseIf( SubStr( xcount, 1, 5 ) eq "FILEO" )
xDir2 = SubStr( xcount, 8 )
If( FileExists( xDir2 ))
Call( "FileOPer", xDir2 )
EndIf
Else
EndIf
xcount = ReadLine( xDir )
Sleep( 1000 )
Show( "Desktop" )
EndWhile
EndSuband parser for FILEOP: to copy and then change attributes. I have seen very few of these files and only saw Removeattribute, but I have an addattribute feature too.###############################
# Subroutine FileOP Parser
###############################
Sub FileOPer
ForEach destin, sorce in iniKeys ( xDir2, "" )
Call( "Dirconv", xDir2 )
If( FileExists( sorce ))
copy( sorce, destin, TRUE)
EndIf
EndForEach
ForEach destin, sorce in iniKeys ( xDir2, "" )
Call( "Dirconv", xDir2 )
If( Find( destin, ":" ))
destin1=substr( destin, Find( destin, ":" )+1 )
destin=substr( destin, "1", Find( destin, ":" )-1)
If( FileExists( destin ))
If( sorce EQ "addattribute" )
sorce="TRUE"
ElseIf( sorce EQ "removeattribute" )
sorce="FALSE"
Else
sorce=""
EndIf
If(sorce NE "" )
ForEach att in charsOf( destin1 )
If( att EQ "r")
att="readonly"
ElseIf( att EQ "h")
att="hidden"
ElseIf( att EQ "s")
att="system"
ElseIf( att EQ "a")
att="archive"
EndIf
SetFileAttribute( destin, att, sorce )
EndForEach
EndIf
EndIf
EndIf
EndForEach
EndSubThe FileOP.txt files I saw included %CE% macros for paths so I wrote a subroutine to fix those to regular paths for mortscript to use.###############################
# Subroutine Dirconv
###############################
Sub Dirconv
DirMac=Array( "%ce1%", "\Program Files", "%ce2%", "\Windows", "%CE3%", "\My Documents", "%ce4%", "\Windows\StartUp", "%ce5%", "\My Documents", "%ce6%", "\Program Files\Accessories", "%ce7%", "\Program Files\Communications", "%ce8%", "\Program Files\Games", "%CE9%", "\Program Files\Pocket Outlook", "%CE10%", "\Program Files\Office", "%ce11%", "\Windows\Start Menu\Programs", "%ce12%", "\Windows\Start Menu\Programs\Accessories", "%ce13%", "\Windows\Start Menu\Programs\Communications", "%ce14%", "\Windows\Start Menu\Programs\Games", "%ce15%", "\Windows\Fonts", "%ce17%", "\Windows\Start Menu" )
sorce=ToLower( sorce )
destin=ToLower( destin )
destin=substr(destin, "2", length(destin)-2)
int = MaxIndex( DirMac )
i = 1
While (int GT 0)
destin=Replace( destin, DirMac[i], DirMac[i+1] )
sorce=Replace( sorce, DirMac[i], DirMac[i+1] )
i=i+2
int=int-2
EndWhile
EndSub
dhncali420
27th August 2010, 09:57 PM
kurniawan77,
I have the same question and similar problem as you. I took the entire RunCC EXT off the ROM but keep htcOOBE in, and use XDA_UC to customize the ROM. However, even after XDA_UC completed, reset, OOBE did not occupy the fullscreen and only the "setup wizard' at taskbar but no gui. Same issue as you had. I must run RunCC, and let it completed, then the next startup will have ConnectionSetupAuto and OOBE running.
I also tried to run RunCC, and modify the XDAUC.mscr to KILL runcc.exe to "take over' the customization process. However, on the next startup, it restart the whole installation process like fresh install ROM! :confused:
Have you found a good solution yet?
For weeks I was searching for a solution but no luck, so I tried this:
added this to XDA_UC.mscr
# Run Connection Setup @ 1st Boot
##########################
If (RegRead( "HKLM", "Software\XDA", "Manual" ) eq 1)
Else
If (FileExists( "\Windows\ConnectionSetupAuto.exe" ))
Run("\Windows\ConnectionSetupAuto.exe")
EndIf
EndIf
add the above After:
# Check if Script should continue
#################################
If ((runCustomization) OR (RegRead( "HKLM", "Software\XDA", "Manual" ) eq 1))
Else
Exit
EndIf
and it worked like a charm, connection setup runs at first boot if XDA_UC runs at first boot or it runs at second boot If other UC services used
hope this helps
Noonski
31st August 2010, 10:37 AM
First of,
Thanks to Serfer for going ahead and evolving on the XDA_UC idea and popping his head in this thread helping users.
And off course all the other users that have been helping others here, and not the least RoryB.
Second.
I'm back, but will not actively be working Rom's, Script or frontpage articles.
It would take to much time that i don't have at the moment.
BiCh0n
31st August 2010, 07:42 PM
hi..
y have a strange problem...all my cab in my "Storage" folder not instaled on my storage but directly on my phone...:eek:
I'm with a french rom and my storage card name is "Carte MicroSD"
the only cab on my storage are ok if xda_uc send me were can you install this cab...if i choose Storage card it's ok....
for help me you can se my XDA_UC.mscr
Noonski
31st August 2010, 10:54 PM
hi..
y have a strange problem...all my cab in my "Storage" folder not instaled on my storage but directly on my phone...:eek:
I'm with a french rom and my storage card name is "Carte MicroSD"
the only cab on my storage are ok if xda_uc send me were can you install this cab...if i choose Storage card it's ok....
for help me you can se my XDA_UC.mscr
It's all in this part:
# Sub RunAnySD
##############
Sub 2SD
WaitFor( Installation ,3 )
SendDown( Installation )
SendSPACE( Installation )
SendLeftSoft
While( WndExists( "Installing" ) )
Sleep(500)
EndWhile
SendOK( Installation )
EndSub
You need to find the French Window Name for the installation Window.
And then you can put it in the Variable at the top
Installation = "Installation"
BiCh0n
1st September 2010, 10:24 AM
ok thanks..i test it with
# Sub RunAnySD
##############
Sub 2SD
WaitFor( Installation ,3 )
SendDown( Installation )
SendSPACE( Installation )
SendLeftSoft
While( WndExists( "Installation" ) )
Sleep(500)
EndWhile
SendOK( Installation )
EndSub
the Variable at the top is ok
the French Window Name for the installation Window is "Installation"
BiCh0n
1st September 2010, 02:24 PM
with this modification it's not good...all cab are ok in phone memory (all included cab in XDA_UC folder) but i have now an error cab in "Storage" folder ok my XDA_UC folder..:cool:
screen of this error
http://i34.servimg.com/u/f34/13/84/71/61/screen10.png (http://www.servimg.com/image_preview.php?i=198&u=13847161)
RoryB
1st September 2010, 05:17 PM
Tweaked the previous post to fix a problem if the ROM does not have a config_operator.txt file
BiCh0n
2nd September 2010, 12:29 PM
hi
i have look and take this
# Sub RunAnySD
##############
Sub 2SD
WaitFor( Installation ,3 )
SendDown( Installation )
SendSPACE( Installation )
SendLeftSoft
While( WndExists( "Installing" ) )
Sleep(500)
EndWhile
SendOK( Installation )
EndSub
now no error mesage but the cab in "Storage" folder of my xda_uc no send in program files of my storage card but in program files of my phone.
the cab in this "storage" folder with notification for install on sd or phone are ok if y choose "sd card" on screen
i think this line not change the default selection for the auto install (silence) the cab "Storage" folder
# Start installation of To Storage .cab files in Storage Card\XDA_UC\Storage folder
################################################## #################################
@InstallCABs (XDAUC_FOLDER & "\Storage\*.cab", FALSE, TRUE)
on the screnn i don't see this modification and the firts section (phone) is actived..?
i can change this for take by default the second option by default to "storage" folder of xda_uc?..
[edit]
when i test this
# Start installation of To Storage .cab files in Storage Card\XDA_UC\Storage folder
################################################## #################################
@InstallCABs (XDAUC_FOLDER & "\Storage\*.cab", FALSE)
all is ok but in manual mode for storage folder / if i chose manualy the "storage card" all my cab are in program files of my storage...i don't undertand why the automatic selection is not good with me.....
BiCh0n
3rd September 2010, 10:19 AM
hi i have edit my post
have you an idea for auto select the Storage option?
edsub
6th September 2010, 01:28 PM
item deleted
Shu.
28th September 2010, 10:52 AM
Can anyone help me with this issue (http://img809.imageshack.us/img809/1103/screen01m.png)?
Previously it was working fine, but now I'm getting this error, and i can't find any solution.
Any help is much appreciated
RoryB
29th September 2010, 12:53 AM
Can anyone help me with this issue (http://img809.imageshack.us/img809/1103/screen01m.png)?
Previously it was working fine, but now I'm getting this error, and i can't find any solution.
Any help is much appreciated
I would say your XDA_UC.mscr is missing the clearattributesysandro subroutine. Look near the end of the script (where subroutines must be placed).
imbunned
2nd October 2010, 11:04 PM
You got it to.
MrCapcom looked up the correct Values for it, and then i thought of you to.
There's now three Variables for three types of storage:
SDF = RegRead("HKLM", "System\StorageManager\Profiles\SDMemory", "Folder")
DIA = RegRead("HKLM", "System\StorageManager\Profiles\MoviNand", "Folder")
OMN = RegRead("HKLM", "System\StorageManager\Profiles\INAND", "Folder")
This should make covering other storage names like HP can use sometimes, supported to.
Example
SDF = RegRead("HKLM", "System\StorageManager\Profiles\SDMemory", "Folder")
DIA = RegRead("HKLM", "System\StorageManager\Profiles\SomeOtherTypeOfNand", "Folder")
OMN = RegRead("HKLM", "System\StorageManager\Profiles\SomeFlashDiscNameUs edInOtherDevies", "Folder")
Now i think i did the Manual Copy, Replace then reinsert for each part correctly (Can't drink coffee this late), But the Test Package from the first Post should help confirm each installed .reg .xml etc in the Registry, As it will show the full part to the installed files.
thanks a lot:)
nsourm
9th October 2010, 11:40 AM
Hello to all .I'm a newbie i cooking and i'm using airxtreme's kitchen.I'm wondering if someone can help me to cook xda_uc in my rom.
Thanks a lot for your help
Grumps
12th October 2010, 03:46 PM
Hello to all .I'm a newbie i cooking and i'm using airxtreme's kitchen.I'm wondering if someone can help me to cook xda_uc in my rom.
Thanks a lot for your help
Use this file and Just Cook it last. it should work fine
nsourm
12th October 2010, 06:02 PM
Use this file and Just Cook it last. it should work fine
Thanks a lot Grumps.
But as a newbie this file have to be putted in ext packages.Is that correct?Do i have to do something else?
Thanks for your help
Grumps
13th October 2010, 08:29 AM
Thanks a lot Grumps.
But as a newbie this file have to be putted in ext packages.Is that correct?Do i have to do something else?
Thanks for your help
Create a new group Called 99 Cook last or something. Then unzip this file and drop it in there and you can select it so it will include it in the build
vasujahagirdar
13th October 2010, 06:12 PM
Create a new group Called 99 Cook last or something. Then unzip this file and drop it in there and you can select it so it will include it in the build
hi all,
im also a new one trying to cook my own rom on my elfin using os kitchen,importing newer builds and mega packages,and wants to customise by one of the method like autorun,runcc or xda-uc but want to where to put my cabs,xml, .exes and other files in the kitchen,and where to write these in the xda-uc ??searched many threads but not able to understand the technical jargon ,so plz help.
thanks
hectorhts
26th October 2010, 08:39 PM
Hi I have a T-Mobile HD2 with HSPL 3/ EnergyROM Energy.Leo.21916.Sense2.5.Cookie.GTX.Oct.13 on it and in the start menu/tools i got an icon XDA UC and I want to know whats the utilily for that thank you
hectorhts
2nd November 2010, 06:26 AM
Use this file and Just Cook it last. it should work fine
Hi I have a T-Mobile HD2 with HSPL 3/ EnergyROM Energy.Leo.21916.Sense2.5.Cookie.GTX.Oct.13 on it and in the start menu/tools i got an icon XDA UC and I want to know whats the utilily for that thank you
af974
3rd November 2010, 07:56 PM
Sorry Rory,i dont understand,are you saying that we need to compile these lines:
must put the filename to have clear attribute?
Though i've never had this kind of error with Kaiser, this are happening only with Leo.
# Sub ClearAttributeSysAndRO
############################
Sub ClearAttributeSysAndRO (fileName)
SetFileAttribute( fileName , "readonly", FALSE)
SetFileAttribute( fileName , "hidden", FALSE)
SetFileAttribute( fileName , "system", FALSE)
SetFileAttribute( fileName , "archive", FALSE)
EndSub
EDIT: problem solved,XDA_UC must be the last package to be cooked,had some regs that went in conflict lol
I would say your XDA_UC.mscr is missing the clearattributesysandro subroutine. Look near the end of the script (where subroutines must be placed).
RoryB
3rd November 2010, 08:29 PM
Sorry Rory,i dont understand,are you saying that we need to compile these lines:
must put the filename to have clear attribute?
Though i've never had this kind of error with Kaiser, this are happening only with Leo.
# Sub ClearAttributeSysAndRO
############################
Sub ClearAttributeSysAndRO (fileName)
SetFileAttribute( fileName , "readonly", FALSE)
SetFileAttribute( fileName , "hidden", FALSE)
SetFileAttribute( fileName , "system", FALSE)
SetFileAttribute( fileName , "archive", FALSE)
EndSub
From the error message in your previous post line 60 of \windows\startup\XDA_UC.mscr probably has in it @clearattributesysandro(CARRIERSPLASHSCREEN)
The code above looks to be correct for that to work, but I think it will only work as a part of a string of code.
If @clearattributesysandro(CARRIERSPLASHSCREEN) is on the line by itself, try changing that line to
Call(clearattributesysandro, CARRIERSPLASHSCREEN)
af974
3rd November 2010, 08:39 PM
Thanks for reply Rory but ,well i realy dunno why, i had XDA uc before my reg tweaks and always got the error, now i moved xda_uc after them and it works fine.
From the error message in your previous post line 60 of \windows\startup\XDA_UC.mscr probably has in it @clearattributesysandro(CARRIERSPLASHSCREEN)
The code above looks to be correct for that to work, but I think it will only work as a part of a string of code.
If @clearattributesysandro(CARRIERSPLASHSCREEN) is on the line by itself, try changing that line to
Call(clearattributesysandro, CARRIERSPLASHSCREEN)
RoryB
3rd November 2010, 09:09 PM
I'm glad it is working for you now. No matter how it works.
Maybe the way things are set up now the reg settings do something required for mortscript to work properly. Not sure what since I do not use XDA_UC
sharkie405
12th November 2010, 02:43 PM
What's the proper way to make XDA UC NOT run at 1st boot?
What I've done is to make a shortcut to XDAUC.mscr. I placed that .lnk in my Start Menu\System Tools folder. The problem I'm having is that sometimes it works and sometimes it doesn't work. It seems to be about 50/50. Whenever it doesn't work, even if I go to \Windows and try to run the XDAUC.mscr directly, nothing happens.
Which brings me back to thinking that I must not be going about this in the right way. Can someone tell me how I can make a .lnk to XDAUC in my start menu that will always work??
Thanks in advance for any help! :)
robekia1
18th May 2011, 10:54 AM
How can i use this?
Yes, it is a very simple question but i never find any documentation for this.
please tell me whitch files should i cook in the ROM.
And, whitch or what to put on the SDCARD?
Really, i got lost because i'm new to this.
ai6908
18th May 2011, 02:40 PM
How can i use this?
Yes, it is a very simple question but i never find any documentation for this.
please tell me whitch files should i cook in the ROM.
And, whitch or what to put on the SDCARD?
Really, i got lost because i'm new to this.
There are no separate files...you can just put everything in SD card, under XDA_UC folder, and run it from there. You dont really have to cook them in.
robekia1
19th May 2011, 11:36 PM
There are no separate files...you can just put everything in SD card, under XDA_UC folder, and run it from there. You dont really have to cook them in.
Thanks a ton.
What about scripting? please guide me for the best thing to do regarding the selfregister DLLs.
To Make it clear:
I'm trying to cook "MOBiDIV_PrayerTimes_Diamond2_B15_TSD_Jun1.Cab" but the problem with the included "fileosp.dll" which requires self registration that is been automatic done while installing the .CAB:rolleyes:
So, is there any kind of solution to do it while COOKING the ROM?
robekia1
22nd May 2011, 08:51 AM
How i can use it for registering DLLs?
robekia1
26th May 2011, 12:30 AM
No Reply !!!:eek::eek::eek::eek::eek:
vBulletin® v3.8.7, Copyright ©2000-2012, vBulletin Solutions, Inc.