PPCGeeks

PPCGeeks (http://forum.ppcgeeks.com/index.php)
-   CDMA TP Development (http://forum.ppcgeeks.com/forumdisplay.php?f=68)
-   -   Post Your SDconfig.txt, provisioning.xml, etc. Files Here! (http://forum.ppcgeeks.com/showthread.php?t=59566)

ryangruhn 03-26-2009 12:14 PM

Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!
 
Quote:

Originally Posted by redd214 (Post 801081)
man this worked like a charm. thanx man, just one more piece of the sdconfig puzzle for me!!! i will have this damn thing down soon enuff. no onto email accounts!

Make sure you guys post your WORKING .XML files as well and note in the post that it works so we can reference working .xml files! It' awesome we're getting things working, let's share it with the world!

redd214 03-26-2009 12:17 PM

Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!
 
i didnt use an xml file i used mortscript based on the instructions that fatfrosty gave above for the start menu. i def. want to contribute but what i post wont really be diff from what he did, not sure if thats what u want or not?

FatFrosty 03-26-2009 01:31 PM

Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!
 
Quote:

Originally Posted by redd214 (Post 801081)
man this worked like a charm. thanx man, just one more piece of the sdconfig puzzle for me!!! i will have this damn thing down soon enuff. no onto email accounts!

It's a relief to hear it worked.
Good luck with email accounts, post any problems.

No1ustad 03-26-2009 09:35 PM

Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!
 
Anyone know of a way to just delete shortcuts in the start menu using sdconfig or an xml file? figure sdconfig might have something but according to the xda wiki that doesnt seem to be the case:-s



Quote:

Originally Posted by FatFrosty (Post 798238)
I think I've done it so I'll go ahead and share. This solution requires Mortscript. It's the most lightweight program I've seen but one of the most powerful.

The problem I've seen others have is that all the shortcuts in the start menu are checked 'System Files'. This script goes through each of the Start Menu folders and removes all file attributes, then deletes it, one by one.

Here's the Mortscript Code:
Code:

# First delete the Start Menu's original contents
SrcDir = "\Storage Card\Cabs\Start Menu"
aDir = "\Windows\Start Menu"

ForEach bDir in directories ( aDir & "\*" )
If ( bdir ne "\Windows\Start Menu\Settings" )
  if ( ElementCount( DirContents( bDir, DC_FILES ) ) > 0 )
    ForEach tbdFile in files ( bDir & "\*" )
      SetFileAttribs( tbdFile , 0 , 0 , 0 )
      delete( tbdFile )
    EndForEach
  endif
  if ( ElementCount( DirContents( bDir, DC_DIRS ) ) > 0 )
    ForEach cDir in directories ( bDir & "\*")
      if ( ElementCount( DirContents( cDir, DC_FILES ) ) > 0 )
        ForEach tbdFile in files ( cDir & "\*" )
          SetFileAttribs( tbdFile , 0 , 0 , 0 )
          delete( tbdFile )
        EndForEach
      Endif
      if (ElementCount( DirContents( cDir, DC_DIRS ) ) > 0 )
        ForEach dDir in directories (cDir & "\*")
          if ( ElementCount( DirContents( dDir, DC_FILES ) ) > 0 )
            ForEach tbdFile in files ( dDir & "\*" )
              SetFileAttribs( tbdFile , 0 , 0 , 0 )
              delete( tbdFile )
            EndForEach
          Endif
          if ( ElementCount( DirContents( dDir, DC_DIRS ) ) > 0 )
            ForEach eDir in directories (dDir & "\*")
              if ( ElementCount( DirContents( eDir, DC_FILES ) ) > 0 )
                ForEach tbdFile in files ( eDir & "\*" )
                  SetFileAttribs( tbdFile , 0 , 0 , 0 )
                  delete( tbdFile )
                EndForEach
              Endif
              if ( ElementCount( DirContents( eDir, DC_DIRS ) ) > 0 )
                message ( "Some folders are too deep. May require manual deletion.", "Error - fDir" )
              Endif
              Deltree ( eDir )
            EndForEach
          Endif
          Deltree ( dDir )
        EndForEach
      EndIf
      DelTree  ( cDir )
    EndForEach
  endif
  Deltree( bDir )
Endif
EndForEach
ForEach tbdFile in files ( aDir & "\*" )
  SetFileAttribs( tbdFile , 0 , 0 , 0 )
  Delete( tbdFile )
EndForEach

# Then Recreate from a premade source

Foreach tbcDir in directories ( SrcDir & "\*" )
  Xcopy( SrcDir & "\*", aDir, 1, 1 )
Endforeach
Foreach tbcFile in files ( SrcDir & "\*" )
  Xcopy( SrcDir & "\*", aDir, 1, 1 )
Endforeach

# Lastly, delete the script copied to the Memory.
Delete ( "\CustomStartMenu.mscr" )

And here's how I implemented it inside SDConfig.txt:
Code:

CAB: \Storage Card\Cabs\MortScript-4.2-PPC.cab
CPY1:\Storage Card\Cabs\CustomStartMenu.txt
CPY2:\CustomStartMenu.mscr
EXEC:\CustomStartMenu.mscr

SET UP: Take note, it's stored as a txt file in my storage card to prevent any misfirings. :-) The only things I believe that need to be changed from device to device is the directory of the cab in SDConfig, and the first variable in the script, 'SrcDir'. I wouldn't really mess with 'aDir', it can potentially be a Mortscript Virus. :-P

My replacement Start Menu was already set up on my SD card. The easiest way I found was to organize the real start menu however I liked it, then just copied all of the contents over to my SD. I copied the Settings folder to my SD card (which is apparently empty) for backup, but the script is supposed to skip over the settings folder when deleting. It's partially because Mortscript doesn't want to automatically copy over the settings folder for some reason. But the reason could easily be poor coding on my part.

Limitations: The deletion portion of this script is limited to about five levels deep into the start menu. So if you originally have this folder -> \Start Menu\Programs\Utilities\Internet\IM\, it'll prolly throw up an error. I've never seen a rom that organized the start menu for you so I think 3 levels is overkill. I haven't seen and don't think there will be any limitation on how deep of folders you can copy.

If there are any problems I'll help as much as I can.


MightyMike 03-26-2009 09:39 PM

Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!
 
Quote:

Originally Posted by No1ustad (Post 802439)
Anyone know of a way to just delete shortcuts in the start menu using sdconfig or an xml file? figure sdconfig might have something but according to the xda wiki that doesnt seem to be the case:-s

Here is an example from a .provxml

<characteristic type="FileOperation">
<characteristic type="%CE5%\My Pictures\Grass.jpg" translation="install">
<characteristic type="Delete">
<parm name="ForceDelete"/>
</characteristic>
</characteristic>

You can change the DIR to any thing u want i presume.

try it out!

reigndropz 03-26-2009 10:18 PM

Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!
 
Quote:

Originally Posted by FatFrosty (Post 800285)
It's all pretty easy, you just need to change the directory to your backup directory.

1) Go to \Windows\Start Menu\ and make your perfect start menu. Then back it up somewhere on your Storage Card. My backup folder is \Storage Card\Cabs\ so I just dropped an entire copy of my start menu to \Storage Card\Cabs\Start Menu.

2) Add the following code to your SDConfig.txt. Of course change the first two lines to the correct paths.
Code:

CAB: \Storage Card\Cabs\MortScript-4.2-PPC.cab
CPY1:\Storage Card\Cabs\CustomStartMenu.txt
CPY2:\CustomStartMenu.mscr
EXEC:\CustomStartMenu.mscr

3) Download the Mortscript CAB and the txt file in my other post and place them in the backup folder.

