PPCGeeks Forums HTC Arrive HTC HD2 HTC Thunderbolt HTC Touch Pro 2 HTC Evo 4G HTC Evo 3D Samsung Galaxy S II Motorola Droid X Apple iPhone Blackberry
Go Back   PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro > CDMA TP Development
Register Community Search

Notices


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-2009, 01:41 AM
FatFrosty's Avatar
N00b
Offline
Pocket PC: Evo 4g
Carrier: Sprint
Location: Cincinnati
 
Join Date: Nov 2007
Posts: 30
Reputation: 85
FatFrosty is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!

Great thread!

It's a shame I don't currently have time to help this community's goals but I feel I might be able to do a little here. In a compressed effort, here's my two files. The majority is how it is on my SD card (because I'm a neat freak) but I made some minor changes for the sake of forum rules and to eliminate personal information.

My next project (divided into many broken hours) is to create a start menu on my SD card and either replace the start menu under windows or redirect it to my hand made directory. The unorganized mess UC creates kills me. Don't expect anything soon though...

Here's my SDConfig.txt:

Code:
LOCK:Enabled

//Media Player--------------------------------------------

CAB: \Storage Card\Cabs\TCPMP-0.72RC1-ARM-PPC-recomp-03.CAB
CAB: \Storage Card\Cabs\ac3.pocketpc.cab
CAB: \Storage Card\Cabs\ffmpeg.pocketpc.cab
CAB: \Storage Card\Cabs\flac.pocketpc.cab
CAB: \Storage Card\Cabs\speex.pocketpc.cab
CAB: \Storage Card\Cabs\vorbislq.pocketpc.cab
CAB: \Storage Card\Cabs\wavpack.pocketpc.cab


//Theme----------------------------------------------------

//TSK: \Storage Card\Cabs\ClassicBlack.tsk
CAB: \Storage Card\Cabs\mUn BackGround4AllPages v.02.cab
CAB: \Storage Card\Cabs\scorpio16v 4icons_in_row.cab
CAB: \Storage Card\Cabs\Midnight Blue.cab
CAB: \Storage Card\Cabs\Tabs History + Calendar + Comm.cab
CAB: \Storage Card\Cabs\Midnight Blue RA.cab
CAB: \Storage Card\Cabs\MidNight Blue Slider.cab
CAB: \Storage Card\Cabs\MobileRemote 15133.CAB


//Games----------------------------------------------------

CAB: \Storage Card\Cabs\Age of Empires.PPC300_2577.cab
CAB: \Storage Card\Cabs\Age of Empires Campaigns.PPC300.cab
CAB: \Storage Card\Cabs\Age of Empires Video.PPC300.cab
CAB: \Storage Card\Cabs\argentum.arm.CAB
CAB: \Storage Card\Cabs\Astraware Insaniquarium.CAB
CAB: \Storage Card\Cabs\DoomPDA.cab
CAB: \Storage Card\Cabs\Handmark WarfareInc.CAB
CAB: \Storage Card\Cabs\MDM Age of Empires Scenarios.CAB
CAB: \Storage Card\Cabs\Mean Hamster Software Myst.CAB
CAB: \Storage Card\Cabs\MetalShard, inc. PocketWar.CAB
CAB: \Storage Card\Cabs\MorphGearPPC2003.ARM.CAB
CAB: \Storage Card\Cabs\nanobotz.ARM.CAB
CAB: \Storage Card\Cabs\NFS.PPC300_2577.cab
CAB: \Storage Card\Cabs\pgnuboy.ppc3_arm.CAB
CAB: \Storage Card\Cabs\PocketHeroes.CAB
CAB: \Storage Card\Cabs\SNES9xPPC2003.ARM.CAB
CAB: \Storage Card\Cabs\TheSims2.cab
CAB: \Storage Card\Cabs\tombraider_arm_hexturbation.cab
CAB: \Storage Card\Cabs\Lightsaber_1.0.CAB


//Utilities-----------------------------------------------

CAB: \Storage Card\Cabs\crSetup Bluezard PPC Full.CAB
//CAB: \Storage Card\Cabs\hTorch_v1.1.cab
CAB: \Storage Card\Cabs\MaratPPC2003.ARM.CAB
CAB: \Storage Card\Cabs\RescoExplorer_P V7.05 Cracked-rUnLiu.CAB
CAB: \Storage Card\Cabs\TT_Nav_7.450.9028_repack3-vga-black.cab
CAB: \Storage Card\Cabs\SprintTVVGACab_PPC_1.6.4.76665_preload.CAB
CAB: \Storage Card\Cabs\PictureMail.CAB


//Cr****--------------------------------------------------- //Fixes...

CPY1:\Storage Card\Cabs\Cracks\aoeppc.exe
CPY2:\Program Files\Games\MDM\Age of Empires\aoeppc.exe
CPY1:\Storage Card\Cabs\Cracks\bots-ppc.exe
CPY2:\Program Files\Nanobotz\bots-ppc.exe
CPY1:\Storage Card\Cabs\Cracks\PalmHeroes.exe
CPY2:\Program Files\Palm Heroes 1.03 Eng\PalmHeroes.exe
CPY1:\Storage Card\Cabs\Cracks\Warfare Incorporated.exe
CPY2:\Program Files\Handmark\WarfareInc\Warfare Incorporated.exe
CPY1:\Storage Card\Cabs\Cracks\Insaniquarium-arm.exe
CPY2:\Program Files\Astraware\Insaniquarium\Insaniquarium-arm.exe

LOCK:Disabled
HIDE:Enabled
CAB: \Storage Card\Cabs\fringcab.cab //Not anymore! I can't find a good IM client...
HIDE:Disabled
LOCK:Enabled
XML: \Storage Card\Cabs\Phone edits.xml //and much more goodies...
CPY1:\Storage Card\Cabs\welcomehead.192.png //replacing splash screen.
CPY2:\Windows\welcomehead.192.png
LOCK:Disabled
RST:Reset
The good stuff.xml

Code:
<wap-provisioningdoc>

<characteristic type="Registry">

<!-- Disable Autokill of programs -->
  <characteristic type="HKCU\Software\HTC\TaskManager">
    <parm name="EnableAutoKill" value="0" datatype="integer"/>
  </characteristic>

<!-- Touch Flo Threshold Adjustment -->
  <characteristic type="HKLM\Drivers\TouchPanel">
    <parm name="PressureThreshold" value="240" datatype="integer"/>
  </characteristic>

<!-- Face Down Mute -->
  <characteristic type="HKLM\Software\HTC\HTCSensor\GSensor">
    <parm name="PhonecallMute" value="1" datatype="integer"/>
  </characteristic>
  <characteristic type="HKLM\Software\HTC\PHONE">
    <parm name="FaceDownMuteRing" value="1" datatype="integer"/>
  </characteristic>

<!-- Enable GPS Photo -->
  <characteristic type="HKLM\Software\HTC\Camera\P10">
    <parm name="Enable" value="1" datatype="integer"/>
  </characteristic>

<characteristic type="HKLM\Ident">
    <parm name="OrigName" value="cbRaph800" datatype="string"/>
    <parm name="Name" value="cbRaph800" datatype="string"/>
  </characteristic>

<!-- Active Sync Device Name -->
  <characteristic type="HKLM\Software\Microsoft\ActiveSync">
    <parm name="DeviceModel" value="Touch Pro" datatype="string"/>
  </characteristic>

<!-- Disable Sent Message -->
  <characteristic type="HKLM\Software\Microsoft\Inbox\Settings">
    <parm name="SMSNoSentMsg" value="1" datatype="integer"/>
  </characteristic>

<!-- A2DP Enhancements -->
  <characteristic type="HKLM\Software\Microsoft\Bluetooth\A2DP\Settings">
    <parm name="MaxSupportedBitPool" value="58" datatype="integer"/>
    <parm name="BitPool" value="58" datatype="integer"/>
  </characteristic>

<!-- Registration of MobileRemote -->
  <characteristic type="HKCU\Software\mobileSRC\MobileRemote">
    <parm name="RegistrationCode" value="*****" datatype="integer"/>
  </characteristic>

<!-- Set max # of characters in a text -->
  <characteristic type="HKCU\Software\Microsoft\SMS\TextShared">
    <parm name="IS637MaxAsciiCharacters" value="160" datatype="integer"/>
  </characteristic>

<!-- Set size of scroll bars -->
  <characteristic type="HKLM\System\GWE">
    <parm name="cxHScr" value="20" datatype="integer"/>
    <parm name="cyHScr" value="13" datatype="integer"/>
    <parm name="cxVScr" value="13" datatype="integer"/>
    <parm name="cyVScr" value="20" datatype="integer"/>
  </characteristic>

<!-- Weather Tab City -->
  <characteristic type="HKCU\Software\HTC\Manila" translation="filesystem">
    <parm name="Weather.CityList" datatype="string" value="NAM|US|OH|CINCINNATI" />
  </characteristic>

<!-- Programs Tab Settings -->
  <characteristictype="HKLM\Software\HTC\Manila\ProgramLauncher\0">
    <parmname="DispName"value="Calculator"datatype="string"/>
    <parmname="Path"value="\Windows\Start Menu\Programs\Calculator.lnk"datatype="string"/>
  </characteristic>
  <characteristictype="HKLM\Software\HTC\Manila\ProgramLauncher\1">
    <parmname="DispName"value="MobileRemote"datatype="string"/>
    <parmname="Path"value="\Windows\Start Menu\Programs\MobileRemote.lnk"datatype="string"/>
  </characteristic>
  <characteristictype="HKLM\Software\HTC\Manila\ProgramLauncher\10">
    <parmname="DispName"value="Sprint TV"datatype="string"/>
    <parmname="Path"value="\Windows\Start Menu\Programs\Sprint TV.lnk"datatype="string"/>
  </characteristic>
  <characteristictype="HKLM\Software\HTC\Manila\ProgramLauncher\11">
    <parmname="DispName"value="Windows Media"datatype="string"/>
    <parmname="Path"value="\Windows\Start Menu\Programs\Windows Media.lnk"datatype="string"/>
  </characteristic>
  <characteristictype="HKLM\Software\HTC\Manila\ProgramLauncher\12">
    <parmname="DispName"value="Voice Recorder"datatype="string"/>
    <parmname="Path"value="\Windows\Start Menu\Programs\Voice Recorder.lnk"datatype="string"/>
  </characteristic>
  <characteristictype="HKLM\Software\HTC\Manila\ProgramLauncher\2">
    <parmname="DispName"value="hTorch Flashlight"datatype="string"/>
    <parmname="Path"value="\Windows\Start Menu\Programs\hTorch Flashlight.lnk"datatype="string"/>
  </characteristic>
  <characteristictype="HKLM\Software\HTC\Manila\ProgramLauncher\3">
    <parmname="DispName"value="TomTom Navigator"datatype="string"/>
    <parmname="Path"value="\Windows\Start Menu\Programs\TomTom Navigator.lnk"datatype="string"/>
  </characteristic>
  <characteristictype="HKLM\Software\HTC\Manila\ProgramLauncher\5">
    <parmname="DispName"value="Google Maps"datatype="string"/>
    <parmname="Path"value="\Windows\Start Menu\Programs\Google Maps.lnk"datatype="string"/>
  </characteristic>
  <characteristictype="HKLM\Software\HTC\Manila\ProgramLauncher\6">
    <parmname="DispName"value="Resco File Explorer"datatype="string"/>
    <parmname="Path"value="\Windows\Start Menu\Programs\Resco File Explorer.lnk"datatype="string"/>
  </characteristic>
  <characteristictype="HKLM\Software\HTC\Manila\ProgramLauncher\7">
    <parmname="DispName"value="Remote Desktop Mobile"datatype="string"/>
    <parmname="Path"value="\Windows\Start Menu\Programs\Remote Desktop Mobile.lnk"datatype="string"/>
  </characteristic>
  <characteristictype="HKLM\Software\HTC\Manila\ProgramLauncher\9">
    <parmname="DispName"value="TCPMP"datatype="string"/>
    <parmname="Path"value="\Windows\Start Menu\Programs\TCPMP.lnk"datatype="string"/>
  </characteristic>


<!-- Set Owner information -->
  <characteristic type="HKCU\ControlPanel\Owner">
    <parm name="Owner" datatype="binary" 

value="*****"/>
    <parm name="Owner Notes" datatype="binary" 

value="*****"/>
  </characteristic>

</characteristic>

<!-- .........................................Shortcuts......................................... -->
<characteristic type="FileOperation">

  <characteristic type="%CE2%\Start Menu\Programs\Games" translation="install">
  <characteristic type="MakeDir" />
  <characteristic type="Duke3D.lnk" translation="install">
  <characteristic type="Shortcut">
    <parm name="Source" value="\Storage Card\Program Files\Games\Duke3d\spvDuke3d.exe" 

translation="install"/> 
  </characteristic>
  </characteristic>
  </characteristic>

  <characteristic type="%CE2%\Start Menu\Programs" translation="install">
  <characteristic type="MakeDir" />
  <characteristic type="Sprint TV.lnk" translation="install">
  <characteristic type="Shortcut">
    <parm name="Source" value="\Program Files\SprintTV\SprintTV.exe" translation="install"/> 
  </characteristic>
  </characteristic>
  </characteristic>

  <characteristic type="%CE2%\Start Menu\Programs\Games" translation="install">
  <characteristic type="MakeDir" />
  <characteristic type="Pocket Quake.lnk" translation="install">
  <characteristic type="Shortcut">
    <parm name="Source" value="\Storage Card\Program Files\Games\Pocket Quake\PocketQuake.exe" 

translation="install"/> 
  </characteristic>
  </characteristic>
  </characteristic>

  <characteristic type="%CE2%\Start Menu\Programs\Games" translation="install">
  <characteristic type="MakeDir" />
  <characteristic type="Rayman.lnk" translation="install">
  <characteristic type="Shortcut">
    <parm name="Source" value="\Storage Card\Program Files\Games\Rayman Ultimate\RaymanUltimateARM.exe" 

translation="install"/> 
  </characteristic>
  </characteristic>
  </characteristic>

</characteristic>

<!-- .........................................EMAIL
<!-- Emails have been removed for fear of redundency -->

</wap-provisioningdoc>
One more thing I found cool: I replaced my boot screen in one of the kitchens a while back. (the very first one that describes the radio and rom info) Ever since then when I hard reset or reflash my phone, it's still there. This has been a great advantage because it's an the same image as my background and splash screen, except I have my Full name, email, and address on there and can't easily be removed if someone finds/steals my phone. Just a minor FYI/suggestion.

Many thanks. I'll take my comments off the air as I'm going to bed.

Charles
__________________
Amp'd Mobile
Moto V3m -> Moto E816 -> Moto Q

Sprint
HTC Mogul -> HTC Touch Pro -> Evo 4G
Reply With Quote
This post has been thanked 4 times.
  #2 (permalink)  
Old 03-16-2009, 04:48 PM
No1ustad's Avatar
VIP Member
Offline
Pocket PC: Temp TP2 until the 3D
Carrier: Sprint
Location: Seattle, WA
 
Join Date: Jul 2007
Posts: 1,647
Reputation: 2451
No1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to No1ustad
Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!

Quote:
Originally Posted by FatFrosty View Post
<!-- Enable GPS Photo -->
<characteristic type="HKLM\Software\HTC\Camera\P10">
<parm name="Enable" value="1" datatype="integer"/>
</characteristic>


Charles
i use gpstoday to geotag my pics... have you verified that that simple regedit works to get the actual GPS coordinates?
__________________
If someone (like me) helps you out, press !! only takes a second... !

Mogul -> Vogue -> TP -> TP2 -> Snap -> Evo -> 3D
Reply With Quote
  #3 (permalink)  
Old 03-16-2009, 10:40 PM
FatFrosty's Avatar
N00b
Offline
Pocket PC: Evo 4g
Carrier: Sprint
Location: Cincinnati
 
Join Date: Nov 2007
Posts: 30
Reputation: 85
FatFrosty is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!

Quote:
Originally Posted by No1ustad View Post
i use gpstoday to geotag my pics... have you verified that that simple regedit works to get the actual GPS coordinates?
It isn't automatically. Just like there's panoramic mode or video mode, there's an independent mode with the name somewhere around "GPS Camera". I moved away from taking pictures with my phone before I was able to play extensively with it.

I was playing with a bunch of registry edits before reading this post. Ironically, I went to test it for ya but my phone now won't boot up... ... I'm sure it was unrelated to the gps photo though. Active sync locked it up when I went to retrieve it from the flash.

As you've seen my UC, my hard reset usually takes about 15 minutes plus with all the software it installs so after it's done I'll report if it does work after all.

UPDATE: No good news.

All gps photos turned up 0,0. (FYI Which comes out to around the Gulf of Guinea on the west coast of Africa. )
So... Only dead ends. Turning off agps didn't do anything. playing with grace periods didn't work. I've primed her.
Here's a small thread that reflects on the inconvenience.
There were plenty of these on the internet as well that claimed it worked but didn't go past that...
I guess some are lucky enough to have the magic configuration but I can't narrow it down.

And with that, I finished my weekend and I go back to bed.

Last edited by FatFrosty; 03-17-2009 at 12:39 AM. Reason: Update
Reply With Quote
This post has been thanked 1 times.
  #4 (permalink)  
Old 03-25-2009, 12:35 PM
FatFrosty's Avatar
N00b
Offline
Pocket PC: Evo 4g
Carrier: Sprint
Location: Cincinnati
 
Join Date: Nov 2007
Posts: 30
Reputation: 85
FatFrosty is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!

Quote:
Originally Posted by FatFrosty View Post
My next project (divided into many broken hours) is to create a start menu on my SD card and either replace the start menu under windows or redirect it to my hand made directory. The unorganized mess UC creates kills me. Don't expect anything soon though...
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.

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.
Attached Files
File Type: cab MortScript-4.2-PPC.cab (190.9 KB, 15 views) Click for barcode!
File Type: txt CustomStartMenu.txt (2.3 KB, 31 views) Click for barcode!
Reply With Quote
This post has been thanked 3 times.
  #5 (permalink)  
Old 03-25-2009, 09:32 PM
reigndropz's Avatar
Halfway to VIP Status
Offline
Pocket PC: Evo
Carrier: Sprint
Location: VA
 
Join Date: Feb 2009
Posts: 550
Reputation: 805
reigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!

Quote:
Originally Posted by FatFrosty View Post
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.

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.
Man this is exactly what I want to do! I want to have my start menu erased and them my new shortcuts put into that start menu folder.....I just wish I could make sense out of what you posted!! I need help lol
Reply With Quote
  #6 (permalink)  
Old 03-26-2009, 01:05 AM
FatFrosty's Avatar
N00b
Offline
Pocket PC: Evo 4g
Carrier: Sprint
Location: Cincinnati
 
Join Date: Nov 2007
Posts: 30
Reputation: 85
FatFrosty is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!

Quote:
Originally Posted by reigndropz View Post
Man this is exactly what I want to do! I want to have my start menu erased and them my new shortcuts put into that start menu folder.....I just wish I could make sense out of what you posted!! I need help lol
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.
Reply With Quote
This post has been thanked 2 times.
  #7 (permalink)  
Old 03-26-2009, 08:43 AM
reigndropz's Avatar
Halfway to VIP Status
Offline
Pocket PC: Evo
Carrier: Sprint
Location: VA
 
Join Date: Feb 2009
Posts: 550
Reputation: 805
reigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!

Quote:
Originally Posted by FatFrosty View Post
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.
Thats great. One question though. I already have a folder with my start menu shortcuts in it on the storgae card. Do I copy the entire start menu folder or just the contents of whats inside the start menu folder?
Reply With Quote
  #8 (permalink)  
Old 03-26-2009, 10:11 AM
FatFrosty's Avatar
N00b
Offline
Pocket PC: Evo 4g
Carrier: Sprint
Location: Cincinnati
 
Join Date: Nov 2007
Posts: 30
Reputation: 85
FatFrosty is becoming a great contributor
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!

Quote:
Originally Posted by reigndropz View Post
Thats great. One question though. I already have a folder with my start menu shortcuts in it on the storgae card. Do I copy the entire start menu folder or just the contents of whats inside the start menu folder?
Copy the folder too. My Storage card is set up as so:
\Storage Card\Cabs\Start Menu\Programs\Games
\Storage Card\Cabs\Start Menu\Programs\System
\Storage Card\Cabs\Start Menu\Programs\'Some more folders'
\Storage Card\Cabs\Start Menu\Settings\ (empty inside)
\Storage Card\Cabs\Start Menu\Calendar
\Storage Card\Cabs\Start Menu\Messaging

The last two lines are examples of shortcuts that will appear on the drop down menu what you press start at the top of the screen.

It can get confusing, hope this helps.
Reply With Quote
This post has been thanked 2 times.
  #9 (permalink)  
Old 03-26-2009, 10:18 PM
reigndropz's Avatar
Halfway to VIP Status
Offline
Pocket PC: Evo
Carrier: Sprint
Location: VA
 
Join Date: Feb 2009
Posts: 550
Reputation: 805
reigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuffreigndropz knows their stuff
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Re: Post Your SDconfig.txt, provisioning.xml, etc. Files Here!

Quote:
Originally Posted by FatFrosty View Post
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.
Reply With Quote
This post has been thanked 1 times.
  #10 (permalink)  
Old 03-26-2009, 09:35 PM
No1ustad's Avatar
VIP Member
Offline
Pocket PC: Temp TP2 until the 3D
Carrier: Sprint
Location: Seattle, WA
 
Join Date: Jul 2007
Posts: 1,647
Reputation: 2451
No1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIPNo1ustad is a VIP
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Send a message via MSN to No1ustad
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



Quote:
Originally Posted by FatFrosty View Post
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.

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.
Reply With Quote
Reply

  PPCGeeks > Windows Mobile > WM HTC Devices > HTC Touch Pro > CDMA TP Development


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 06:45 PM.


Powered by vBulletin® ©2000 - 2025, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.6.0
©2012 - PPCGeeks.com