4) Inside the txt folder, you need to change the second line that sets the variable 'SrcDir'. Set it to the path of your backuped Start Menu. Mine was \Storage Card\Cabs\Start Menu.


I can't think of anything else. It will automatically delete the Start Menu and copy from the directory you set. If that doesn't help, just tell me where you get stuck and I'll try to break it down some more.

Just wanted to say thanks again man. This worked perfectly.

LunaticSerenade 03-26-2009 10:41 PM

Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!
 
So I'm still getting the File Not Found error, here is my current SDConfig:

Code:

LOCK:Enabled
CAB: \Storage Card\Software\HTC-Touch-Pro\Advanced_Configuration_Tool_v3.3.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Battery-Related\BatteryAndPerformanceHack.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Battery-Related\increasebattery.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Config\FInixNOverBatteryIconsOnly.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Config\Darkness231 Opera default remover(beta).cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Config\MightyMike Stock AudioPara.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Config\scorpio16v4icons_in_a_row.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\galarm_1[1-.4.6.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\Dark-Diamond-en.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\HTC_GPS_Tool_1[1].2.2.11vga.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\dcd VZW Arcsoft MMS 5.0.31.19.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\Diamond Tweak 0.5.3_English.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\Diamondconfig.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\htcAddicts cleanRAM v1[1].06.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\regedit.Mrln_ARM.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\nuePowerCPL-152-v1[1].52-cab.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\sms160.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Dialer-Files\Black Dialer.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Dialer-Files\Full S2A with New Skin.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Dialer-Files\Touch_InCall_Screen_Tweak v1[1].0.8.cab
LOCK:Disabled
RST: Reset


reigndropz 03-26-2009 10:43 PM

Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!
 
Quote:

Originally Posted by No1ustad (Post 802439)
Anyone know of a way to just delete shortcuts in the start menu using sdconfig or an xml file? figure sdconfig might have something but according to the xda wiki that doesnt seem to be the case:-s


I think what Mike showed you works just becareful with the %5% that equals the My Documents folder.

here's a list for you and the % shortcuts

%CE1% \Program Files
%CE2% \Windows
%CE4% \Windows\Startup
%CE5% \My Documents
%CE6% \Program Files\Accessories
%CE7% \Program Files\Communication
%CE8% \Program Files\Games
%CE11% \Windows\Start Menu\Programs
%CE12% \Windows\Start Menu\Programs\Accessories
%CE13% \Windows\Start Menu\Programs\Communication
%CE14% \Windows\Start Menu\Programs\Games
%CE15% \Windows\Fonts
%CE17% \Windows\Start Menu

reigndropz 03-26-2009 10:47 PM

Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!
 
Quote:

Originally Posted by LunaticSerenade (Post 802607)
So I'm still getting the File Not Found error, here is my current SDConfig:

Code:

LOCK:Enabled
CAB: \Storage Card\Software\HTC-Touch-Pro\Advanced_Configuration_Tool_v3.3.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Battery-Related\BatteryAndPerformanceHack.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Battery-Related\increasebattery.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Config\FInixNOverBatteryIconsOnly.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Config\Darkness231 Opera default remover(beta).cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Config\MightyMike Stock AudioPara.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Config\scorpio16v4icons_in_a_row.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\galarm_1[1-.4.6.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\Dark-Diamond-en.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\HTC_GPS_Tool_1[1].2.2.11vga.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\dcd VZW Arcsoft MMS 5.0.31.19.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\Diamond Tweak 0.5.3_English.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\Diamondconfig.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\htcAddicts cleanRAM v1[1].06.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\regedit.Mrln_ARM.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\nuePowerCPL-152-v1[1].52-cab.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Software\sms160.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Dialer-Files\Black Dialer.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Dialer-Files\Full S2A with New Skin.cab
CAB: \Storage Card\Software\HTC-Touch-Pro\Dialer-Files\Touch_InCall_Screen_Tweak v1[1].0.8.cab
LOCK:Disabled
RST: Reset


Take the spaces out. SDConifg doesnt like spaces in the file name.

supdawg 03-27-2009 04:50 PM

Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!
 
Anyone have an XML for setting up their comcast mail? I found one for gmail, but I havent for comcast.

Or does anyone know the directory I can get the info from to convert to xml?


All times are GMT -4. The time now is 12:39 PM.

Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
©2012 - PPCGeeks.com


Content Relevant URLs by vBSEO 3.6.0