PDA

View Full Version : [App] ROM Flashing Junkies: User Customization is here!


Pages : [1] 2 3 4 5 6 7

Sleuth255
6th February 2008, 09:17 PM
What is UC? It is a feature contained in UC capable ROMs. A UC capable ROM extends initial customization to your SD card so you can load cabs and install XML files that are located there too. What this means is that once you get your customization scripts right, you can flash any UC capable ROM and all your apps and settings will be restored as part of the initial customization process whenever your SD card is inserted in the slot. :eek:

Here's a sampling of UC capable ROMs:

Himalaya ROMs

Ather's WM 6.1 Diamond Edition (http://forum.xda-developers.com/showthread.php?t=406541)

Kaiser ROMs

Kareem's REVROM v3.33 (http://forum.xda-developers.com/showthread.php?t=408430)
SNE V2.5 - Optimized Video (http://forum.xda-developers.com/showthread.php?t=364641)
udK 7.0 R2 Vega - WWE+ITA (http://forum.xda-developers.com/showthread.php?t=368330)
Mobile Vista v1.1 by Confused Stu (http://forum.xda-developers.com/showthread.php?t=371014)
v1.2 Sleuth (http://forum.xda-developers.com/showthread.php?t=366380)
v3.0 Sleuth (http://forum.xda-developers.com/showthread.php?t=366284)
[Mar 04 08] Dutty's Official WM6.1 5.2.19716 UC RTM (http://forum.xda-developers.com/showthread.php?t=374434)
[Mar 07 08] Dutty's Official WM6.1 5.2.19199 UC RTM (http://forum.xda-developers.com/showthread.php?t=375037)
Laurentius26's L26 WM 6.1 Professional v6A WWE (http://forum.xda-developers.com/showthread.php?t=366014)
XTRM-1.62-6.0X (http://forum.xda-developers.com/showthread.php?p=1926590#post1926590)
akadonny's 3.08.DKv1.2 WM6.1 ROMs (http://forum.xda-developers.com/showthread.php?t=367018)
maja's T.I.R. v3.0 - BLUE WOLF - WM6.1 (http://forum.xda-developers.com/showthread.php?t=376316)
Alex's v5.2 ROMs (http://wiki.xda-developers.com/index.php?pagename=Alex%27s%20ROMs)

Herald ROMs

ASerg.WM6.1.WWE (http://forum.xda-developers.com/showthread.php?t=366845)
itje's Touch-IT v6.1.3 - Clean (http://forum.xda-developers.com/showthread.php?t=369629)
JustClean - The New EasyBakeOven - Beta 1 (http://forum.xda-developers.com/showthread.php?t=372236)

Vogue ROMs

Mr.jcarter's Custom Rom v2 (ppcgeeks developer!) (http://forum.ppcgeeks.com/showthread.php?t=18253)
ghettofreeryder rom v3 (ppcgeeks developer!) (http://forum.ppcgeeks.com/showthread.php?t=19661)
OMJ's WM6.1 Custom Touch ROM with UC (ppcgeeks developer!) (http://forum.ppcgeeks.com/showthread.php?t=17963)

Titan ROMs

dcd's ROMs & kitchen (http://wiki.xda-developers.com/index.php?pagename=dcdtitanroms)
NexVision's Hybrid (http://forum.xda-developers.com/showthread.php?t=364043)

Prophet ROMs

varanusvincent's [WM6.1] Shadow Vista "My Edition" (http://forum.xda-developers.com/showthread.php?t=374155)
varanusvincent's [WM6.1] Shadow Vista "Clean" (http://forum.xda-developers.com/showthread.php?t=375281)
L3v5y's <WM6.1> <UC> iProphet 1.0.2.3 (http://forum.xda-developers.com/showthread.php?t=377693)
L3v5y's iProphet V2 beta (http://forum.xda-developers.com/showthread.php?t=379284)
Bourne WM6.1 from dave. (http://forum.xda-developers.com/showthread.php?t=380770)
Korand 3.1 GER by animelover (http://forum.xda-developers.com/showthread.php?t=383003)

Elf ROMs

Noonski's SPC WM6.08 ROM (WM6.1, 5.2.19199) (http://forum.xda-developers.com/showthread.php?t=366877)
Ababreker's UC 2.0 Capable New Ultra Clean & Clean Edition ROMs (http://forum.xda-developers.com/showthread.php?t=392637)

Wizard ROMs

epimazzo's KhanX 4.0 (http://forum.xda-developers.com/showthread.php?p=1885534#post1885534)
SNN Version 3.1 WM 6.1 build 19209 from newbie1221 (http://forum.xda-developers.com/showthread.php?t=386668)

Hermes ROMs

CRCs PHKv12 WM6.1 (http://forum.xda-developers.com/showthread.php?t=364216)
PDACorner.V6 - Abusalza (http://forum.xda-developers.com/showthread.php?t=376223)
Faria-R32 / Dr Puttingham WM6.1 HERMES ROM-CUSTOM+CLEAN (http://forum.xda-developers.com/showthread.php?t=374382)
TNT.19199 Series from its right (http://forum.xda-developers.com/showthread.php?t=376945)

Trinity ROMs

FInixNOver 3.1.1 and 3.1.1Light (http://forum.xda-developers.com/showthread.php?t=372928)


Here's the current list of UC related software tools

DoeDoe's SDConfig.txt creator (http://forum.xda-developers.com/showthread.php?t=371832).
.reg -> xml conversion tool (http://forum.xda-developers.com/showpost.php?p=1902590&postcount=35)
XML Notepad 2007 (http://www.microsoft.com/downloads/details.aspx?familyid=72D6AA49-787D-4118-BA5F-4F30FE913628&displaylang=en)
CeRegEditor (can find registry changes) (http://ceregeditor.mdsoft.pl/?lang=en)
DaveShaw's Folder Copy utility (http://forum.xda-developers.com/showthread.php?t=418417)
Registry capture Logger (http://forum.xda-developers.com/attachment.php?attachmentid=67926&d=1201638333)



If you are a ROM chef and want to make your own ROM UC capable, then go here (http://forum.xda-developers.com/showthread.php?t=366333) to learn how. The effort is trivial btw.

Ok, on to creating scripts!

First you need to read a short WiKi article on customization that's located here (http://wiki.xda-developers.com/index.php?pagename=AutoRun)

How do you set up UC? By placing a file called "SDConfig.txt" in the root directory of your storage card. The best way to illustrate this is to show examples. Here is my SDConfig.txt:

LOCK:Enabled
CAB: \Storage Card\Cabs\Tiltkeyboardfix.cab
CAB: \Storage Card\Cabs\removeHiddenProxy4CWS_0522.cab
CAB: \Storage Card\Cabs\s2u2v99c.cab
CAB: \Storage Card\Cabs\CapScrUtil.CAB
CAB: \Storage Card\Cabs\Communicator mobile.cab
CAB: \Storage Card\Cabs\CorePlayer.PocketPC.cab
CAB: \Storage Card\Cabs\HTC_GPS_TOOL.cab
CAB: \Storage Card\Cabs\SpbBackup.cab
CAB: \Storage Card\Cabs\SpbPocketPlus4.arm.cab
CAB: \Storage Card\Cabs\SpbTime2.arm.cab
CAB: \Storage Card\Cabs\SpbWeather.arm.cab
CAB: \Storage Card\Cabs\SplashID.CAB
CAB: \Storage Card\Cabs\SplashPhoto.CAB
CAB: \Storage Card\Cabs\SPTimeSync.cab
CAB: \Storage Card\Cabs\stdtime.PPC30_ARM.CAB
CAB: \Storage Card\Cabs\tomtom_6_032_8351.cab
CAB: \Storage Card\Cabs\VisualGPSceInstall.CAB
CAB: \Storage Card\Cabs\ip.PPC_ARM.CAB
CAB: \Storage Card\Cabs\SleuthKaiserVoip.cab
CAB: \Storage Card\Cabs\TPGProvisioning.cab
CAB: \Storage Card\Cabs\GSM610.CAB
CAB: \Storage Card\Cabs\GoogleMaps_compressed.CAB
CAB: \Storage Card\Cabs\LiveSearch.cab
CAB: \Storage Card\Cabs\Pieff.cab
XML: \Storage Card\Cabs\SleuthProvisioning.xml
LOCK:Disabled
RST: Reset


Here are some important facts to remember:

end your file with the "RST: Reset" command
The file cannot be UNICODE
All commands must be in UPPER CASE. CAB: is valid but Cab: is not. Case is not important in the parameter portion however: \Storage Card\CABS\myCAB.cab is the same as \storage card\cabs\mycab.cab.
Cabs that specifically wait for additiional user input (other than the initial location) can be loaded but require special grouping. An example of this is the 1-calc installation which stops and makes you accept a license agreement. Go here (http://forum.xda-developers.com/showpost.php?p=1900610&postcount=19) to find out how to load these. Thanks booda!
Tabs/Spaces at the end of a line are not allowed and will cause SDAutoRun to abort on a file not found error.
The first 5 characters of a line are reserved for the command. The parameter for the command must begin on the 6th character That means to add one space to 4 character commands like "CAB:" and no spaces to 5 character commands like "HIDE:".


In my next post, I'll go over settings customization by showing you SleuthProvisioning.xml.

Sleuth255
6th February 2008, 09:17 PM
Settings customization is pretty advanced stuff. You might want to get going first by simply using User Customization to install some cabs. If I were first starting out, I'd install cabs that customize my device. For example, I have a Tilt, so I would install a Keyboard patch cab for the Tilt layout and another cab that disables the AT&T hidden proxy. This would require two CAB: statements in SDConfig.txt.

However, if you're yearning to do more settings customization, then the "XML:" config statement is the key. Here's my XML provisioning file called SleuthProvisioning.xml. It initializes me in cleartype mode, changes my notification settings, initializes the default SIP to Block Recognizer, sets power and backlight timeouts, re-arranges my today screen and updates my Owner Name. :)


<wap-provisioningdoc>

<!-- ClearType Preferences -->

<characteristic type="Registry">
<!-- Just adding this Key enables ClearType -->
<characteristic type="HKLM\System\GDI\CLEARTYPE">
<parm name="Default" value="0" datatype="integer"/>
<noparm name="Default"/>
</characteristic>
<characteristic type="HKLM\System\GDI\ClearTypeSettings">
<parm name="OffOnRotation" value="0" datatype="integer"/>
</characteristic>

<!-- Owner Preferences -->

<characteristic type="HKCU\ControlPanel\Owner">
<parm name="Name" value="Sleuth 255" datatype="string"/>
<!-- Owner value is SZ_BINARY: 320 Unicode characters (640 bytes). XML "Binary" datatype processes this as Base64-->
<parm name="Owner" value="SwBlAaSwDyuuIIgvrRRvAHgAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA==" datatype="binary"/>
</characteristic>

<!-- Notification Preferences -->

<!-- New Email Message -->
<characteristic type="HKCU\ControlPanel\Notifications\{A877D65A-239C-47a7-9304-0D347F580408}">
<parm name="Options" value="2" datatype="integer"/>
</characteristic>
<!-- Reminders -->
<characteristic type="HKCU\ControlPanel\Notifications\{15F11F90-8A5F-454c-89FC-BA9B7AAB0CAD}">
<parm name="Options" value="1073741833" datatype="integer"/>
</characteristic>

<!-- Power/Backlight Timeout Preferences -->

<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="BatteryTimeout" value="240" datatype="integer"/>
<parm name="ACTimeout" value="360" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\System\CurrentControlSet\Control\Power\Timeou ts">
<parm name="ACSuspendTimeout" value="300" datatype="integer"/>
<parm name="BattSuspendTimeout" value="180" datatype="integer"/>
</characteristic>

<!-- Application Preferences -->


<characteristic type="HKCU\Software\The Paradigm Group\sipchange\Parameters">
<parm name="DefaultSIP" value="Block Recognizer" datatype="string"/>
<parm name="Delay" value="10" datatype="integer"/>
</characteristic>
<characteristic type="HKCU\Software\Spacreat\SP TimeSync\General settings">
<parm name="Start minimized" value="Yes" datatype="string"/>
</characteristic>
<characteristic type="HKCU\Software\Spacreat\SP TimeSync\NTP client">
<parm name="Autosync period" value="21600" datatype="string"/>
</characteristic>
<!-- Silent Keyboard Sliding Sound -->
<characteristic type="HKLM\Software\HTC\SlidingSound">
<parm name="ActiveSlidingSound" value="0" datatype="integer"/>
<parm name="SlidingSoundEffect" value="0" datatype="integer"/>
</characteristic>

<!-- Today Screen Order/Enabled Preferences -->

<characteristic type="HKLM\Software\Microsoft\Today\Items\HTC Home">
<parm name="Enabled" value="0" datatype="integer"/>
<parm name="Order" value="0" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\Windows Live Search">
<parm name="Enabled" value="1" datatype="integer"/>
<parm name="Order" value="1" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\&quot;Messaging&quot;">
<parm name="Enabled" value="1" datatype="integer"/>
<parm name="Order" value="5" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\&quot;Calendar&quot;">
<parm name="Enabled" value="1" datatype="integer"/>
<parm name="Order" value="20" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\&quot;Tasks&quot;">
<parm name="Enabled" value="0" datatype="integer"/>
<parm name="Order" value="21" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\&quot;TomTom&quot;">
<parm name="Enabled" value="0" datatype="integer"/>
<parm name="Order" value="22" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\Windows Live">
<parm name="Enabled" value="0" datatype="integer"/>
<parm name="Order" value="23" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\&quot;Pocket Plus&quot;">
<parm name="Enabled" value="1" datatype="integer"/>
<parm name="Order" value="24" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\&quot;Spb Weather&quot;">
<parm name="Enabled" value="0" datatype="integer"/>
<parm name="Order" value="26" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\&quot;Spb Time&quot;">
<parm name="Enabled" value="0" datatype="integer"/>
<parm name="Order" value="28" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\&quot;Spb Backup&quot;">
<parm name="Enabled" value="0" datatype="integer"/>
<parm name="Order" value="42" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\&quot;Owner Info&quot;">
<parm name="Enabled" value="0" datatype="integer"/>
<parm name="Order" value="46" datatype="integer"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Today\Items\Getting Started">
<parm name="Enabled" value="0" datatype="integer"/>
<parm name="Order" value="47" datatype="integer"/>
</characteristic>
</characteristic>

<-- File Operations -->
<-- Copy the SP Timesync link to startup so it gets executed whenever I reset -->

<characteristic type="FileOperation">
<characteristic type="%CE2%\Startup" translation="install">
<characteristic type="MakeDir" />
<characteristic type="StartTimeSync.lnk" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\windows\Start Menu\Programs\SP TimeSync.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>


Lets take a look at this more closely. The XML itself sets up two Configuration Service providers. One is used for registry operations and one for file operations. both are enclosed by the wap-provisioning tags. Here they are shown without any operations:


<wap-provisioningdoc>
<characteristic type="Registry">
</characteristic>
<characteristic type="FileOperation">
</characteristic>
</wap-provisioningdoc>


Registry CSPs

Within the registry type, I set a lot of cool stuff. You should be able to firgure out how it works if you have basic registry skills. Essentially, setting values for any registry key looks like this:

<characteristic type="HKCU\ControlPanel\BackLight">
<parm name="BatteryTimeout" value="240" datatype="integer"/>
<parm name="ACTimeout" value="360" datatype="integer"/>
</characteristic>


First you set the key with the <characteristic type> tag, then you set values with the <parm name> tags. Binary values are a PITA since they're encoded Base 64 (see my entry for Owner Information above). If you want to set owner information as I did in the example, then you need to convert Unicode to Base64. Post here if you want to learn how and I'll show you how I do it.

Special characters within quotes in XML files must be represented using html special character sequences. For instance, the double quote (") character sequence is &quot; so "Today\Items\"Pocket Plus"" would be written as "Today\Items\&quot;Pocket Plus&quot;". The full list of special HTML character sequences can be found here (http://www.utexas.edu/learn/html/spchar.html). This is especially important when changing today screen plugin order since some today screen registry entries actually have quotes in the key name. See my provisioning file above under "Today Screen order/enabled preferences" for an example of this.

Sleuth255
6th February 2008, 09:35 PM
File Operation CSPs

All the File Operation CSP parameters are described here (http://msdn2.microsoft.com/en-us/library/bb737563.aspx).

Here's mine:

<characteristic type="%CE2%\Startup" translation="install">
<characteristic type="MakeDir" />
<characteristic type="StartTimeSync.lnk" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\windows\Start Menu\Programs\SP TimeSync.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>


%CE2% is a shorthand way for saying "\windows". As you can see, the first characteristic types set the working directory to \windows\startup, the destination file to "StartTimeSync.lnk" and the file operation to "Copy". Finally, the source file is set and the CSP copies \windows\SP TimeSync.lnk to \windows\startup\StartTimeSync.lnk.

Here's a great example from booda. It shows shortcut creation, move, directory creation and remove operations:
<characteristic type="FileOperation">

<!--Create folder in Programs called "Docs and Ref" and move Google Maps shortcut into it-->

<characteristic type="%CE2%\Start Menu\Programs\Docs and Ref" translation="install">
<characteristic type="MakeDir" />

<characteristic type="Google Maps.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\Google Maps.lnk" translation="install"/>
</characteristic>
</characteristic>

</characteristic>

<!--Create "Doom" shortcut from exe on storage card and copy it into Games folder-->

<characteristic type="%CE2%\Start Menu\Programs\Games" translation="install">
<characteristic type="MakeDir" />

<characteristic type="gfDoom.lnk" translation="install">
<characteristic type="Shortcut">
<parm name="Source" value="\Storage Card\Games\Doom\gfDoom.exe" translation="install"/>
</characteristic>
</characteristic>

</characteristic>

<!-- Move Office folder from Start Menu into Docs and Ref folder -->

<characteristic type="%CE2%\Start Menu\Programs\Docs and Ref\Office Mobile" translation="install">
<characteristic type="MakeDir" />

<characteristic type="Excel Mobile.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\Office Mobile\Excel Mobile.lnk" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="icon.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\Office Mobile\icon.lnk" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="OneNote Mobile.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\Office Mobile\OneNote Mobile.lnk" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="PowerPoint Mobile.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\Office Mobile\PowerPoint Mobile.lnk" translation="install"/>
</characteristic>
</characteristic>

<characteristic type="Word Mobile.lnk" translation="install">
<characteristic type="Move">
<parm name="Source" value="%CE2%\Start Menu\Programs\Office Mobile\Word Mobile.lnk" translation="install"/>
</characteristic>
</characteristic>

</characteristic>

<characteristic type="%CE2%\Start Menu\Programs\Office Mobile" translation="install">
<characteristic type="RemoveDir" />
</characteristic>

</characteristic>


Couple of things to note - I always use "install" and "MakeDir" commands for folders - if the folder already exists, it won't do anything, and if it doesn't, the folder will be created. Either way, you know the folder will be there to move the shortcuts into.

The MakeDir and RemoveDir commands don't require a closing [/characteristic] tag - just make sure the slash is included as in the examples above.

You have to make sure that 1) any files you're referencing already exist and 2) you have the names exactly right. If you try to move a shortcut that isn't there or has a different name than what you referenced, the whole process bombs out.


Here are all the %CE#% shortcuts (thanks to chainfire)

%CE1% \Program Files
%CE2% \Windows
%CE3% ***Not Defined***
%CE4% \Windows\Startup
%CE5% \My Documents
%CE6% \Program Files\Accessories
%CE7% \Program Files\Communication
%CE8% \Program Files\Games
%CE9% ***Not Defined***
%CE10% ***Not Defined***
%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
%CE16% ***Not Defined***
%CE17% \Windows\Start Menu


EMAIL2 CSPs

All the EMAIL2 CSP provisioning parameters are described here (http://msdn2.microsoft.com/en-us/library/bb737579.aspx)

Elosogrande7076 shows us how to provision a couple of email accounts below. To be safe, use GUID-GEN (http://www.guidgen.com/) to generate unique GUIDs. This is because duplicate GUIDs will cause undefined results on your device.


<wap-provisioningdoc>
<characteristic type="EMAIL2">
<characteristic type="{7B3D74EC-35D9-45e3-B8F3-E38F4B90D174}">
<parm name="SERVICENAME" value="Gmail" />
<parm name="SERVICETYPE" value="IMAP4" />
<parm name="INSERVER" value="imap.gmail.com" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="Username" />
<parm name="AUTHNAME" value="login@gmail.com" />
<parm name="AUTHSECRET" value="password" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="login@gmail.com" />
<parm name="LINGER" value="15" />
<parm name="RETRIEVE" value="-1" />
<parm name="KEEPMAX" value="-1" />
<parm name="DWNDAY" value="3" />
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="1" />
<parm name="SMTPALTAUTHNAME" value="login@gmail.com" />
<parm name="SMTPALTPASSWORD" value="password" />
<parm name="SMTPALTDOMAIN" value="smtp.gmail.com" />
</characteristic>
</characteristic>
<characteristic type="EMAIL2">
<characteristic type="{877e6100-cd6d-4a44-bd4c-3edf4b901480}">
<parm name="SERVICENAME" value="Gmail1" />
<parm name="SERVICETYPE" value="IMAP4" />
<parm name="INSERVER" value="imap.gmail.com" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="Username" />
<parm name="AUTHNAME" value="login1@gmail.com" />
<parm name="AUTHSECRET" value="password1" />
<parm name="DOMAIN" value="" />
<parm name="REPLYADDR" value="login1@gmail.com" />
<parm name="LINGER" value="15" />
<parm name="RETRIEVE" value="-1" />
<parm name="KEEPMAX" value="-1" />
<parm name="DWNDAY" value="3" />
<parm name="AUTHREQUIRED" value="1" />
<parm name="SMTPALTENABLED" value="1" />
<parm name="SMTPALTAUTHNAME" value="login1@gmail.com" />
<parm name="SMTPALTPASSWORD" value="password1" />
<parm name="SMTPALTDOMAIN" value="smtp.gmail.com" />
</characteristic>
</characteristic>
</wap-provisioningdoc>


XML Creation FAQ


1.- Why Provisioning file is not loaded, I mean, it doen't work nor load any registry or feature that I added to it?

Its probably a syntax error. Here's how I debug syntax:

first obtain a cab creation utility. For windows I use Cabarc, a free m$ utility
you can then rename your xml to _setup.xml and double click to load it into a browser. This will verify that your <tag></tag> nesting is correct along with validating tag statements. IE won't load an xml file in display mode if this isn't correct. As an added benefit, the error message will point to the exact line where the error occurs.
If it looks good, make a cab containing only _setup.xml itself and run it on your device. If the xml is good, installation will be successful & your changes will be made
if unsuccessful, use successive installs to isolate the part that isn't working.


2.- How I convert the HEX values showed at Registry Editor to base64 unicode? (I'm Mac user) It is for Owner registry stuff.

Being a Mac user, ymmv on this, but my technique using Windows is as follows:

create a Unicode file with your favorite text editor and enter your owner name (I use Windows Notepad for this, not sure what a Mac uses). Then pad it out to 320 characters with "%" characters.
now open that file with a Hex editor and do a global Hex replace on 25 (the hex representation of a "%") to 00. This produces a file containing the Unicode representation of your Owner name padded with binary zeros. I use WinHex for this btw.
Now browse to this (http://www.motobit.com/util/base64-decoder-encoder.asp) site and select the file you've just created. Press "Convert the Source data". The Base64 data will appear.
Copy data to clipboard, paste into your editor (make sure word wrap is off) and remove all the newline characters (go to beginning of each line starting from bottom & press backspace). when complete, you will have one single line of base64 data. Now copy to clipboard & paste into my example.
Done!

Update: RapiConfig might be faster. See stan23's post located here (http://forum.xda-developers.com/showpost.php?p=1899755&postcount=17). Download link is included.

Sleuth255
6th February 2008, 09:36 PM
Here's an easier way to create your provisioning XML files!

get the reg -> xml tool in the first post note: needs .net framework. My computer has .net v3.5 & it works fine.
load an app that can do registry exports on your device. The one I use is dotfred's task manager (http://forum.xda-developers.com/showthread.php?t=280104)
export the key you want to provision & copy to desktop using activesync
fire up the tool, give it the .reg and it will create provxml that contains the Registry CSP you need
open provxml with notepad, cut out key you want & paste this into your provisioning xml within your registry CSP tags
done!

jcespi2005
6th February 2008, 10:05 PM
Nice contrubution....

only can say THANKS :)

doedoe
6th February 2008, 10:24 PM
Great work :)

Are you also supporting these functions?


SHOW:\Storage Card\MyImage.bmp
EXEC:\Storage Card\cusTSK.exe \Windows\MyTheme.tsk
EXEC:\windows\SetHSDPA.exe /Disable
CPY1:\Storage Card\MyFile.ext
CPY2:\My Documents\MyFile.ext


They were present with the orginal HTC AutoRun.exe's

Sleuth255
6th February 2008, 10:28 PM
I haven't gotten CPY1 and CPY2 to work. I'd make a cab to copy files itmt. EXEC: works just fine. I haven't tested SHOW: yet.

I'm acutally using AutoRun to parse btw. My program just configures the registry then runs AutoRun.exe again.

Note: many people have gotten CPY1 and CPY2 to work correctly The syntax is as follows:

CPY1: <source file to copy>
CPY2: <destination to copy to>

CPY2: must immediately follow CPY1:

YMMV on this command for sure. On a Kaiser, these commands don't appear to work properly.

Park City
6th February 2008, 11:10 PM
Sleuth255....

This is fantastic! Excellent information. Thank you!!

taguapire
7th February 2008, 12:26 AM
Hi Sleuth,

There is a way for get apps installed in my Storage Card? I preffer this way because I want the memory device free for running applications.

Thanks in advance,

Taguapire.

Sleuth255
7th February 2008, 12:35 AM
sorry. AutoRun, by HTC design, cannot install apps to your storage card.

edit:

Actually, AutoRun installs cabs to the location specified by the cab itself. Most cabs don't specify a location however and in this case AutoRun chooses the device. However, you can override this behavior by using WinCE Cab Manager to create a cab that will only install to the Storage Card.

doedoe
7th February 2008, 01:34 AM
I have been using this method to build devices since WM5 launched. I think that only the early versions of AutoRun.exe have the copy command - I have also seen a command which allowed you to pass additional Config.txt files...

Personally I use my own custom built AutoRun which works upon card being pushed in to the device (a 2577 autorun.exe) - This then does three things


Looks for a hardcoded MyPersonalStuff.xml and pass to the Configuration.Manager - as above
Then look in a dir on the storage card and sequencially install each cab
Look for another hardcoded MyDeviceStuff.xml file and also configure it once the apps have been installed - reorg my start menu, populate custom application settings (Launchers etc) and do any device specific stuff.


This then allows me to configure all the os stuff first (generic to WM and all devices) install all my cabs, then apply a load of device and application specific suff - like re-ordering my start menu, set info for home screen launchers etc

Really this is just a set of application classes which can be used in any order - displaying a form and having a go button, read from a XML or flat file, device type validation, doing it all silently or whatever.

Do you want me to build you a custom version of AutoRun.exe with some new functionality? Extra commands, chosen file locations, the ability to install all cabs in a certain dir?

Got the code just need some help with requirements and a spec - the build part is easy :)

Sleuth255
7th February 2008, 01:45 AM
Actually, I'm hoping for an app that lets you select cabs & xml files then builds SDConfig.txt.

A bit more complex would be an preference configuration builder that would build an XML file based on user preferences then add it to SDConfig.txt.

I'll get to work on the first one shortly.

One thing I'm not sure of though: I fire off AutoRun.exe with a RUN parameter (otherwise it doesn't run on a Kaiser). Is this a universal requirement for all devices?

doedoe
7th February 2008, 02:00 AM
Sound like one app to me - I have already started on something kinda like that anyway leave it with me for a few days ;)

That RUN command is hardcoded into the AutoRun.exe - the developer would have chosen this when he built the file.

Sleuth255
7th February 2008, 02:08 AM
Good, as long as all devices fire off AutoRun with the RUN parameter then my SDAutoRun program should work universally.

taguapire
7th February 2008, 10:26 AM
Hi Sleuth,

I tried to use the UC feature in your ROM, but I have few questions.

1.- Why Provisioning file is not loaded, I mean, it doen't work nor load any registry or feature that I added to it?
2.- How I can add to Provisioning all my Connection profiles including APNs, etc.?
3.- How I convert the HEX values showed at Registry Editor to base64 unicode? (I'm Mac user) It is for Owner registry stuff.
4.- Which are the registry settings for Arc Soft Message composer for MMS stuff?
5.- Can I configure my Exchange account using registry settings? If it is true, how I can do it?

I just did a search to the registry but I can't find any of above things.

Best Regards,

Taguapire.

Sleuth255
7th February 2008, 03:43 PM
Hi Sleuth,

I tried to use the UC feature in your ROM, but I have few questions.


Your questions are so good I turned them into a FAQ on post #3.

stan23
7th February 2008, 04:35 PM
create a Unicode file with your favorite text editor and enter your owner name (I use Windows Notepad for this, not sure what a Mac uses). Then pad it out to 320 characters with "%" characters.
...


But you only get your name into that base64 data.

You might type in the whole owner information once, then use RapiConfig (http://forum.xda-developers.com/attachment.php?attachmentid=37765&d=1177391284)with the following input (i.e. content of RapiConfigIn.xml)

<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKCU\ControlPanel\Owner">
<parm-query name="Owner"/>
<parm-query name="Owner Notes"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
to extract it from the registry.

This is even better, because it get's the whole owner information including telephone number and email address:

<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic-query type="HKCU\ControlPanel\Owner" recursive="true"/>
</characteristic>
</wap-provisioningdoc>

Same works for E-Mail

<wap-provisioningdoc>
<characteristic-query type="EMAIL2" recursive="true"/>
</wap-provisioningdoc>
and Wi-Fi:

<wap-provisioningdoc>
<characteristic-query type="Wi-Fi" recursive="true"/>
</wap-provisioningdoc>

Of course I don't know whether there is a RapiConfig for Mac users :(

satiros
7th February 2008, 05:01 PM
sorry 4 my question but where do i find the cabs

booda
7th February 2008, 08:51 PM
Cabs that specifically wait for additiional user input (other than the initial location) cannot be loaded. An example of this is the 1-calc installation which stops and makes you accept a license agreement.


Actually, you can load cabs that need user input - you just have to group those cabs together and use the Hide command. For instance:


LOCK:Enabled
CAB: \Storage Card\Cabs\Tilt_keyboard_fix.cab
CAB: \Storage Card\Cabs\Vibra_(Switch)_1.32.cab
LOCK:Disabled
HIDE:Enabled
CAB: \Storage Card\Cabs\ListPro-PocketPC-5.cab
CAB: \Storage Card\Cabs\eWallet-PocketPC-Install.cab
HIDE:Disabled
LOCK:Enabled
XML: \Storage Card\Cabs\device_settings.xml
XML: \Storage Card\Cabs\software_settings.xml
LOCK:Disabled
RST: Reset


In the above example, the screen is unlocked and the customization window is hidden before the ListPro & eWallet cabs are launched so you can provide the user input they require. Then the screen is relocked and the customization window is restored to finish installing other cabs/xml that don't require user input.

I just tried this on your v3.0 ROM (which is great, btw) and it worked fine. UC is fantastic, thanks for implementing such a useful feature.

Sleuth255
7th February 2008, 08:55 PM
Woah! I didn't know there was a HIDE: command! :eek:

Great tip!

Sleuth255
7th February 2008, 09:00 PM
@stan23: I forgot all about RapiConfig... DOH! :o

booda
7th February 2008, 09:20 PM
Woah! I didn't know there was a HIDE: command! :eek:

Great tip!

I've been a member here for a year and a half - about time I contributed something useful. ;)

satiros
7th February 2008, 09:26 PM
thanks guys 4 the answer!!!
sorry i waisted your time and space

doedoe
7th February 2008, 10:40 PM
http://www.imagehosting.com/out.php/i1563391_Untitledpicture.png

How about this for a first attempt? (Actually on release v0.3 now :))

Select the required files and order them accordingly before creating the SDConfig.txt file :)

If there are any more commands which need supporting please let me know :)

Feedback welcomed.

kin0kin
7th February 2008, 10:56 PM
I have been using auto installation feature in my Roms for the past 3 months and there is no need to introduce another app as everything can be done with just autorun.exe. However, pardon me if I missed something that this app offers but autorun.exe/preautorun.exe doesn't.

Let me share what I know about auto cab installation.

With just autorun.exe, it is possible to:
1) Auto Install cabs from Extended Rom, then
2) Continue Auto Installation from Storage Card
3) It is also possible to Auto install the cabs into Storage Card by editing the cabs Path with some sort of cab creator/editing program. I used WinCECabManager.
4) With the Hide command, you can auto install virtually everything with just autorun.exe

Auto installation is not new and we've seen it used in Extended Rom. We also know that it is possible to Auto Install from storage card. We know that for autorun to work, it has to point to the config.txt file's path:

[HKEY_LOCAL_MACHINE\Comm]
"TurnRadioFlag"=dword:0
"AutoRunType"=dword:0
"AutoRunCFG"="\\Extended_ROM\\config.txt"
"AutoRun"="\\Extended_ROM\\autorun.exe"

In this case, when autorun fires up, it searches for the config.txt in Extended Rom and start executing the parameters in the file. At the end of the config file, it usually ends with the reset command. For example:

LOCK:Enabled
CAB: \Extended_ROM\AdobeFlashLite_2_1.cab
CAB: \Extended_ROM\HTCTaskManager.cab
Hide:Enabled
LOCK:Disabled
RST: Reset


To have auto run install from storage card, we simply change the path to:

[HKEY_LOCAL_MACHINE\Comm]
"AutoRunType"=dword:0
"AutoRunCFG"="\\Storage Card\\config.txt"
"AutoRun"="\\Extended_ROM\\autorun.exe"

Of course, for phones without extended rom, I believe it's look for autorun in windows. In either case, it doesn't matter since all it needs is to launch autorun from somewhere and points to the config file.

The Tricky part for phones with Extended Rom is, how the heck can we auto install from Storage Card after auto installation is done in Extended Rom. We want it to auto install from extended rom, then continue to the storage card, not just either one of them.

To auto install from Storage Card, after auto installation is done with Extended Rom, we simply have to patch the configfile path with a command in Extended Rom, then EXECute autorun again. I made a cab called Set_Auto_Run which simply contains:

[HKEY_LOCAL_MACHINE\Comm]
"AutoRunType"=dword:0
"AutoRunCFG"="\\Storage Card\\config.txt"
"AutoRun"="\\Extended_ROM\\autorun.exe"
*there's also another line that sets the autorun flag to 0.

and my Extended Rom config file looks like this:

LOCK:Enabled
CAB: \Extended_ROM\AdobeFlashLite_2_1.cab
CAB: \Extended_ROM\HTCTaskManager.cab
CAB: \Extended_ROM\Set_Auto_run.cab
Hide:Enabled
EXEC:\Extended_ROM\AutoRun.exe
LOCK:Disabled
RST: Reset


The config file in the storage card would be something like this:
LOCK:Enabled
CAB: \Storage Card\Cabs\Call_Firewall.cab
CAB: \Storage Card\Cabs\TCPMP.cab
CAB: \Storage Card\Cabs\FlashVideoBundle.CAB
CAB: \Storage Card\Cabs\Threaded_SMS.cab
LOCK:Disabled
RST: Reset


At the end of the autorun from storage card, it resets the phone. However, if one doesn't use the auto installation feature, autorun will execute the reset command in the config.txt within Extended Rom and completes the Rom Installation.

To auto Install from Storage Card to Storage Card/Windows, simply change the Cab's Path. Instruction can be found in my Rom's link.

Sleuth255
8th February 2008, 12:24 AM
True, but what I've done is make it simple:

replace your last "RST: Reset" command wherever it is with "EXEC: \windows\SDAutorun.exe".
Done.

SDAutorun actually automates the process you so elequently outlined above then re-runs AutoRun just as you do. ;) Additionally, it works for the newer devices that don't have extended rom & so need something cooked in.

More importantly, UC is about a standard that benefits everybody. With UC, everybody can make a file called SDConfig.txt on their storage card and be confident that autorun will pass control to it and if its not there, then the device will reset just as if it had encountered the final RST: Reset command that SDAutorun.exe itself replaces. Chefs can cook this in knowing that if it isn't used by a UC armed ROM flasher, then autorun will work as it always does.

Look at the configuration program that was just produced by doedoe if you don't see the power in this.

Sleuth255
8th February 2008, 12:26 AM
How about this for a second attempt?

Select the required files and order them accordingly before creating the SDConfig.txt file :)

If there are any more commands which need supporting please let me know :)

Feedback welcomed.

I just saw this! :) Will begin testing tomorrow. :)

doedoe
8th February 2008, 12:31 AM
I just saw this! :) Will begin testing tomorrow. :)

Ensure you check back and get the latest build :)

kin0kin
8th February 2008, 12:57 AM
Without extended Rom, you can just create an XML/cab with the registry settings I listed above, and execute it in preconfig.txt before the reset command (in your case, this would be, sdconfig.exe).

Which it will "updated/patch" the preconfig path to point towards the config.txt in storage cared (in your case...sdconfig.txt). Preconfig would then execute preautorun.exe at the last line before reset.

Everything can be done with just autorun.exe/preautorun.exe, so I thought this app is pretty redundant for extra 30kb (not like this is material, just had to mention it). Anyway, I just wanted to share something I know ;)

Sleuth255
8th February 2008, 02:19 AM
thanks guys 4 the answer!!!
sorry i waisted your time and space

your message was too cryptic: I didn't know what cabs you were referring to.

Sleuth255
8th February 2008, 02:28 AM
Without extended Rom, you can just create an XML/cab with the registry settings I listed above, and execute it in preconfig.txt before the reset command (in your case, this would be, sdconfig.exe).

Which it will "updated/patch" the preconfig path to point towards the config.txt in storage cared (in your case...sdconfig.txt). Preconfig would then execute preautorun.exe at the last line before reset.

Everything can be done with just autorun.exe/preautorun.exe, so I thought this app is pretty redundant for extra 30kb (not like this is material, just had to mention it). Anyway, I just wanted to share something I know ;)

SDAutoRun.exe isn't needed. You are right. Chefs can use any technique they want to do this:

Run SDConfig.txt as the final customization if it is found on the sd card. Otherwise if not found or there is not an SD card present, reset. Remember: the RST command actually re-enables the radio. So, SDAutoRun actually creates a quick config.txt with a RST: Reset and runs AutoRun with this if no SDConfig is found.

my way is a 30K program and a single change to the last statement in a chain of config files.

This functionality is key because not everyone will have an SD card nor even care about UC.

Finally:

Let's take this up in the chef's thread because we are cluttering up this user thread with discussion that isn't relevant to using SDConfig.txt or provisioning xml ;)

character
8th February 2008, 06:05 AM
is UC intended for kaiser and tytyn only how about wizard and atom?

bnycastro
8th February 2008, 07:43 AM
For customizing Owner Name:
I made a Text File named: Vincent Benedict Py Castro.txt
Wrote my name inside and saved it as unicode with .txt as extension
How do I do the next step?
Then pad it out to 320 characters with "%" characters.
sorry I really don't know the first thing about hex and unicode...

Did I convert it correctly:
Here is the registry export
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\Software\Microsoft\FontLink]

[HKEY_LOCAL_MACHINE\Software\Microsoft\FontLink\Sys temLink]
"Tahoma"="\\Windows\\sunfon.ac3,SC_Song"
"Courier New"="\\Windows\\sunfon.ac3,SC_Song"
"Arial"="\\Windows\\sunfon.ac3,SC_Song"
"Times New Roman"="\\Windows\\sunfon.ac3,SC_Song"

Here is the param code I wrote:
<!-- Chinese Font Fix -->
<characteristic type="HKLM\Software\Microsoft\FontLink">
<parm name="Default" value="0" datatype="integer"/>
<noparm name="Default"/>
</characteristic>
<characteristic type="HKLM\Software\Microsoft\FontLink\SystemLink">
<parm name="Tahoma" value="\Windows\sunfon.ac3,SC_Song" datatype="string"/>
<parm name="Courier New" value="\Windows\sunfon.ac3,SC_Song" datatype="string"/>
<parm name="Arial" value="\Windows\sunfon.ac3,SC_Song" datatype="string"/>
<parm name="Times New Roman" value="\Windows\sunfon.ac3,SC_Song" datatype="string"/>
</characteristic>

bnycastro
8th February 2008, 08:20 AM
Also for the CPY1 and CPY2 commands can we copy whole directories?

CPY1: \Storage Card\UC\Whatsta_PB_TAB_qVGA
CPY2: \Program Files\SBSH\PocketBreeze\Skins\
CPY1: \Storage Card\My Documents\TyTN II Settings\SBSH PW\Double Mod
CPY2: \Program Files\SBSH\PocketWeather\Skins\

dan1967
8th February 2008, 10:41 AM
I haven't gotten CPY1 and CPY2 to work. I'd make a cab to copy files itmt. EXEC: works just fine. I haven't tested SHOW: yet.

I'm acutally using AutoRun to parse btw. My program just configures the registry then runs AutoRun.exe again.

CPY1&CPY2 works fine in my case. I use it to restore contacts from Storage Card backup of pim.vol.

CPY1:\Storage Card\PIM.VOL
CPY2:\PIM.VOL

with this exact syntax. I've edited/corrected the wiki page also.

I also attach a nice tool to convert .reg and .rgu files to xml

Noonski
8th February 2008, 12:28 PM
CPY1&CPY2 works fine in my case. I use it to restore contacts from Storage Card backup of pim.vol.

CPY1:\Storage Card\PIM.VOL
CPY2:\PIM.VOL

with this exact syntax. I've edited/corrected the wiki page also.

I also attach a nice tool to convert .reg and .rgu files to xml


Euhm, eeuuuuuuh.


You mean thios F&*în works.

Man this is goind to be a heavy weekend with UC Compliancy.

Great thread. Finally it arives.

I'll be integrating it into my ELF Rom's

zyncmaster
8th February 2008, 01:40 PM
WOW! This is cool stuff... Noonski, i hope you can make a working prototype to showcase what's being discussed here for our Elf... :)

Sleuth255
8th February 2008, 04:09 PM
is UC intended for kaiser and tytyn only how about wizard and atom?

UC should work on any device.

Laurentius26
8th February 2008, 06:10 PM
Hi,

I've made a sdconfig.txt today and added my favorit apps.

It works great :D

Thanks Sleuth,

Leo :)

Sleuth255
8th February 2008, 11:17 PM
How about this for a first attempt? (Actually on release v0.3 now :))

Select the required files and order them accordingly before creating the SDConfig.txt file :)

If there are any more commands which need supporting please let me know :)

Feedback welcomed.

Nice tool! Now how about a little RAPI connection that moves the cabs and SDConfig.txt onto the device or maybe something as simple as using activesync manager to do on the next sync.

RAPI would be the coolest though because you could pre-load from the existing \Storage Card\SDConfig.txt file as well.

Sleuth255
9th February 2008, 01:45 AM
For customizing Owner Name:
I made a Text File named: Vincent Benedict Py Castro.txt
Wrote my name inside and saved it as unicode with .txt as extension
How do I do the next step?


with repetitve pressing of the "%" key (or choose any key that's not in your name). For example: my name is Sleuth 255 (that's 10 characters with the space). I would then press the "%" key 310 times.

All the "%" key is doing is placing in a replacable hex code that's not likely to be in your name.

You may wish to go the RapiConfig route instead. It actually turns your real Owner information back into XML based registry text. Stan23's post on this (RapiConfig dl link included) is here (http://forum.xda-developers.com/showpost.php?p=1899755&postcount=17)

edit: the other registry conversion you did looks essentially correct to me. The "noparam" command is supposed to delete the default value btw leaving just a blank key as you were looking for. In practice however, I find that this doesn't always work and the value is left behind. Usually this isn't an issue as in the case of the CLEARTYPE key.

bnycastro
11th February 2008, 04:24 AM
Thanks Slueth

Um do you know how to copy whole directories from SD to device using SDConfig.txt would like to copy over Skins during UC?

doedoe
11th February 2008, 04:49 AM
CPY1: \MyStart\Dir\
CPY2: \Dest\Dir

bnycastro
11th February 2008, 04:52 AM
thanks doedoe

doedoe
11th February 2008, 05:58 AM
Right, yet another application from DoeDoe

This one I am looking for some feedback before I launch it to the community.

Functionality:

Looks at \Storage Card\Cabs\ if a card is present or \Cabs\ if there is no card installed. Looks in the dir and lists all *.cab, *.cpf & *.xml files. Provides the ability to order the items and also add additional commands to the list. Once list is finalised, click save and the confix.txt will be written to the cabs location. There is also the ability to edit the autorun registry and launch the autorun file.

It also works as a 2577 autorun file.

Commands supported:


LOCK: Enable
LOCK: Disable
HIDE: Enable
HIDE: Disable
RST: Reset
EXEC: application /args - Grabs custom application name and args
SHOW: custom.bmp - Grabs the location of the image to display


http://img216.imageshack.us/img216/1849/cezoom3ux1.bmp http://img146.imageshack.us/img146/7923/cezoom5gn7.bmp http://img113.imageshack.us/img113/3286/cezoom4gx8.bmp http://img176.imageshack.us/img176/987/cezoom6ol6.bmp

Once I have some feedback and have made some changes, ill release to the community.

Sleuth - Lets get on msn and we can walk through these apps futures and ensure its inline with the convos you are having with the chefs etc.

doedoe
11th February 2008, 06:00 AM
http://img442.imageshack.us/img442/5008/cezoom1po8.bmp http://img90.imageshack.us/img90/8420/cezoom2dm7.bmp http://img408.imageshack.us/img408/5198/cezoom0zg1.bmp

remlle
11th February 2008, 06:31 PM
any way to use these tools to also set the registration, key and serial info up when it installs the program?

blazingwolf
11th February 2008, 06:56 PM
Right, yet another application from DoeDoe

This one I am looking for some feedback before I launch it to the community.

Functionality:

Looks at \Storage Card\Cabs\ if a card is present or \Cabs\ if there is no card installed. Looks in the dir and lists all *.cab, *.cpf & *.xml files. Provides the ability to order the items and also add additional commands to the list. Once list is finalised, click save and the confix.txt will be written to the cabs location. There is also the ability to edit the autorun registry and launch the autorun file.

It also works as a 2577 autorun file.

Commands supported:


LOCK: Enable
LOCK: Disable
HIDE: Enable
HIDE: Disable
RST: Reset
EXEC: application /args - Grabs custom application name and args
SHOW: custom.bmp - Grabs the location of the image to display



Once I have some feedback and have made some changes, ill release to the community.

Sleuth - Lets get on msn and we can walk through these apps futures and ensure its inline with the convos you are having with the chefs etc.

DoeDoe, that's smoking. I would love to have something like that. It would make things so much nicer. Thanks for the hard work. :)

Noonski
11th February 2008, 06:59 PM
any way to use these tools to also set the registration, key and serial info up when it installs the program?


I tested the Copy Command and it works like a charm.
So in your Case you should test the Hide commands.

LOCK:Enabled
CAB: \Storage Card\Cabs\Tilt_keyboard_fix.cab
LOCK:Disabled
HIDE:Enabled
CAB: \Storage Card\Cabs\USER_INPUT_NEEDED.cab
HIDE:Disabled
LOCK:Enabled
XML: \Storage Card\Cabs\device_settings.xml
CPY1:\Storage Card\Cabs\PIM.VOL
CPY2:\PIM.VOL
LOCK:Disabled
RST: Reset


Can these Commands be added to your first Posts Sleuth?

corys00
11th February 2008, 08:02 PM
Running V2 of Mr.Jcarter's 6.1 Rom for my HTC Vogue. Running the SDConfigBuilder.exe file gives me this error

An unexpected error has occurred in SDConfig Builder.exe.
Select Quit and then restart this program, or select Details for more information.

File or assembly name 'System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089', or one of its dependencies, was not found.


This is after a clean install. The program is located in "My Documents" on the device itself. Any suggestions would be appreciated. Thanks

booda
11th February 2008, 09:06 PM
any way to use these tools to also set the registration, key and serial info up when it installs the program?

For many programs, you can use provisioning XML for this, ie:

<!--Registration info stored in registry-->

<characteristic type="Registry">
<characteristic type="HKCU\Software\Ilium Software\NewsBreak" translation="filesystem">
<parm name="RegKey" datatype="string" value="your-license-key" />
<parm name="RegName" datatype="string" value="your-registration-name" />
</characteristic>
</characteristic>

<!--Registration info stored in a file-->

<characteristic type="FileOperation">
<characteristic type="\Application Data\CorePlayer" translation="install">
<characteristic type="MakeDir" />
<characteristic type="config.xml" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\Storage Card\Customization\CorePlayer\config.xml" translation="install"/>
</characteristic>
</characteristic>
</characteristic>
</characteristic>

Obviously you would need to do some hunting around to determine where/how your programs store their registration info, back up any necessary files (like Coreplayer's config.xml), etc.

Running V2 of Mr.Jcarter's 6.1 Rom for my HTC Vogue. Running the SDConfigBuilder.exe file gives me this error

If you're referring to this (http://forum.xda-developers.com/showpost.php?p=1901012&postcount=24), it's intended for desktop Windows only. I don't think doedoe has released the on-device version yet (which looks great, btw!).

remlle
11th February 2008, 09:17 PM
Im an idiot and can not figure out how to integrate this into a rom. Im using a kitchen for titan and dont know how to get this to invoke when hard reset. any help would be great Ide appreciate it.
Ide like to use either no2chems or dcds rom with this.

corys00
11th February 2008, 09:29 PM
If you're referring to this (http://forum.xda-developers.com/showpost.php?p=1901012&postcount=24), it's intended for desktop Windows only. I don't think doedoe has released the on-device version yet (which looks great, btw!).



I was thinking the same thing but when I try from the desktop I get this.


The application failed to intialize properly (oxc00000135). Click on OK to terminate the application.

Running Windows XP Service Pack 2 w/ Activesync 4.5

booda
11th February 2008, 10:26 PM
I was thinking the same thing but when I try from the desktop I get this.



Running Windows XP Service Pack 2 w/ Activesync 4.5

Don't know what to tell you - it runs fine for me on Vista. Is the .net framework installed/up to date on your XP?

Sleuth255
11th February 2008, 11:19 PM
I tested the Copy Command and it works like a charm.
So in your Case you should test the Hide commands.

LOCK:Enabled
CAB: \Storage Card\Cabs\Tilt_keyboard_fix.cab
LOCK:Disabled
HIDE:Enabled
CAB: \Storage Card\Cabs\USER_INPUT_NEEDED.cab
HIDE:Disabled
LOCK:Enabled
XML: \Storage Card\Cabs\device_settings.xml
CPY1:\Storage Card\Cabs\PIM.VOL
CPY2:\PIM.VOL
LOCK:Disabled
RST: Reset


Can these Commands be added to your first Posts Sleuth?


damnit.... why the heck can't I make the CPY1, CPY2 commands work? My attempt returns \Storage Card\Cabs\device_settings.xml not found dialog box. I wonder if there's a bug in the Kaiser AutoRun.exe...

I'll be sure to add the CPY1 & 2 commands though. I'll just do a ymmv on them.

Sleuth255
11th February 2008, 11:25 PM
Right, yet another application from DoeDoe

This one I am looking for some feedback before I launch it to the community.

Functionality:

Looks at \Storage Card\Cabs\ if a card is present or \Cabs\ if there is no card installed. Looks in the dir and lists all *.cab, *.cpf & *.xml files. Provides the ability to order the items and also add additional commands to the list. Once list is finalised, click save and the confix.txt will be written to the cabs location. There is also the ability to edit the autorun registry and launch the autorun file.

It also works as a 2577 autorun file.

Commands supported:


LOCK: Enable
LOCK: Disable
HIDE: Enable
HIDE: Disable
RST: Reset
EXEC: application /args - Grabs custom application name and args
SHOW: custom.bmp - Grabs the location of the image to display


Once I have some feedback and have made some changes, ill release to the community.

Sleuth - Lets get on msn and we can walk through these apps futures and ensure its inline with the convos you are having with the chefs etc.

I'm all over it. I have limited IM availability though. I'll PM you to set something up. There's a lot going on here ;)

Sleuth255
11th February 2008, 11:28 PM
Im an idiot and can not figure out how to integrate this into a rom. Im using a kitchen for titan and dont know how to get this to invoke when hard reset. any help would be great Ide appreciate it.
Ide like to use either no2chems or dcds rom with this.

You need to be able to edit config.txt in the dump directory. It's not a package installation. Just use notepad. You may have to stop the build process just before tadzio's tools take over (since they work from the dump directory).

corys00
12th February 2008, 10:27 AM
Don't know what to tell you - it runs fine for me on Vista. Is the .net framework installed/up to date on your XP?


This was the issue... Thought Windows Update kept .Net updated but did a manual install of .Net 3.5 and it's working like a champ now. Thank you sir. :D

Red49er
12th February 2008, 09:43 PM
damnit.... why the heck can't I make the CPY1, CPY2 commands work? My attempt returns \Storage Card\Cabs\device_settings.xml not found dialog box. I wonder if there's a bug in the Kaiser AutoRun.exe...

I'll be sure to add the CPY1 & 2 commands though. I'll just do a ymmv on them.


I'm on a Sprint Vogue, and I can't get the CPY1, CPY2 commands to work either.

dan1967
12th February 2008, 10:25 PM
damnit.... why the heck can't I make the CPY1, CPY2 commands work? My attempt returns \Storage Card\Cabs\device_settings.xml not found dialog box. I wonder if there's a bug in the Kaiser AutoRun.exe...

I'll be sure to add the CPY1 & 2 commands though. I'll just do a ymmv on them.

It may be that storage card is only accessible later during the 1st boot process (autoconfig).
I know I tried to launch my first xml setting file from card once and it did not work.
I had to install something from ExtROM first (or windows) and than everything worked from storage card.
It may be this....

Red49er
13th February 2008, 06:35 PM
It may be that storage card is only accessible later during the 1st boot process (autoconfig).
I know I tried to launch my first xml setting file from card once and it did not work.
I had to install something from ExtROM first (or windows) and than everything worked from storage card.
It may be this....

Could you be a little more clear? I thought all cabs had to be installed from the Storage Card? If I understand you correctly, I need to install something from my device first, and then it should let me cpy1/2 from my storage card?

gthing
14th February 2008, 02:26 AM
Hey can you update the main post to include WizeMan's new SNE rom as UC compliant?

http://forum.xda-developers.com/showthread.php?t=364641

_Alex_
14th February 2008, 04:49 AM
Right, yet another application from DoeDoe

This one I am looking for some feedback before I launch it to the community.

Functionality:

Looks at \Storage Card\Cabs\ if a card is present or \Cabs\ if there is no card installed. Looks in the dir and lists all *.cab, *.cpf & *.xml files. Provides the ability to order the items and also add additional commands to the list. Once list is finalised, click save and the confix.txt will be written to the cabs location. There is also the ability to edit the autorun registry and launch the autorun file.

It also works as a 2577 autorun file.

Commands supported:

LOCK: Enable
LOCK: Disable
HIDE: Enable
HIDE: Disable
RST: Reset
EXEC: application /args - Grabs custom application name and args
SHOW: custom.bmp - Grabs the location of the image to display
http://img216.imageshack.us/img216/1849/cezoom3ux1.bmp http://img146.imageshack.us/img146/7923/cezoom5gn7.bmp http://img113.imageshack.us/img113/3286/cezoom4gx8.bmp http://img176.imageshack.us/img176/987/cezoom6ol6.bmp

Once I have some feedback and have made some changes, ill release to the community.

Sleuth - Lets get on msn and we can walk through these apps futures and ensure its inline with the convos you are having with the chefs etc.


This is *AMAZING*. As is, it can completely replace Tier Autoinstall. If you could you add the ability to save registry keys and restore them like settings saviour, it'd be the ONLY thing I'd use!

Sleuth255
14th February 2008, 05:50 AM
Hey can you update the main post to include WizeMan's new SNE rom as UC compliant?

http://forum.xda-developers.com/showthread.php?t=364641

Got it, ROM added to list :)

Sleuth255
14th February 2008, 05:59 AM
This is *AMAZING*. As is, it can completely replace Tier Autoinstall. If you could you add the ability to save registry keys and restore them like settings saviour, it'd be the ONLY thing I'd use!

Building provisioning XML is the next thing as it can do what you ask. Right now it's hand coded and a bit laborious. Once it's working though, you can just forget about it. I was thinking along the lines of auto provisioning for common settings like power/backlight, notifications, sounds etc. For example, just check "Save backlight & Power settings" and the registry would be queried and registry CSP commands created in the xml file. In this manner, you could also specify a regkey to save and it would generate Registry CSPs for the entire key/values.

gthing
14th February 2008, 09:44 AM
Right, yet another application from DoeDoe

This one I am looking for some feedback before I launch it to the community.

Functionality:

Looks at \Storage Card\Cabs\ if a card is present or \Cabs\ if there is no card installed. Looks in the dir and lists all *.cab, *.cpf & *.xml files. Provides the ability to order the items and also add additional commands to the list. Once list is finalised, click save and the confix.txt will be written to the cabs location. There is also the ability to edit the autorun registry and launch the autorun file.

It also works as a 2577 autorun file.

Commands supported:


LOCK: Enable
LOCK: Disable
HIDE: Enable
HIDE: Disable
RST: Reset
EXEC: application /args - Grabs custom application name and args
SHOW: custom.bmp - Grabs the location of the image to display



Once I have some feedback and have made some changes, ill release to the community.

Sleuth - Lets get on msn and we can walk through these apps futures and ensure its inline with the convos you are having with the chefs etc.


I want!

Who do I have to do to get my hands on that?

If it could make building the .xml file easier as well, than it would be an absolute godsend.

illi
14th February 2008, 09:49 AM
Hi
Fantasic development there.

I am using HTC Tornado WM6 Home-brewed ROM.
The attached file is used by WM5 to auto-install software after a hard reset. It still works on my WM6. This file when copied to SD Card must be renamed 2577, placed on the root directory of the SD Card and inserted into the device prior to either a hard or soft reset. It will then autorun and installs accordingly.

I thought I wanted you guys to have a look at this file; may help with further development.

Thanks

stan23
14th February 2008, 07:32 PM
If there are any more commands which need supporting please let me know :)

Feedback welcomed.
Do the provisioning XML files need to end with .xml or .provxml (Schap's Advanced Config requires the latter)?
Your tool seems to recognize only .xml files.

Moving up and down is a bit tricky, because the selected lines grow and that seems to prevent moving.



Btw, RegDiff (http://hp.vector.co.jp/authors/VA000007/regdiff.htm) is great to generate .reg files out of two exported registry dumps (from registry workshop (http://www.torchsoft.com/en/rw_information.html)) or from WinCE Cab Manager (http://www.ocpsoftware.com/products.php?nm=cecabmgr) (thanks pof).
Then reg-2-XML (http://forum.xda-developers.com/showpost.php?p=1902590&postcount=35) can convert them to provXML files (thanks dan1967 and bepe).

Now I have done most of my UC preparation but cannot find an UC compliant Hermes ROM :(

Sleuth255
14th February 2008, 10:16 PM
provxml & xml differ only by the file extension btw. They are both CSP based xml provisioning docs. hth!

doedoe
15th February 2008, 12:56 AM
Building provisioning XML is the next thing as it can do what you ask. Right now it's hand coded and a bit laborious. Once it's working though, you can just forget about it. I was thinking along the lines of auto provisioning for common settings like power/backlight, notifications, sounds etc. For example, just check "Save backlight & Power settings" and the registry would be queried and registry CSP commands created in the xml file. In this manner, you could also specify a regkey to save and it would generate Registry CSPs for the entire key/values.

This is a simple task, and can be ready in a few days.

Can you please gather a list of the standard functions you wanna back up?

I wanna keep this quite device agnostic as possible.

Noonski
15th February 2008, 01:04 AM
Do the provisioning XML files need to end with .xml or .provxml (Schap's Advanced Config requires the latter)?
Your tool seems to recognize only .xml files.

Moving up and down is a bit tricky, because the selected lines grow and that seems to prevent moving.



Btw, RegDiff (http://hp.vector.co.jp/authors/VA000007/regdiff.htm) is great to generate .reg files out of two exported registry dumps (from registry workshop (http://www.torchsoft.com/en/rw_information.html)) or from WinCE Cab Manager (http://www.ocpsoftware.com/products.php?nm=cecabmgr) (thanks pof).
Then reg-2-XML (http://forum.xda-developers.com/showpost.php?p=1902590&postcount=35) can convert them to provXML files (thanks dan1967 and bepe).

Now I have done most of my UC preparation but cannot find an UC compliant Hermes ROM :(

Hey tnx for the Regdiif app reference WinCeCab Manager i couldn't live without it.

Sleuth255
15th February 2008, 04:01 AM
@stan23: I've gotta test sdconfig on hermes so I'll release that one. But it'll be based on 3.1Sleuth for hermes which is probably old as dirt by now. So, I'll also shoot a PM to the Hermes chef du jour if you let me know who that is..

remlle
15th February 2008, 04:37 AM
I Dont think I ever saw an answer to if there was a way to copy a whole directory.
is there? IDe like to know cuz I have 1 folder I need to copy and it has over 45 files in it.

ronald_di
15th February 2008, 05:08 AM
hi!

I keep on getting "unable to open registry key" error message in my xda zinc everytime i soft reset.

This happened after my unit suddenly crashed while in standby mode tht i had to do a soft reset.

One of my problems is the applications I added seemed to have been converted into resident applications that they don't appear now in the "programs in memory" in the remove programs. Thus, I cant uninstall them anymore to free up memory.

Hard reset does not do anything about this problem.

What should I do.

Grumps
15th February 2008, 12:16 PM
hi!

I keep on getting "unable to open registry key" error message in my xda zinc everytime i soft reset.

This happened after my unit suddenly crashed while in standby mode tht i had to do a soft reset.

One of my problems is the applications I added seemed to have been converted into resident applications that they don't appear now in the "programs in memory" in the remove programs. Thus, I cant uninstall them anymore to free up memory.

Hard reset does not do anything about this problem.

What should I do.

Try and install the app again and then uninstall

Grumps
15th February 2008, 12:21 PM
http://www.imagehosting.com/out.php/i1563391_Untitledpicture.png

How about this for a first attempt? (Actually on release v0.3 now :))

Select the required files and order them accordingly before creating the SDConfig.txt file :)

If there are any more commands which need supporting please let me know :)

Feedback welcomed.

Doesnt pick up all my cabs for some reason. I have 32 cabs in c:\cabs and it only shows 11. I tried taking the read only attribute off but still doesnt work. Any ideas?

stan23
15th February 2008, 12:41 PM
I've gotta test sdconfig on hermes so I'll release that one. But it'll be based on 3.1Sleuth for hermes which is probably old as dirt by now. So, I'll also shoot a PM to the Hermes chef du jour if you let me know who that is..
CRCinAU wants to make his next WM6.1 UC compliant, and I've already written in Schap's 4.31.Hermes thread he should consider UC compliance :)

I have to pass 6 more exams until the end of February, so I should flash less and learn more for university ;)

ASerg
15th February 2008, 01:15 PM
What is UC? It is a feature contained in UC compliant ROMs. Here's the current list of UC compliant ROMs:
.....
Good idea! Thanks! I Use now in the ROM: HERALD.ASerg.WM6.1.WWE (http://forum.xda-developers.com/showthread.php?t=366845)

_Alex_
15th February 2008, 07:51 PM
This is a simple task, and can be ready in a few days.

Can you please gather a list of the standard functions you wanna back up?

I wanna keep this quite device agnostic as possible.


Would it be possible to support XML files to select a list of standard reg keys for backup? Take a look at this app (http://forum.xda-developers.com/showthread.php?t=308100) which has since stopped development. Definitely device agnostic, but very application specific :D

Sleuth255
15th February 2008, 08:48 PM
Good idea! Thanks! I Use now in the ROM: HERALD.ASerg.WM6.1.WWE (http://forum.xda-developers.com/showthread.php?t=366845)

Added to the list! :)

btw: just a suggestion but looking at the thread, it was hard to tell. Flashing Junkies might not know your ROMs are UC capable. I always put "This ROM is UC capable" followed by a link to this thread.

doedoe
16th February 2008, 07:36 PM
Doesnt pick up all my cabs for some reason. I have 32 cabs in c:\cabs and it only shows 11. I tried taking the read only attribute off but still doesnt work. Any ideas?

This is a bug with my code, the app only looks at one case (upper or lower) - Fixed in the next release. ;)

Blitzed26
17th February 2008, 12:44 AM
For the life of me I can't get this to work. For some reason it keeps giving me the error that \storage card\cabs\"MyFileName.cab" cannot be found. They are all there though??

Sleuth255
17th February 2008, 01:01 AM
don't put the cab name in double quotes would be my guess.

Blitzed26
17th February 2008, 01:08 AM
don't put the cab name in double quotes would be my guess.


Actually I didn't do that in the actual sdconfig.txt file. It reads:

\Storage Card\Cabs\filename.cab

The only think i don't have is the lock, show, or hide commands. (I am just not sure what these are for.)

Thanks for the help in advance!

Noonski
17th February 2008, 02:21 AM
I Dont think I ever saw an answer to if there was a way to copy a whole directory.
is there? IDe like to know cuz I have 1 folder I need to copy and it has over 45 files in it.


I think so

http://forum.xda-developers.com/showpost.php?p=1911082&postcount=43

I have only tested it with files but it seams you have to use the right syntax.

So no backlsahs behind the end directory but the original needs a backslash.

Happy Testing.

Moe5508
17th February 2008, 06:20 AM
There is no way to select \Storage Card\ for app installation. All cabs are installed to your device memory
Your storage card must be named "Storage Card". This is becasue Autorun is hard coded to look for a file called \Storage Card\SDConfig.exe.



...if you use WinCE Cab Manager you can pre-set your cabs to install to \Storage Card\Program Files\... instead of device memory...
It takes time to customize but it allows you to specify the location of shortcuts as well, eg to install to sub-folders in \Program menu especially for those who like grouping their shortcuts into sub-folders like \Apps, \Multimedia, \Connectivity...etc, and you only have to do it once...EVER...

If the sub-folder does not exist yet on your device, the cab installation procedure will create it for you...

Moe5508
17th February 2008, 06:24 AM
The only think i don't have is the lock, show, or hide commands. (I am just not sure what these are for.)

You need those commands...they basically lock/unlock your device screen into/out of SDConfig mode and show/hide the user input prompts...

Please see here...LOCK, SHOW, HIDE COMMANDS (http://forum.xda-developers.com/showpost.php?p=1900610&postcount=19)

neptune
17th February 2008, 07:09 AM
Right, yet another application from DoeDoe

This one I am looking for some feedback before I launch it to the community.

Functionality:

Looks at \Storage Card\Cabs\ if a card is present or \Cabs\ if there is no card installed. Looks in the dir and lists all *.cab, *.cpf & *.xml files. Provides the ability to order the items and also add additional commands to the list. Once list is finalised, click save and the confix.txt will be written to the cabs location. There is also the ability to edit the autorun registry and launch the autorun file.

It also works as a 2577 autorun file.

Commands supported:


LOCK: Enable
LOCK: Disable
HIDE: Enable
HIDE: Disable
RST: Reset
EXEC: application /args - Grabs custom application name and args
SHOW: custom.bmp - Grabs the location of the image to display


http://img216.imageshack.us/img216/1849/cezoom3ux1.bmp http://img146.imageshack.us/img146/7923/cezoom5gn7.bmp http://img113.imageshack.us/img113/3286/cezoom4gx8.bmp http://img176.imageshack.us/img176/987/cezoom6ol6.bmp

Once I have some feedback and have made some changes, ill release to the community.

Sleuth - Lets get on msn and we can walk through these apps futures and ensure its inline with the convos you are having with the chefs etc.

Great work you guys....really looking forward to this on device version also.

anichillus
17th February 2008, 04:54 PM
sorry. AutoRun, by HTC design, cannot install apps to your storage card.

First, big THANKS !

Second, sorry i didn't had time to read all the thread but i just wanted to say this :

You can build the cab and make it automatically install to Storage Card. That way you don't pressure the AutoRun and you still have free memory on your device.

It's pretty easy. I use WinCE Cab Manager. Just open your CAB file and re-select it's destination for the install.
Cheers !

Blitzed26
17th February 2008, 07:02 PM
You need those commands...they basically lock/unlock your device screen into/out of SDConfig mode and show/hide the user input prompts...

Please see here...LOCK, SHOW, HIDE COMMANDS (http://forum.xda-developers.com/showpost.php?p=1900610&postcount=19)

Thanks i understand how they work now. For some reason though I keep getting Abort: File not found.

Is there a chance that the rom isn't loading the storage card driver prior to running this? Since SDconfig.txt is on the storage card I am assuming the answer is no. The line in my .txt file reads:

CAB: \Storage Card\Cabs\livesearch.cab

Sorry for all the questions, but I can't seem to get this to work.

Thanks,

Sleuth255
17th February 2008, 07:07 PM
the specific message "Abort: <cab filename> not found" comes from SDAutorun.exe when it parses SDConfig.txt for the purpose of setting RO attributes on CAB: files.

This means a lot:

1. SDConfig.txt was found and read on \Storage Card, so the \Storage Card path itself is valid.
2. SDAutorun wasn't able to locate the file referenced in the CAB: statement.

Sleuth255
17th February 2008, 07:09 PM
First, big THANKS !

Second, sorry i didn't had time to read all the thread but i just wanted to say this :

You can build the cab and make it automatically install to Storage Card. That way you don't pressure the AutoRun and you still have free memory on your device.

It's pretty easy. I use WinCE Cab Manager. Just open your CAB file and re-select it's destination for the install.
Cheers !

I just found that out here myself. Post modified.

Blitzed26
17th February 2008, 07:14 PM
the specific message "Abort: <cab filename> not found" comes from SDAutorun.exe when it parses SDConfig.txt for the purpose of setting RO attributes on CAB: files.

This means a lot:

1. SDConfig.txt was found and read on \Storage Card, so the \Storage Card path itself is valid.
2. SDAutorun wasn't able to locate the file referenced in the CAB: statement.

Ok, so for some reason \Storage Card\Cabs\filename.cab is missing something than? I am using this on the mogul, does it need anything in addition to the the following line:

CAB: \Storage Card\Cabs\Livesearch.cab (and livesearch.cab is in the \storage card\cab folder?)

Sleuth255
17th February 2008, 07:17 PM
try putting the cab into the root directory (where SDConfig.txt is) then use:
CAB: \Storage Card\Livesearch.cab

Work?

edit: not sure if this is a typo or not from your last post:


CAB: \Storage Card\Cabs\Livesearch.cab (and livesearch.cab is in the \storage card\cab folder?)


but if it isn't, your error is right there. ;)

Blitzed26
17th February 2008, 07:28 PM
try putting the cab into the root directory (where SDConfig.txt is) then use:
CAB: \Storage Card\Livesearch.cab

Work?

Also: make sure sdconfig.txt itself is not a unicode file.

I just realized that I had a typo in 1 of the cab files, i didn't realize that it would cause all of the cabs to come up not found. Anyway, sorry for wasting everyones time.

Good News, its working!

Blitzed26
17th February 2008, 07:29 PM
try putting the cab into the root directory (where SDConfig.txt is) then use:
CAB: \Storage Card\Livesearch.cab

Work?

edit: not sure if this is a typo or not from your last post:



but if it isn't, your error is right there. ;)

typo, unfortunately.

remlle
18th February 2008, 12:17 AM
I think so

http://forum.xda-developers.com/showpost.php?p=1911082&postcount=43

I have only tested it with files but it seams you have to use the right syntax.

So no backlsahs behind the end directory but the original needs a backslash.

Happy Testing.

will it create the new directory?

Sleuth255
18th February 2008, 04:42 AM
I just realized that I had a typo in 1 of the cab files, i didn't realize that it would cause all of the cabs to come up not found. Anyway, sorry for wasting everyones time.

Good News, its working!

SDAutoRun won't permit autorun to execute if all the CAB: statements in SDConfig.txt aren't correct. Glad you found the problem!

Noonski
18th February 2008, 12:28 PM
Maybe this is something handy for new UC users.

It's hardcoded to install to SD\Cabs\ ands root.
And contains a blank pim.vol (to replace with your own)
And one Sample Cab (touchpal)

stan23
18th February 2008, 03:57 PM
@Noonski:
what are the certificates for?

epimazzo
18th February 2008, 06:51 PM
Sleuth,

that's what exactly happens to me. I'll check and changes cabs to the root and see if works.

Thanks,:cool:


SDAutoRun won't permit autorun to execute if all the CAB: statements in SDConfig.txt aren't correct. Glad you found the problem!

epimazzo
18th February 2008, 08:36 PM
I'm without luck for sure!:(
Still no clues why I'm getting ABort file not found even moving cabs to the SD root. There's no type error in SDConfig.txt that could be causing this also. All checked.
It seems that SDAutoRun really find SDconfig but with no explanations, it insist to tell that it doesn't find the cab! :mad:

I'm starting thiking that Wizard devices don't like that!:o

Sleuth, if you still have some tips, I'd appreciate your shares!:cool:

Thanks

Noonski
18th February 2008, 09:19 PM
@Noonski:
what are the certificates for?


For those New Flashers that forget to install them before JumpSPL.

Blitzed26
19th February 2008, 01:41 AM
I'm without luck for sure!:(
Still no clues why I'm getting ABort file not found even moving cabs to the SD root. There's no type error in SDConfig.txt that could be causing this also. All checked.
It seems that SDAutoRun really find SDconfig but with no explanations, it insist to tell that it doesn't find the cab! :mad:

I'm starting thiking that Wizard devices don't like that!:o

Sleuth, if you still have some tips, I'd appreciate your shares!:cool:

Thanks

Check your PM, I just clarified my previous post on how I fixed my problem. Let me know if this solves your problem.

Sleuth255
19th February 2008, 02:19 AM
Note: spaces/tabs after the filename in the CAB: line will cause SDAutoRun to not find the referenced file. Check yours with notepad. NewLine characters should be immediately after the "b" in "cab" or the filename lookup in SDAutoRun (and maybe autorun too) will fail.

epimazzo
19th February 2008, 08:49 PM
Yep...got that! It's all up here now...I only noticed an error message stating that PIM.VOL was not found as I posted in the Chief's thread.:rolleyes:

Note: spaces/tabs after the filename in the CAB: line will cause SDAutoRun to not find the referenced file. Check yours with notepad. NewLine characters should be immediately after the "b" in "cab" or the filename lookup in SDAutoRun (and maybe autorun too) will fail.

jeffreycentex
20th February 2008, 06:57 AM
Here is a provisioning question:

How do you do a reg file like this:

[HKEY_LOCAL_MACHINE\Software\Sling Media\SlingPlayer\Player\[1]]
"Last valid addr"=dword:000000

I tried to do this by hand and with the registry conversion tool. I have problems with the [1] section. The conversion tool drops the "[" and "]" around the 1. I try importing the .provxml command with and without the []'s, but in the case without - I get an import error, and in the case with, I don't successfully get the reg entries in like Slingplayer wants.

Any suggestions?

This and finding out where PhoneWeaver stores the registration data is all I have left to have a completely customized phone after reinstall.

Also a few hints for some of you out there:

Phoneweaver stores all of the preferences except the registration in the My Documents\SBSH directory. You can replace this file and get all of your settings saved.
Mobibook preferences are saved in a file named "MBP_global_configuration.mbp" located in the \Windows directory.
Using CABWIZ is easier than trying to figure out FileOperations provisioning.

stan23
20th February 2008, 08:53 AM
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKLM\Software\test\[1]">
<parm name="myName" value="myNEWValue" datatype="string"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

works fine in RapiConfig (http://forum.xda-developers.com/attachment.php?attachmentid=37765&d=1177391284)
What syntax did you try?

jeffreycentex
20th February 2008, 03:08 PM
Exactly that... I got a syntax error due to the []'s. Without them, it inserted into the registry fine (just the wrong location).

kwickone
20th February 2008, 05:30 PM
http://www.imagehosting.com/out.php/i1563391_Untitledpicture.png

How about this for a first attempt? (Actually on release v0.3 now :))

Select the required files and order them accordingly before creating the SDConfig.txt file :)

If there are any more commands which need supporting please let me know :)

Feedback welcomed.

Hey doedoe, very cool!!!!!

I am just starting to play with it now. You have probably heard this already (but i did not find with search), but the UI specifically looks for a lower case .cab file. I had some with upper case .CAB and it did not see those.

Now I will go back to playing and see if I can get it to work.

Thanks again.

kwickone
20th February 2008, 06:43 PM
Anyone have any idea what is going wrong? I am getting the: "Abort: File Not Found" error on every single entry.

I have a Tilt, using Dutty's new 6.1 that is now UC Compliant...and yes, my SD card is called Storage Card.

Here is my SDConfig.txt file contents:

LOCK: Enabled
CAB: \Storage Card\Cabs\Tilt_keyboard_fix.cab
CAB: \Storage Card\Cabs\SOTI_WM5_ARM_601P.cab
CAB: \Storage Card\Cabs\WkTaskL_1173c.cab
CAB: \Storage Card\Cabs\Vibra (Switch) 1.32.cab
CAB: \Storage Card\Cabs\BatteryStatusExt.1.05.build_0272.cab
CAB: \Storage Card\Cabs\CorePlayer.1.1.3.cab
CAB: \Storage Card\Cabs\PCMKeyboardEN-0.13.cab
CAB: \Storage Card\Cabs\PCMKeyboard_Touch-Skin_Layout_Collection.cab
CAB: \Storage Card\Cabs\S2U2-0.99p-WM5.cab
CAB: \Storage Card\Cabs\S2V-0.32-WM5.cab
CAB: \Storage Card\Cabs\S2P-0.10-WM5.cab
CAB: \Storage Card\Cabs\TTN.cab
HIDE: Enabled
CAB: \Storage Card\Cabs\cardexport-wm5.ARMV4.cab
HIDE: Disabled
HIDE: Enabled
CAB: \Storage Card\Cabs\pTravelAlarm_273_WM2005.STRONGARM.cab
HIDE: Disabled
LOCK: Disabled
RST: Reset

Thanks all.

Noonski
20th February 2008, 08:17 PM
Anyone have any idea what is going wrong? I am getting the: "Abort: File Not Found" error on every single entry.

I have a Tilt, using Dutty's new 6.1 that is now UC Compliant...and yes, my SD card is called Storage Card.

Here is my SDConfig.txt file contents:

LOCK: Enabled
CAB: \Storage Card\Cabs\Tilt_keyboard_fix.cab<<No Tab No Space, Good!
CAB: \Storage Card\Cabs\SOTI_WM5_ARM_601P.cab <<Tab Bad
CAB: \Storage Card\Cabs\WkTaskL_1173c.cab <<Tab
CAB: \Storage Card\Cabs\Vibra (Switch) 1.32.cab <<Tab
CAB: \Storage Card\Cabs\BatteryStatusExt.1.05.build_0272.cab <<Etc
CAB: \Storage Card\Cabs\CorePlayer.1.1.3.cab |
CAB: \Storage Card\Cabs\PCMKeyboardEN-0.13.cab |
CAB: \Storage Card\Cabs\PCMKeyboard_Touch-Skin_Layout_Collection.cab |
CAB: \Storage Card\Cabs\S2U2-0.99p-WM5.cab |
CAB: \Storage Card\Cabs\S2V-0.32-WM5.cab |
CAB: \Storage Card\Cabs\S2P-0.10-WM5.cab |
CAB: \Storage Card\Cabs\TTN.cab |
HIDE: Enabled |
CAB: \Storage Card\Cabs\cardexport-wm5.ARMV4.cab |
HIDE: Disabled
HIDE: Enabled
CAB: \Storage Card\Cabs\pTravelAlarm_273_WM2005.STRONGARM.cab
HIDE: Disabled |
LOCK: Disabled |
RST: Reset

Thanks all.

Sleuth has update the first post about spaces and tabs after the .cab etc

kwickone
20th February 2008, 08:46 PM
EDIT: found my issue. Thanks Noonski!

-haze-
20th February 2008, 09:01 PM
Sleuth,

I am trying this with dutty's new 6.1 rom and I'm having trouble getting the autorun.exe to run properly because I have TomTom installed on my memory card. Every time I pop the memory card in, TomTom opens up automatically.

How can I get around this?

Thanks.

Also, you can update the UC roms with dutty's, here's the link:

http://forum.xda-developers.com/showthread.php?t=369505

Note, it's Build 5.219716

kwickone
20th February 2008, 09:22 PM
Sleuth,

I am trying this with dutty's new 6.1 rom and I'm having trouble getting the autorun.exe to run properly because I have TomTom installed on my memory card. Every time I pop the memory card in, TomTom opens up automatically.

How can I get around this?

Thanks.

Also, you can update the UC roms with dutty's, here's the link:

http://forum.xda-developers.com/showthread.php?t=369505

Note, it's Build 5.219716

I had this happen as well. I had a folder on my card called "2577". That is where TomTom autoruns from. What I did was copy the TTN.cab file from there and put it in my "Cabs" folder on the Storage Card. Then I deleted the rest of the files from that Dir. No more issues.

Hope that Helps.

-haze-
20th February 2008, 09:44 PM
I had this happen as well. I had a folder on my card called "2577". That is where TomTom autoruns from. What I did was copy the TTN.cab file from there and put it in my "Cabs" folder on the Storage Card. Then I deleted the rest of the files from that Dir. No more issues.

Hope that Helps.

Thanks, but how do I "force" it to do the correct Autorun.exe so it will load my cabs?

Next time I flash, I will load the ttn.cab into my cab list. I currently have a "naked" rom and my SDConfig.txt is getting bored. :D

-haze-
20th February 2008, 10:09 PM
Well, I can't get this working. I removed the TomTom files and did a hard reset and I still have nothing happening over here. I even tried to go into the windows folder and run the SDautorun.exe file to see if that did anything and nothing happened.

Are you supposed to have the SD card in there when you flash or do you put it in after?

SysWiz
21st February 2008, 06:16 AM
You might want to add No2Chem's ROMs as being UC compatible. Starting with build 5047 they can do UC.

-haze-
21st February 2008, 02:47 PM
OK, I deleted the TomTom files and re-flashed and it worked.

I also realized that you can't just pop the SD card in and have it run automatically. It looks like it only occurs after the screen align.

Is this correct?

-haze-
21st February 2008, 03:37 PM
...if you use WinCE Cab Manager you can pre-set your cabs to install to \Storage Card\Program Files\... instead of device memory...
It takes time to customize but it allows you to specify the location of shortcuts as well, eg to install to sub-folders in \Program menu especially for those who like grouping their shortcuts into sub-folders like \Apps, \Multimedia, \Connectivity...etc, and you only have to do it once...EVER...

If the sub-folder does not exist yet on your device, the cab installation procedure will create it for you...

Thanks Moe, I plan on doing this for all my cabs. For the most part, I'd say I install 80% of my cabs to the storage card. Would that be the correct syntax to edit in Cab Manager? "\Storage Card\Program Files\"

Thanks again,

-HAZE-

agarcia18
21st February 2008, 08:13 PM
Hi, and thanks everebody that has contribuited to this excellente UC...

I am trying it with last Duttys ROM UC, but I have problems. I have been able to install correctly a lot of cabs that do not need User Input; but when trying those others and the HIDE: commands, something strange happens. My screen is unlock, but the customization seems to not hide: I can open other progams, but the customization is always in the front and I can't go to the other programs interface (Incluiding the installation input of the cab) without closing previosuly the customization. I have tried several times, with no luck. My sintax is this (this is the short version I've tried to find the problem out):

LOCK: Enabled
CAB: \Storage Card\Cabs\Add-Venture_regged.cab
LOCK: Disabled
HIDE: Enabled
CAB: \Storage Card\Cabs\1-Calc3_24_reg.cab
HIDE: Disabled
RST: Reset

Any idea what I am doing wrong?:confused:
Thanks in advance.

BTW: I started using DoeDoe's SDConfig Builder v.0.3 (Thanks DoeDoe) but it had several problems for me:
a) The program doesn't recognise all the cabs (only some of them, and I do not know why) in the directory you choose to browse.
b) Once you have browsed a Directory to include the cabs, if you try to choose another directory (for example, the directory in which you have stored the cabs with user inputs requirements), it does not recognize any cab.
c) The SDconfig.txt that the program builds includes spaces and tabs after the cab name, so it doesn't work correctly: you have to remove all those spaces to avoid the "file not found" problem, as Sleuth detected already.
I hope this feedback could help DoeDoe to improve the utility.:rolleyes:

Noonski
21st February 2008, 10:02 PM
Maybe this sounds weird but it's worth the try.

Make the first cab install euh ALT-Tab and then alt tab to install screen.....

Nah isn't going to work.

Can someone post a cab with User input so i can test with this hide command.

agarcia18
21st February 2008, 10:34 PM
Maybe this sounds weird but it's worth the try.

Make the first cab install euh ALT-Tab and then alt tab to install screen.....

Nah isn't going to work.

Can someone post a cab with User input so i can test with this hide command.

Thanks Noonski for the tip, but it won't work: I have installed quickmenu, and while the customization I have access to see all the programs running (the installation program waiting for the input, the customization, and others if I have launched them), but I can not get to the screen of any of them, because the screen of the customization doesnt hide...:mad:

I attached the cab that requires User Input for your testing.
Thanks again for your help.

jarek91
22nd February 2008, 12:27 AM
Great utility so far...and for anyone having headaches with the Provisioning XML, I found that this (http://www.microsoft.com/downloads/details.aspx?familyid=72D6AA49-787D-4118-BA5F-4F30FE913628&displaylang=en) editor from Microsoft is great for making sure you have everything formatted correctly. This let me easily see that I had a bunch of registry entries that weren't actually under the registry characteristic tag (one too many /characteristic tags in the middle of the file...). It also makes it easy to "nudge" it under the tag.

futbolkeeper
22nd February 2008, 12:36 AM
I am loving the utility also! UC Rocks! If you want to edit files NotePad++ (http://filehippo.com/download_notepad/) is a great utility as well. And free!

Sleuth255
22nd February 2008, 01:20 AM
@agarcia18: I install 1-calc during UC so I know it works for kaiser. Your syntax looks correct too. Why don't you attach your actual SDConfig.txt file and I'll take a look.

Sleuth255
22nd February 2008, 01:23 AM
Great utility so far...and for anyone having headaches with the Provisioning XML, I found that this (http://www.microsoft.com/downloads/details.aspx?familyid=72D6AA49-787D-4118-BA5F-4F30FE913628&displaylang=en) editor from Microsoft is great for making sure you have everything formatted correctly. This let me easily see that I had a bunch of registry entries that weren't actually under the registry characteristic tag (one too many /characteristic tags in the middle of the file...). It also makes it easy to "nudge" it under the tag.

Nice find! Added to tools section on the first post.

agarcia18
22nd February 2008, 02:15 AM
@agarcia18: I install 1-calc during UC so I know it works for kaiser. Your syntax looks correct too. Why don't you attach your actual SDConfig.txt file and I'll take a look.

Thanks very much, Sleuth. I am attacching the last two SDConfig.txt I have tried, one short and the other extend. Everything Ok until te UC gets to the HIDE commands, with the problems I said.

Any suggestion will be highly appreciated.

agarcia18
22nd February 2008, 02:16 AM
And here the extended one.

Sleuth255
22nd February 2008, 03:34 PM
Here's mine which works. The only diff appears to be the lack of a space in the hide commands. I didn't think that mattered though :confused:

Why don't you pull the spaces & see what happens?

agarcia18
22nd February 2008, 05:03 PM
Here's mine which works. The only diff appears to be the lack of a space in the hide commands. I didn't think that mattered though :confused:

Why don't you pull the spaces & see what happens?

Hey, it works!!! I just tried without any faith in it, but it works! :confused:___:eek:___:D

So after the HIDE: commands should not be spaces... Maybe this issue is worth warning in the first post... And should be changed in the DoeDoe's utility...

Thanks a lot Sleuth, you're the chief! Now I can take a look at the provisioning xml...

Noonski
22nd February 2008, 05:07 PM
Yeah i noticed that to You beat me to the punch Sleuth.

Great utility so far...and for anyone having headaches with the Provisioning XML, I found that this (http://www.microsoft.com/downloads/details.aspx?familyid=72D6AA49-787D-4118-BA5F-4F30FE913628&displaylang=en) editor from Microsoft is great for making sure you have everything formatted correctly. This let me easily see that I had a bunch of registry entries that weren't actually under the registry characteristic tag (one too many /characteristic tags in the middle of the file...). It also makes it easy to "nudge" it under the tag.



For those fortunate to have the right tools, i would advice making a cab with the Regs instead of Provisioning file.

RGU to cab would be a better tool ;)

Funny how everything seams to matter in the commands.

Good thing people are posting.

Great Ironing Sleuth.

I'm allready promoting it to some more Cooks as it has no effect for NON SDconfig.txt users.

dcd1182
22nd February 2008, 05:31 PM
Hi Sleuth,

Thanks for this tool. My ROMs and kitchen (http://forum.xda-developers.com/showthread.php?t=371314) for the titan device are UC compatible beginning with 2.3.1. Can I be added to the list please?

fishfuzz
22nd February 2008, 07:03 PM
I have one .cab that I install back to the storage card (iGuidance), but after reading this list, I'm still not sure what the syntax would be to insure that it went there instead of the device memory.

Thanks!

bml5631
22nd February 2008, 08:23 PM
Is there a way either with the CPY command or in my .xml file to copy the contents of a folder without specifically naming each file line by line?

Thanks,

Noonski
23rd February 2008, 03:17 AM
I have one .cab that I install back to the storage card (iGuidance), but after reading this list, I'm still not sure what the syntax would be to insure that it went there instead of the device memory.

Thanks!


Paths can be hardcoded using WINCECABMANAGER.

Not using sdconfig.

Now where was that post about screen alignment.

Sleuth255
23rd February 2008, 03:20 AM
@fishfuzz: essentially you need to change the default installation to your storage card using cab manager then you can install the resulting cab with UC.

Sleuth255
23rd February 2008, 03:23 AM
Is there a way either with the CPY command or in my .xml file to copy the contents of a folder without specifically naming each file line by line?

Thanks,

There is some indication that the CPY commands can accomplish this. Go ahead and experiment! Remember to make sure that no spaces exist after the : and the \ in your CPY1 & CPY2 statements.

Sleuth255
23rd February 2008, 03:25 AM
Hi Sleuth,

Thanks for this tool. My ROMs and kitchen (http://forum.xda-developers.com/showthread.php?t=371314) for the titan device are UC compatible beginning with 2.3.1. Can I be added to the list please?

Dominus Sanctus Inductus! :)

codyppc
23rd February 2008, 05:16 AM
silly questions, but.....

1. cant a person just edit the file like a normal text file?

2. why doesn't his file below work? i have all the cabs in a folder called Cabs on the sd card. i have made them all lower case just to make sure there wasn't the case bug thing.

Help, i really want to figure this thing out.

Thanks, cody

dan1967
23rd February 2008, 07:25 AM
@fishfuzz: essentially you need to change the default installation to your storage card using cab manager then you can install the resulting cab with UC.

If one is using the same SDCard all the time, I see little sense in installing something to storage card again after a flash when you already have it there. You may need just some shortcuts or regs at the right place and edited accordingly.
There is no need for even that many times as I found out. Just look & browse for the .exe on the SD and once you launch it everything gets done. Or simply make a file cab containing all the shortcuts

As for .XML vs. CAB I am pro XML. I was using in the past one or two cabs with all the reg tweaks, but I had difficulties locating which/what inside the file (a lot of stuff in there!!). Than what I did I extracted the cab with WinZip and found a ready made provisioning file _setup.xml that just needed a little bit of cosmetics and adding some comments. Beside the (BIG) advantage of adding comments into it you can basically change the xml file anywhere & anytime, even on your ppc, while with the cab (wince made) is not that handy.

agarcia18
23rd February 2008, 12:10 PM
silly questions, but.....

1. cant a person just edit the file like a normal text file?

2. why doesn't his file below work? i have all the cabs in a folder called Cabs on the sd card. i have made them all lower case just to make sure there wasn't the case bug thing.

Help, i really want to figure this thing out.

Thanks, cody

Codyppc: I suposse you have used the DoeDoe's utility... It is not perfect yet, and it includes some space and tabs after the [name].cab files. Remove all those spaces and tabs (the lines should end with ---.cab), and I think it will work ;)
Cheers

codyppc
23rd February 2008, 02:50 PM
Codyppc: I suposse you have used the DoeDoe's utility... It is not perfect yet, and it includes some space and tabs after the [name].cab files. Remove all those spaces and tabs (the lines should end with ---.cab), and I think it will work ;)
Cheers

i think it was two things that gave me the problems...

1. the spaces after the names

2. i had "HIDE: Enabled" in stead of "HIDE:Enabled"

notice the space between the ":" and the "E"

thanks, now today i learn the SML part. lol. fun fun

cody

hakushox
24th February 2008, 03:31 AM
Anyone have any Idea why the below will not work? I have taken out all of the spaces, saved in ANSI format. Not sure what else to try. Thanks in advanced for any insight on what I might be doing wrong.

LOCK: Enabled
CAB: \Storage Card\Cabs\NoData.cab
CAB: \Storage Card\Cabs\PhotoContactsPro_ppc_v508_full.cab
CAB: \Storage Card\Cabs\Sprite.Backup6.10.cab
CAB: \Storage Card\Cabs\Tilt keyboard fix.cab
CAB: \Storage Card\Cabs\WiFiFoFum.cab
CAB: \Storage Card\Cabs\WM5torage_18.cab
CAB: \Storage Card\Cabs\wmwifirouter.cab
CAB: \Storage Card\Cabs\Resco.Keyboard_MUI.ARM.cab
LOCK: Disabled
RST: Reset

Sleuth255
24th February 2008, 04:04 AM
If you could attach your actual SDConfig.txt file I could take a look at it for you. Also, what does "will not work" mean? Are you getting file not found errors?

hakushox
24th February 2008, 04:55 AM
If you could attach your actual SDConfig.txt file I could take a look at it for you. Also, what does "will not work" mean? Are you getting file not found errors?

Yes that is the exact error that I am getting. It's driving me nuts. I have written the file by hand and also tried that sdconfig tool as well to no avil. Thanks for taking a look at this.

Sleuth255
24th February 2008, 05:00 AM
ok, write down the names of the cabs that threw the not found error (there will be a seperate dialog box for every one). SDAutoRun will not let autorun start unless all cabs are found. Now change the names of the cabs listed to remove spaces and special characters & re-run. Tilt Keyboard fix.cab looks especially suspicious because it has spaces embedded in the name.

hakushox
24th February 2008, 05:05 AM
Every single one threw out an error :), Oh my gawd hot did I miss that space, Thanks for pointing that out. Will try again now.

hakushox
24th February 2008, 05:23 AM
Ok re-ran and now it can't find WM5torage_18.cab. The file is there and matches case as well.

hakushox
24th February 2008, 05:46 AM
Thanks for the help Sleuth255 I was able to get this working by removing those 2 spaces and deleting and re-coping the WM5storage cab back to my sd card. I guess that file was corrupted.

JoelC
24th February 2008, 12:24 PM
Hi,

I've just cooked a WM6.1 ROM for Wizard and made it UC compliant. Cooked AutoRun.exe into windows and this then runs SDAutorun, also in Windows.

So far so good - it parses the SDConfig.txt file (which has no strange tabs or spaces after the lines!), doesn't run any of the XML statements, executes JFC_OwnerInfo.cab without any problems, and then always bombs out on the line that sets the theme, with an Error messagebox saying "\Storage does not exist!"

Two of the XML filenames previously had spaces in; I've removed the spaces and updated SDConfig.txt to reflect the changes. I've tried saving the SDconfig.txt file as ANSI or UTF-8 without any luck.

I really can't see what's causing these two problems... I've attached the SDConfig.txt, maybe someone has some ideas? I'm pulling my hair out and didn't have a lot to begin with!

EDIT: One of the problems is now solved... I set the .xml files on the Storage Card to read-only, that worked! The error message when installing the theme still exists, but as a temp workaround I am running the cusTSK from \Windows\config.txt...

Sleuth255
24th February 2008, 03:51 PM
Issue with Wizard cusTSK.exe: Looks like cusTSK.exe doesn't understand spaces in the path.... because it died with a message saying "\Storage does not exist". Did you try enclosing the theme in quotes? ie:

EXEC: \Storage Card\cusTSK.exe "\Storage Card\Earth_theme.tsk"

If that doesn't work, try lifting cusTSK.exe from a different device.

Also, why not combine all your XMLs into one and use comments to delineate the various sections. I'm not sure why setting RO would make any difference but it must be related somehow to the Wizard's autorun.exe :confused: SDAutoRun doesn't check files in the XML: statement.

Sleuth255
24th February 2008, 04:22 PM
Here's a quick block layout of SDAutoRun's logic for those of you trying to debug:


(Start Here)
set failure flag to false
Look for \Storage Card\SDConfig.txt
If found
{
read a line on SDConfig.txt looking for CAB: statement
if CAB: statement is found
{
attempt to set RO flag on file
if not successful
set failure flag to true
post dialog box showing the file that failed
}
go back up to read another line unless end-of-file
}
else
{ (no SDConfig.txt found)
set failure flag to true
}
(common logic)
if failure flag is true
{
create \windows\SDConfig.txt containing one "RST: Reset" line
else
copy \Storage Card\SDConfig.txt to \windows
}
set up \HKLM\comm to point to \windows\SDConfig.txt
execute \windows\AutoRun.exe
(End Here)

JoelC
24th February 2008, 06:20 PM
Thanks, I'll try a different cusTSK - although the one I'm using in Windows (which works from the Windows config.txt) is exactly the same file that, copied to \Storage Card and run from sdconfig.txt, fails...

tsperez
24th February 2008, 06:41 PM
Am I missing something here??? I tried reading all 16 pages of UC stuff so that I don't have to reconfigure my applications every time I flash a new ROM but I still don't know what I have to do. I think it takes me about 15 minutes to configure all my stuff on my phone (not counting re-syncing all my Outlook stuff that takes hours).
Or is it as simple as creating the SDConfig file on the storage card and the ROMS or Update programs do their magic?

TIA,
tsp

udK
24th February 2008, 06:42 PM
Hi Sleuth,
My ROM (http://forum.xda-developers.com/showthread.php?t=368330) (WWE) are UC compatible, can I be added to the list please?

Thanks!

ser00405
24th February 2008, 07:10 PM
newbie-question:

How can select where to install the cab file when the option to choose is given (eg. device or storage card)?

thanx!

EDIT: Sorry, just found it in post # 10... :o

sometimes one let oneself be hypnotized by a text... and just don't unstand the written....

NexVision
24th February 2008, 07:21 PM
UC compliant - http://forum.xda-developers.com/showthread.php?t=364043

juju-35
24th February 2008, 09:26 PM
Hello Sleuth and al,

I have had a TyTn II for weeks and have flashed 6 times between ROMs that look each more promising than the previous one.

But I am getting kind of tired of re-installing, reconfiguring all my device every time I flash. I usually customeixe regional settings, install programs, some as freeware cabs, some as cabs that need a key, some as exe from my PC...

Sorry if some of my quesitons are basic, I am still new here. Hopefully they are useful to other junior members as well. From what I understand UC enables me to:

- Install cabs from SD card to main memory
- Set specific registry values
- Move some files around
- Install cabs to SD if you set their defalult location prior (could you provide a pointer to tools that can enable to change the default install location?)

What I am not sure about is if I could do things like:
- Instlal programs from exe on my PC (is it easy to extract cabs)?
- Register programs with a specific key?
-Set various settings such as regional settings, HTC home formats, assign pictures to contacts (I use BBconnect and it does not sync pictures!), asign shortcuts to HTC home,...

And since you are talking of idela of tools for UC: What would be ideal for me is some program that I could launch after flashing, make my settings and customizations and that the program catches all my changes in REG and transform it into a config file for UC automatically. this way in teory I could do customization just once and for all....

Thanks

Juju

stan23
24th February 2008, 11:10 PM
Sleuth,
is there a way to invoke autorun manually?

I've just flashed CRCs PHK v12.8 WM6.1 for Hermes (http://forum.xda-developers.com/showthread.php?t=364216) and the only message was "processing SDconfig", nothing else, not even a reset.

Then I found out that a space after CAB: and RST: helps processing these commands, but XML was still not processed and the LOCK wasn't active either.

Sleuth255
24th February 2008, 11:15 PM
there's a registry value in hklm\comm you need to reset, then you can start autorun manually as long as you give it a RUN parameter.

dalvarez7
25th February 2008, 09:06 PM
Sleuth255,

Can you possibly help me? I'm trying to change my default theme. I have the *.tsk file already being copied to my \windows directory, I'm just having a hard time manipulating the registry. Do you have an example of some XML coding you've done already to accomplish this?

Thanks!

Attatched is what I've managed to work up so far..

chipsxj
25th February 2008, 10:15 PM
Update: RapiConfig might be faster. See stan23's post located here (http://forum.xda-developers.com/showpost.php?p=1899755&postcount=17). Download link is included.


Can you give a little direction on how to use this to extract the owner information? I have tried to run it but have been unable to get it to run.........or atleast it looks like it does not run.

I am guessing that I can not just find the information in the registry, then copy and paste it into the xml file,eh?

sorry for the obviously idiotic request....but I would like to learn how to do this and increase my knowledge.

EDIT: I guess it is working, I just do not know how to tell it what information to grab for me.

I ran the .bat file and it returned this information:

<characteristic type="CM_GPRSEntries" recursive="true">
- <characteristic type="My ISP GPRS">
AND
- <characteristic type="MEdia Net">
<parm

Not the owner information I need.

How can I tell when the information I want to copy has to be extracted this way?

Thanks

Sleuth255
25th February 2008, 10:49 PM
A better way might be to simply export the registry key and then use the .reg -> xml converter. I describe this technique on post 4.

Sleuth255
25th February 2008, 10:52 PM
Sleuth255,

Can you possibly help me? I'm trying to change my default theme. I have the *.tsk file already being copied to my \windows directory, I'm just having a hard time manipulating the registry. Do you have an example of some XML coding you've done already to accomplish this?

Thanks!

Attatched is what I've managed to work up so far..


there's a built in pgm that switches themes: cusTSK.exe. So try adding this line in SDConfig.txt:

EXEC: \windows\cusTSK.exe \Storage Card\<insert theme here>.tsk

dalvarez7
25th February 2008, 11:19 PM
there's a built in pgm that switches themes: cusTSK.exe. So try adding this line in SDConfig.txt:

EXEC: \windows\cusTSK.exe \Storage Card\<insert theme here>.tsk

Thank you! I'm always trying to do things the hard way :)
That's much eaiser. Learn something everyday!

dalvarez7
26th February 2008, 01:26 AM
I think cusTSK.exe is located in the ExtROM. I'm running DCD 2.3.1 ROM and I keep getting an error that It can't find cusTSK.exe. Any suggestions? I'm searching XDA but haven't found the answer. I think I might have to enable the extROM.

Sleuth255
26th February 2008, 01:34 AM
you can do that, or you can place it on your SD card and run it from there too.

sudermatt
26th February 2008, 02:04 AM
What I would really like is some more examples of the xml provisioning...I change my Programs folder quite a bit after I get everything installed...and would love to have the UC do it for me.

I see the MakeDir below...but I'm not clear on how to define the directory to create. Or, how to say, move this into there.

the way my program folder usually looks is;

Programs
-Office Mobile
--- Word
--- Excel...etc.
-Media
--- Camera
--- Audio Manager
--- etc.
-Utilities
--- Advanced Config
--- yada yada, etc.
-Programs
--- Live Search
--- GPS Tuner
--- yada yada

You get the idea....How do I create my folders:
Media
Utilities
Programs

and how do I copy or create the links of the programs. Just a couple specific examples would suffice....

Thanks, in advance,
Matt


Example Given:
<characteristic type="%CE2%\Startup" translation="install">
<characteristic type="MakeDir" />
<characteristic type="StartTimeSync.lnk" translation="install">
<characteristic type="Copy">
<parm name="Source" value="\windows\Start Menu\Programs\SP TimeSync.lnk" translation="install" />
</characteristic>
</characteristic>
</characteristic>

Sleuth255
26th February 2008, 02:51 AM
I believe the characteristic type is "Shortcut" instead of "Copy". I take apart cabs and look at _setup.xml to learn about CSP syntax. Most cabs install a shortcut in program files.

Another nice thing to have would be a list of all the %CE#% shortcuts and the folders they point to. There's around 16 :eek:

dalvarez7
26th February 2008, 03:04 AM
you can do that, or you can place it on your SD card and run it from there too.

This is going to sound dumb but I can't find cusTSK.exe. I guess I can rebuild my phone with DCD's kitchen and I think I saw a thread on how to add the ExtROM using NoChem's drivers for something.

EDIT: I got it. I just installed Sprint's Original ROM. I remembered that it changed the theme during the UC process. I figured it would be there after it was done. I just copied it to my SD card. Thanks for the help! :)

skylinegts
26th February 2008, 03:45 AM
ok... so im having some issues with this on my touch.
it installs all my cabs ok...
then it should open PPCPimBackup then once that closes should copy my the contents of my backup folder. it doesnt do either. i was getting an error saying "\Storage Card\Backup" did not exist. i deleted the space between the : and the \ in the CPY1 and CPY2 lines and that error went away. but it did not copy the backup folder. this is the contents of my SDConfig.txt file


LOCK: Enabled
CAB: \Storage Card\Cabs\ATT_MobiTV_&_XMRadio_1003_Unlimited.cab
CAB: \Storage Card\Cabs\Casino.ARM.CAB
CAB: \Storage Card\Cabs\FlashVideoBundle.CAB
CAB: \Storage Card\Cabs\freecell-1.1.ARM.CAB
CAB: \Storage Card\Cabs\GoogleMaps_compressed.CAB
CAB: \Storage Card\Cabs\HTC_BT_Quicklink.cab
CAB: \Storage Card\Cabs\netcf.core.ppc3.arm.cab
CAB: \Storage Card\Cabs\rar.ppc_arm.cab
CAB: \Storage Card\Cabs\regedit.Mrln_ARM.CAB
CAB: \Storage Card\Cabs\Schaps_AdvancedConfig_v2.1.0.0.CAB
CAB: \Storage Card\Cabs\SdkCerts.cab
CAB: \Storage Card\Cabs\TCPMP Divx & Xvid Player RC1.cab
CAB: \Storage Card\Cabs\wmTorrent2.arm.CAB
LOCK: Disabled
HIDE: Enabled
EXCH: \Storage Card\Cabs\PPCPimBackup.exe
HIDE: Disabled
LOCK: Enabled
CPY1:\Storage Card\Backup\
CPY2:\My Documents\
LOCK: Disabled
RST: Reset

dalvarez7
26th February 2008, 04:14 AM
I only used the LOCK: Enabled at the start and then LOCK: DISABLED right before the reset at the end. It appears you do this twice. I don't know if that makes a differenece.

ok... so im having some issues with this on my touch.
it installs all my cabs ok...
then it should open PPCPimBackup then once that closes should copy my the contents of my backup folder. it doesnt do either. i was getting an error saying "\Storage Card\Backup" did not exist. i deleted the space between the : and the \ in the CPY1 and CPY2 lines and that error went away. but it did not copy the backup folder. this is the contents of my SDConfig.txt file


LOCK: Enabled
CAB: \Storage Card\Cabs\ATT_MobiTV_&_XMRadio_1003_Unlimited.cab
CAB: \Storage Card\Cabs\Casino.ARM.CAB
CAB: \Storage Card\Cabs\FlashVideoBundle.CAB
CAB: \Storage Card\Cabs\freecell-1.1.ARM.CAB
CAB: \Storage Card\Cabs\GoogleMaps_compressed.CAB
CAB: \Storage Card\Cabs\HTC_BT_Quicklink.cab
CAB: \Storage Card\Cabs\netcf.core.ppc3.arm.cab
CAB: \Storage Card\Cabs\rar.ppc_arm.cab
CAB: \Storage Card\Cabs\regedit.Mrln_ARM.CAB
CAB: \Storage Card\Cabs\Schaps_AdvancedConfig_v2.1.0.0.CAB
CAB: \Storage Card\Cabs\SdkCerts.cab
CAB: \Storage Card\Cabs\TCPMP Divx & Xvid Player RC1.cab
CAB: \Storage Card\Cabs\wmTorrent2.arm.CAB
LOCK: Disabled
HIDE: Enabled
EXCH: \Storage Card\Cabs\PPCPimBackup.exe
HIDE: Disabled
LOCK: Enabled
CPY1:\Storage Card\Backup\
CPY2:\My Documents\
LOCK: Disabled
RST: Reset

skylinegts
26th February 2008, 04:58 AM
my understanding was that i had to use the LOCK command twice because the PPCPimBackup.exe file im trying to excecute required user input, therefore the device needed to be unlocked while PPCPim... is running...?

dalvarez7
26th February 2008, 05:08 AM
EDIT: Nevermind...it only changed the title bar colors...didn't change the picture. Still can not get cusTSK to actually change the Theme.

What I had to do is copy the cusTSK.exe to \Windows. Then I also had to copy the *.tsk file to the \Windows directory too to actually get it to take.

Here is an example:

CPY1:\Storage Card\cusTSK.exe
CPY2:\Windows\cusTSK.exe
CPY1:\Storage Card\<your theme name>.tsk
CPY2:\Windows\<your theme name>.tsk
EXEC:\Windows\cusTSK.exe \Windows\<your theme name>.tsk

Hi,

I've just cooked a WM6.1 ROM for Wizard and made it UC compliant. Cooked AutoRun.exe into windows and this then runs SDAutorun, also in Windows.

So far so good - it parses the SDConfig.txt file (which has no strange tabs or spaces after the lines!), doesn't run any of the XML statements, executes JFC_OwnerInfo.cab without any problems, and then always bombs out on the line that sets the theme, with an Error messagebox saying "\Storage does not exist!"

Two of the XML filenames previously had spaces in; I've removed the spaces and updated SDConfig.txt to reflect the changes. I've tried saving the SDconfig.txt file as ANSI or UTF-8 without any luck.

I really can't see what's causing these two problems... I've attached the SDConfig.txt, maybe someone has some ideas? I'm pulling my hair out and didn't have a lot to begin with!

EDIT: One of the problems is now solved... I set the .xml files on the Storage Card to read-only, that worked! The error message when installing the theme still exists, but as a temp workaround I am running the cusTSK from \Windows\config.txt...

agarcia18
26th February 2008, 01:09 PM
ok... so im having some issues with this on my touch.
it installs all my cabs ok...
then it should open PPCPimBackup then once that closes should copy my the contents of my backup folder. it doesnt do either. i was getting an error saying "\Storage Card\Backup" did not exist. i deleted the space between the : and the \ in the CPY1 and CPY2 lines and that error went away. but it did not copy the backup folder. this is the contents of my SDConfig.txt file


LOCK: Enabled
CAB: \Storage Card\Cabs\ATT_MobiTV_&_XMRadio_1003_Unlimited.cab
CAB: \Storage Card\Cabs\Casino.ARM.CAB
CAB: \Storage Card\Cabs\FlashVideoBundle.CAB
CAB: \Storage Card\Cabs\freecell-1.1.ARM.CAB
CAB: \Storage Card\Cabs\GoogleMaps_compressed.CAB
CAB: \Storage Card\Cabs\HTC_BT_Quicklink.cab
CAB: \Storage Card\Cabs\netcf.core.ppc3.arm.cab
CAB: \Storage Card\Cabs\rar.ppc_arm.cab
CAB: \Storage Card\Cabs\regedit.Mrln_ARM.CAB
CAB: \Storage Card\Cabs\Schaps_AdvancedConfig_v2.1.0.0.CAB
CAB: \Storage Card\Cabs\SdkCerts.cab
CAB: \Storage Card\Cabs\TCPMP Divx & Xvid Player RC1.cab
CAB: \Storage Card\Cabs\wmTorrent2.arm.CAB
LOCK: Disabled
HIDE: Enabled
EXCH: \Storage Card\Cabs\PPCPimBackup.exe
HIDE: Disabled
LOCK: Enabled
CPY1:\Storage Card\Backup\
CPY2:\My Documents\
LOCK: Disabled
RST: Reset


HIDE command does not admit spaces. Try writing "HIDE:Enable" instead of "HIDE: Enable". The same for the command Disable.

Sleuth255
26th February 2008, 02:52 PM
also:


EXCH: \Storage Card\Cabs\PPCPimBackup.exe


should be


EXEC: \Storage Card\Cabs\PPCPimBackup.exe

dalvarez7
26th February 2008, 03:20 PM
I'm thinking the cuTSK.exe I pulled from the Sprint 3.16 ROM is made for WM6 not 6.1. When I look at Sprint's Custom.txt file, they make a lnk to a file in the Windows directory. The link shortcut is c:\windows\cusTSK.exe \windows\sprint.tsk. It works fine on Sprints ROM and changes the theme. I've done the excat same thing with DCD 2.3.1 but it only changes the top and bottem title bars. I'm wondering if WM6.1 works differently changing the themes.

BTW...I attached a copy of cusTSK.exe I got from Sprints 3.16 ROM.

JoelC
26th February 2008, 05:17 PM
Looks like a useful tip - thanks for that!! Unfortunately, I came across an insurmountable problem with the ROM I was cooking (it wouldn't execute CAB files, at all!) So I've reflashed with a non-UC compliant ROM and can't test this out.

However, I'll happily send you the two versions of cusTSK.exe I have (both larger than the one you're using) to see if they help. They're from different ROM versions on the Wizard... and include the one that functions on the WM6.1 I'm using.

EDIT: Nevermind...it only changed the title bar colors...didn't change the picture. Still can not get cusTSK to actually change the Theme.

What I had to do is copy the cusTSK.exe to \Windows. Then I also had to copy the *.tsk file to the \Windows directory too to actually get it to take.

Here is an example:

CPY1:\Storage Card\cusTSK.exe
CPY2:\Windows\cusTSK.exe
CPY1:\Storage Card\<your theme name>.tsk
CPY2:\Windows\<your theme name>.tsk
EXEC:\Windows\cusTSK.exe \Windows\<your theme name>.tsk

chipsxj
26th February 2008, 06:42 PM
A better way might be to simply export the registry key and then use the .reg -> xml converter. I describe this technique on post 4.

Thanks, this does seem alot easier. I have been able to copy over several changes then I ran into this error:

"SPB is an unexpected token. Expecting white space. Line 1, position 60."

when I tried to copy this:
<characteristic type="HKLM\Software\Microsoft\Today\Items\"Spb Phone Suite"" translation="filesystem">
<parm name="Flags" datatype="integer" value="0"/>
<parm name="Order" datatype="integer" value="32"/>
<parm name="STVersion" datatype="integer" value="1"/>
<parm name="Selectability" datatype="integer" value="2"/>
<parm name="Options" datatype="integer" value="1"/>
<parm name="Enabled" datatype="integer" value="1"/>
<parm name="Type" datatype="integer" value="4"/>
<parm name="DLL" datatype="string" value="\Windows\SpbPhoneToday.dll"/>
</characteristic>


Happens with all of the entries with SPB.
Any ideas what is going on?

Thanks

dalvarez7
26th February 2008, 06:50 PM
That would be awesome. I really would be intrested in the on from WM6.1. Do you have them on a share?

Looks like a useful tip - thanks for that!! Unfortunately, I came across an insurmountable problem with the ROM I was cooking (it wouldn't execute CAB files, at all!) So I've reflashed with a non-UC compliant ROM and can't test this out.

However, I'll happily send you the two versions of cusTSK.exe I have (both larger than the one you're using) to see if they help. They're from different ROM versions on the Wizard... and include the one that functions on the WM6.1 I'm using.

frazmanw
26th February 2008, 07:15 PM
Looks like a useful tip - thanks for that!! Unfortunately, I came across an insurmountable problem with the ROM I was cooking (it wouldn't execute CAB files, at all!) So I've reflashed with a non-UC compliant ROM and can't test this out.

However, I'll happily send you the two versions of cusTSK.exe I have (both larger than the one you're using) to see if they help. They're from different ROM versions on the Wizard... and include the one that functions on the WM6.1 I'm using.


I'll take the files to experiment with. I was looking for a way to add selection of the theme into the sdconfig file. I also would like to have it copy some files for me, but the copy commands keep giving me errors. I think it is because one of the ones I am replacing in welcomehead.96.png which is copy protected as being in the rom. I will have to look into finding it and changing it in the kitchen. The others are replacing files that already exist. I am guessing that is the reason for the error.

elosogrande7076
26th February 2008, 09:12 PM
Can someone help me please with my sdconfig. I have tried everything after reading through all the pages. It says loading sdconfig.txt but it does nothing after that, not even a reset...any help is greatly appreciated.

Sleuth255
26th February 2008, 09:38 PM
Thanks, this does seem alot easier. I have been able to copy over several changes then I ran into this error:

"SPB is an unexpected token. Expecting white space. Line 1, position 60."

when I tried to copy this:
<characteristic type="HKLM\Software\Microsoft\Today\Items\"Spb Phone Suite"" translation="filesystem">
<parm name="Flags" datatype="integer" value="0"/>
<parm name="Order" datatype="integer" value="32"/>
<parm name="STVersion" datatype="integer" value="1"/>
<parm name="Selectability" datatype="integer" value="2"/>
<parm name="Options" datatype="integer" value="1"/>
<parm name="Enabled" datatype="integer" value="1"/>
<parm name="Type" datatype="integer" value="4"/>
<parm name="DLL" datatype="string" value="\Windows\SpbPhoneToday.dll"/>
</characteristic>


Happens with all of the entries with SPB.
Any ideas what is going on?

Thanks

It looks like the quote embedded in the SPB Phone Suite key. Does the key actually have quotes (some today items look like this)? If so replace " with &quot; (see my xml on pg 2 in the Today items for an example of this)

Sleuth255
26th February 2008, 09:42 PM
Can someone help me please with my sdconfig. I have tried everything after reading through all the pages. It says loading sdconfig.txt but it does nothing after that, not even a reset...any help is greatly appreciated.

Try the attached & see if it works.

dalvarez7
26th February 2008, 10:02 PM
I played around with WinCE Cab Manager, but can't figure out how to get it setup to install to the Storage Card.

...if you use WinCE Cab Manager you can pre-set your cabs to install to \Storage Card\Program Files\... instead of device memory...
It takes time to customize but it allows you to specify the location of shortcuts as well, eg to install to sub-folders in \Program menu especially for those who like grouping their shortcuts into sub-folders like \Apps, \Multimedia, \Connectivity...etc, and you only have to do it once...EVER...

If the sub-folder does not exist yet on your device, the cab installation procedure will create it for you...

skylinegts
26th February 2008, 11:52 PM
any word on CPY1 and CPY2 copying over the contents of a folder instead of just files?

Noonski
27th February 2008, 12:21 AM
any word on CPY1 and CPY2 copying over the contents of a folder instead of just files?

Still haven't tested it but there was something about one of the s]copy commands line having a slash\

at the end and the other copy to not have that slash at the end but can't remember of the head.

as for WINCECABmanager.

Rightclick on file >> Properties >> Location >> Make folder structure for Storage Card etc\\

Then Cab Properties and do the same.

Oh and check the option "Hard Coded Path"

As for theme install.
It sorta worked half.

It copied the theme into Windows folder then ran custsk.exe from windows folder but it did not take over backdrop.

Tomorow i'll test with also copying/overwriting the cooked default backdrop.

So half confirm on ELF 6.1 rom

Make that a full confirm

LOCK:Enabled
CAB: \Storage Card\Cabs\TouchPal.CAB
CPY1:\Storage Card\Cabs\Bubbles.tsk
CPY2:\Windows\Bubbles.tsk
CPY1:\Storage Card\Cabs\PIM.VOL
CPY2:\PIM.VOL
EXEC:\Windows\cusTSK.exe \Windows\Bubbles.tsk
LOCK:Disabled
RST: Reset

It was related to the them i used before.

elosogrande7076
27th February 2008, 04:24 AM
Try the attached & see if it woorks.

I tried it and it worked.....thanks a lot....quick question....the only thing that is left for me to do is to figure out how to preconfigure my emails. I have bout 4 different accounts (mostly gmail). Is there a way to do that...i thought that rapidconfig think would work but im not sure how to use it, i cant get it to work on my pc or ppc....any help is greatly appreciated

SysWiz
27th February 2008, 06:25 AM
I played around with WinCE Cab Manager, but can't
figure out how to get it setup to install to the Storage Card.

I can't either. It's probably something obvious, though I cannot find it. Can anyone shed some light on how to change the destination to Storage Card? I don't see it in the "tree".

Noonski
27th February 2008, 08:03 AM
I just did two posts above yours.

fredamn76
27th February 2008, 08:20 AM
Hi i'm using Dutty's Official WM6.1 Releases for Kaiser and have trouble with UC. the SDConfig.txt doesent seem to load. I attached my SDConfig:

A couple of the cabs requiers reboots do i need other commands then?

Sleuth255
27th February 2008, 03:22 PM
@fredman76: The answers to the two SDConfig.txt problems you have are on post 1 under "Important facts to remember". In fact, I even highlight one of them in red for you. :rolleyes:.

Cabs that require a reboot are not good candidates for UC btw.

SysWiz
27th February 2008, 05:32 PM
I just did two posts above yours.

Noonski, that's what I get for not refreshing the page before asking a question.

blankd3ckskat3r
28th February 2008, 03:17 AM
anyway to make it look in the windows directory instead of the root of the sd card?

elosogrande7076
28th February 2008, 08:57 AM
Slueth....first thanks for all ur help and great ideas....i was finally able to follow ur steps and get the setup for my email via a _setup.xml What im now wondering is if i can have more then one email setup this way (or a diffent way is ok also) I tried to combine more then one set of "email2" statements in my xml file but it didnt work, and when i tried to make 2 seprate cabs, they both work but the second one overrode the first settings....any ideas, i greatly appreciate it.

stan23
28th February 2008, 10:24 AM
It is possible to create more than one email account, look here:
msdn: Provisioning Two Accounts Example (http://msdn2.microsoft.com/en-us/library/bb737531.aspx)

you can get GUIDs from GuidGen.com (http://www.guidgen.com) :)

Sleuth255
28th February 2008, 03:24 PM
Slueth....first thanks for all ur help and great ideas....i was finally able to follow ur steps and get the setup for my email via a _setup.xml What im now wondering is if i can have more then one email setup this way (or a diffent way is ok also) I tried to combine more then one set of "email2" statements in my xml file but it didnt work, and when i tried to make 2 seprate cabs, they both work but the second one overrode the first settings....any ideas, i greatly appreciate it.

Post your xml & I'll add it to the top posts. I'm sure others would like to learn how to autoconfigure email accounts too :)

chipsxj
28th February 2008, 03:41 PM
Forgive me if I have overlooked something in my search but I can get my _set.xml to display in browser, but can not get my cab to run successfully.

I follwed the directions in the 3rd post first portion. Could it be something with not padding it out? I was not sure if I was suppose to pad out my personal information or not...since it said string.

If you do not mind can you point me in the right direction?

There are no spaces where the xxxxxxx are...I was just removing my personal info.

http://i2.photobucket.com/albums/y16/ChipsXJ/setupxml.jpg

create the cab here:

http://i2.photobucket.com/albums/y16/ChipsXJ/cabcreation.jpg

Here is the result of the cab install:

http://i2.photobucket.com/albums/y16/ChipsXJ/runcab.jpg

I am not sure if I am doing something wrong with the cab builder or not......if I execute the setup.xml it launches internet explorer and displays everything. I think that is what it is suppose to do. I create the cab and it appears to be successful. Then I drag and drop to my phone directory on the storage card. Then execute from my device and it says it was unsuccessful.

Thanks in advance.....I really like learning this stuff.....and I really do look around for it with search.....but we have all heard that before. But I mean it...I try.

Thanks again

stan23
28th February 2008, 05:47 PM
chipsxj, there are several mistakes in your XML. Could you please post the file (not just a screenshot) so we can correct it?

EDIT:
it should look like this:
<wap-provisioningdoc>
<characteristic type="Registry">
<!-- Owner Preferences -->
<characteristic type="HKCU\ControlPanel\Owner">
<parm name="Name" value="stan23" datatype="string"/>
<parm name="E-mail" value="stan23@somewhere" datatype="string"/>
<parm name="Notes" value="" datatype="string"/>
<parm name="Telephone" value="+49 170 123 456 789" datatype="string"/>
<parm name="Owner" datatype="binary" value="fsdfhleskjgblrglbwstrAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASQBethsjzukilmjn6r ehbtrnuijgbfhnjmiztrgvfbgjmkHMAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAVAB1sdhjbvlbeirvgbuergbviuewb gvhjivliusblisgbiubiubbibiuvfrnevtguedieijlgrbtrtg tbrguhbksevsnvsegwerskuABlAG4AAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="/>
</characteristic>

<!-- what's that for? -->
<characteristic type="HKCU\Software\Microsoft\Windows CE Services" recursive="true">
<parm name="DeviceFriendlyName" value="stan23" datatype="string"/>
<parm name="Flags" value="1" datatype="integer"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

Sleuth255
28th February 2008, 06:28 PM
@chipsxj: concur with stan23. Your binary values are incorrectly represented. They should be single base64 strings enclosed by double quotes. See my posts on this at the top of the thread. Your best way to get owner info into xml is to follow my procedure on post 3.

Note: the reg->xml converter doesn't appear to convert binary data correctly so my procedure on post 4 may have resulted in the error you encountered.

chipsxj
28th February 2008, 07:36 PM
chipsxj, there are several mistakes in your XML. Could you please post the file (not just a screenshot) so we can correct it?

EDIT:
it should look like this:
<wap-provisioningdoc>
<characteristic type="Registry">
<!-- Owner Preferences -->
<characteristic type="HKCU\ControlPanel\Owner">
<parm name="Name" value="stan23" datatype="string"/>
<parm name="E-mail" value="stan23@somewhere" datatype="string"/>
<parm name="Notes" value="" datatype="string"/>
<parm name="Telephone" value="+49 170 123 456 789" datatype="string"/>
<parm name="Owner" datatype="binary" value="fsdfhleskjgblrglbwstrAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAASQBethsjzukilmjn6r ehbtrnuijgbfhnjmiztrgvfbgjmkHMAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAVAB1sdhjbvlbeirvgbuergbviuewb gvhjivliusblisgbiubiubbibiuvfrnevtguedieijlgrbtrtg tbrguhbksevsnvsegwerskuABlAG4AAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAdAAAAAAAAAAA AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=="/>
</characteristic>

<!-- what's that for? -->
<characteristic type="HKCU\Software\Microsoft\Windows CE Services" recursive="true">
<parm name="DeviceFriendlyName" value="stan23" datatype="string"/>
<parm name="Flags" value="1" datatype="integer"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>


Thanks. The attachment manager will not let me upload the xml file.

stan23
28th February 2008, 07:40 PM
then rename it to .txt :D

chipsxj
28th February 2008, 08:08 PM
then rename it to .txt :D

Thanks.

I am a little new to this stuff....to me 'String' meant text. But actually it has to be Base64?

chipsxj
28th February 2008, 08:13 PM
<!-- what's that for? -->
<characteristic type="HKCU\Software\Microsoft\Windows CE Services" recursive="true">
<parm name="DeviceFriendlyName" value="stan23" datatype="string"/>
<parm name="Flags" value="1" datatype="integer"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>[/code]


I thought this was the device name?

stan23
28th February 2008, 08:30 PM
look here at my post (http://forum.xda-developers.com/showthread.php?p=1899755#post1899755) how to get a xml file with the correct content.

And compare my attachment to yours to see the differences :)

JoelC
28th February 2008, 08:35 PM
@frazzmanw -

Sorry, not been online in a few days! Here are the 2 copies of cusTSK.exe I promised you - I hope they help!!

chipsxj
28th February 2008, 08:59 PM
look here at my post (http://forum.xda-developers.com/showthread.php?p=1899755#post1899755) how to get a xml file with the correct content.

And compare my attachment to yours to see the differences :)

I guess I am a just a goober. Sorry.

How do you use rapiconfig? I must be doing it wrong because this is what I get when I past the text in your post into the rapiconfigin and then run the runconfig batch file. I am doing this with my devie plugged into my pc and running this on the pc......am I suppose to run it on the device?

http://i2.photobucket.com/albums/y16/ChipsXJ/rapiconfig.jpg

it closes when I push any key.

I really want to learn to do this....but I guess I need to learn how to use the tools a little better.

Red49er
28th February 2008, 09:09 PM
For whatever reason, several cabs (seems to happen to the same ones consistently) will get deleted every time sdautorun is run. This means I have to keep an extra copy of some of my cabs in a different folder and remember to copy them over to the /cabs folder before I do a hard reset. I'm not really sure how to debug this issue, so if you have any further questions about it, I'd be glad to give you the details you need.

chipsxj
28th February 2008, 09:46 PM
look here at my post (http://forum.xda-developers.com/showthread.php?p=1899755#post1899755) how to get a xml file with the correct content.

And compare my attachment to yours to see the differences :)

I was able to see the difference and make the required base64 conversion for owner name.

my device registry indicate email, name, notes, owner, owner notes, telephone.

under settings\owner information the fields are name, company, address, telephone, email address with a tab for notes.

i think the address and company name are in the owner parameter. but I put in only my name there but I think that should be company name and address...which are 2 separte fields..how do I separate the info in the file so that it will go into the correct field?

how do i get that info into the file? is it all included in the same base64 info for "Owner"?

stan23
28th February 2008, 09:58 PM
I suggest you type all your info by hand into your device, the read it with RapiConfig.

It seems you have to enable RapiConfig on your device, use a registry editor and change the two entries mentioned in this article (http://blogs.msdn.com/zhengpei/archive/2007/02/09/rapiconfig-exe-access-denied.aspx).

Sleuth255
28th February 2008, 10:55 PM
For whatever reason, several cabs (seems to happen to the same ones consistently) will get deleted every time sdautorun is run. This means I have to keep an extra copy of some of my cabs in a different folder and remember to copy them over to the /cabs folder before I do a hard reset. I'm not really sure how to debug this issue, so if you have any further questions about it, I'd be glad to give you the details you need.

Interesting. SDAutoRun.exe changes the attributes of cabs to RO so AutoRun won't delete them. Use file manager and check the properties of all your cabs referenced in SDConfig.txt. Are they set to read-only?

chipsxj
28th February 2008, 11:18 PM
I suggest you type all your info by hand into your device, the read it with RapiConfig.

It seems you have to enable RapiConfig on your device, use a registry editor and change the two entries mentioned in this article (http://blogs.msdn.com/zhengpei/archive/2007/02/09/rapiconfig-exe-access-denied.aspx).

Thanks for head up there.....that fixed that issue.

Do I understand this correctly?

copy the RapiCongigOut.xml and paste it into XML notepad, save then use cabarc to create a cab then copy to device and execute?

That is what I did but still errors out.

EDIT: OK I think I figured the tools out....but still cab will not run successfully. Even when I take out the base64 parameters it fails.

The only thing that is not in the Rapiconfigout.xml file is <?xml version="1.0" encoding="utf-8"?> but that gets added with xml notepad.

After I save the xml file I then change to txt file and compare it to your....but it is formatted different...not sure what I am doing wrong.
I think it looks like your guy's stuff. if you do not mind could you take a look and see if you see something obvious that I have done?

Thank you I really appreciate your help.

Sleuth255
29th February 2008, 02:29 AM
try getting rid of the entire xml tag, & start with <wap-provisioningdoc> tag. Also remove "recursive = true". I've never seen that before.

chipsxj
29th February 2008, 03:03 AM
try getting rid of the entire xml tag, & start with <wap-provisioningdoc> tag. Also remove "recursive = true". I've never seen that before.

I removed the xml tag.
tried it
I removed the space at the end of the param lines between quotes and forward slash.
tried it
put the xml tag back.
tried it

Still fails everytime

maybe I am building it wrong.

I used the rapiconfig with this by stan23 http://forum.xda-developers.com/showpost.php?p=1899755&postcount=17

take the output in the rapiconfig and copy it into notepad2 and save it as xxxxxxx.xml

then run the xml and i see all of the text in a browser.

Then I run "cabarc n myxxxxxxxxtry.cab filename.xml

then copy to device and execute on device

then it fails.

sound right?

Thanks again

EDIT: i missed the true recursive...will try that now.
EDIT2: that did not do it either.....tried every combo still did not work.

EDIT3: the xml does not have to be named _setup.xml or _setup.cab for this to work does it?

jeffreycentex
29th February 2008, 03:22 AM
Sleuth:

Here is a config for how to setup a provisioning file for ActiveSync:

<wap-provisioningdoc>
<characteristic type="Sync">
<characteristic type="Connection">
<parm name="Server" value="exchangeserveraddresshere"/>
<parm name="AllowSSLOption" value="1"/>
<parm name="User" value="exchangeusernamehere"/>
<parm name="Domain" value="exchangedomainname"/>
<parm name="Password" value="password or remove this line to be prompted"/>
<parm name="SavePassword" value="1"/>
</characteristic>
<characteristic type="Settings">
<parm name="PeakStartTime" value="0800"/>
<parm name="PeakEndTime" value="1800"/>
</characteristic>
<characteristic type="Mail">
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Calendar">
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Contacts">
<parm name="Enabled" value="1"/>
</characteristic>
<characteristic type="Tasks">
<parm name="Enabled" value="1"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>

For an email account (like GMAIL), please see the following:

<wap-provisioningdoc>
<characteristic type="EMAIL2">
<characteristic type="{84088d54-13cf-43c2-a512-6aff8d76e9c3}">
<parm name="SERVICENAME" value="GMail" />
<parm name="SERVICETYPE" value="IMAP4" />
<parm name="INSERVER" value="imap.gmail.com" />
<parm name="OUTSERVER" value="smtp.gmail.com" />
<parm name="NAME" value="TypeinYourName" />
<parm name="REPLYADDR" value="emailaddress@gmail.com" />
<parm name="AUTHNAME" value="emailaddress@gmail.com" />
<parm name="AUTHSECRET" value="password or leave blank to be prompted - I type in a wrong one here" />
<parm name="DOMAIN" value="" />
<parm name="AUTHREQUIRED" value="1" />
<parm name="LINGER" value="240" />
<parm name="RETRIEVE" value="-1" />
<parm name="KEEPMAX" value="-1" />
<parm name="DWNDAY" value="3" />
<parm name="SMTPALTENABLED" value="0" />
<parm name="SMTPALTAUTHNAME" value="" />
<parm name="SMTPALTPASSWORD" value="" />
<parm name="SMTPALTDOMAIN" value="" />
<characteristic type="TAGPROPS">
<parm name="8128000B" value="1"/>
<parm name="812C000B" value="1"/>
</characteristic>
</characteristic>
</characteristic>
</wap-provisioningdoc>

I built a cab file (renaming it to _setup.xml and running cabarc) to set this up. Note that you WILL get an error if your run the Exchange provisioning on a device that already has an exchange account configured.

jeffreycentex
29th February 2008, 03:35 AM
EDIT3: the xml does not have to be named _setup.xml or _setup.cab for this to work does it?

AFAIK, it has to be _setup.xml

Try this one...

You only need to include the Base64 values - the Telephone, Email, etc are in the Base64 data.

chipsxj
29th February 2008, 03:46 AM
AFAIK, it has to be _setup.xml

Try this one...

You only need to include the Base64 values - the Telephone, Email, etc are in the Base64 data.


Thanks......that did it! Has to be named _setup.xml for it to work.

So you can only have 1 xml file in the SDConfig.txt file, right?

jeffreycentex
29th February 2008, 03:50 AM
Not as far as I know...

AT&T has many provxml files in their config.

However, if you leave it as a CAB, don't worry about it.. I like the CAB as it is more portable.

Also, once you learn the format for CABWIZ, it is much easier than trying to get the CPY commands to work. I've built CABs to create shortcuts, install ringtones and alert tones, even copy over my PhoneWeaver and MobiBook settings..

ghettofreeryder
29th February 2008, 05:46 AM
Add my rom to UC capable roms
http://forum.ppcgeeks.com/showthread.php?t=19661

elosogrande7076
29th February 2008, 07:24 AM
Post your xml & I'll add it to the top posts. I'm sure others would like to learn how to autoconfigure email accounts too :)

Here is the xml file that allowed me to get the 2 different emails....i was able to get three different email accounts to work. Thanks for all your help and also to Stan23 for the links u suggested, that was the final steps allowing me to get the multiple accounts to work. Also, thanks to jeffreycentex for the help with the xml gmail structure. Also, i couldnt upload the xml file so i had to change it to a txt file.

stan23
29th February 2008, 07:51 AM
Also remove "recursive = true". I've never seen that before.
It's only used for querying the device, see my second code box here (http://forum.xda-developers.com/showpost.php?p=1899755&postcount=17)

benoldcrap
29th February 2008, 09:18 AM
couple of questions:

I like to change the left soft key on my home screen to run Nilisco flashlight. I've been able to change the operation of the key successfully, but I can't seem to get the text of the button to change to "Flashlight."

here's the section in question:

<characteristic type="HKCU\Software\Microsoft\Today\Keys" translation="filesystem" />
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">
<parm name="Open" datatype="string" value="\Program Files\Nilisco\Flashlight\flashlight.mscr" />
</characteristic>
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">
<parm name="(Default)" datatype="string" value="Flashlight" />
</characteristic>
</characteristic>

That last part:
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">
<parm name="(Default)" datatype="string" value="Flashlight" />
</characteristic>
</characteristic>
...just seems to add a new registry string instead of changing the "Calendar" value of the string that's already there. Any ideas?

Also...I saw this was asked already, but I didn't see an answer. Are there any commands for creating new folders, and then moving (not copying) files into those new folders? I like to organize my Programs folder, and it would be sweet to have that automated.

Thanks in advance!

Red49er
29th February 2008, 07:06 PM
Here is the xml file that allowed me to get the 2 different emails....i was able to get three different email accounts to work. Thanks for all your help and also to Stan23 for the links u suggested, that was the final steps allowing me to get the multiple accounts to work. Also, thanks to jeffreycentex for the help with the xml gmail structure. Also, i couldnt upload the xml file so i had to change it to a txt file.

So if I want to setup an email account, do I use the SAME guid as your code, or do I use GUID-GEN to create unique ones?

elosogrande7076
29th February 2008, 08:47 PM
So if I want to setup an email account, do I use the SAME guid as your code, or do I use GUID-GEN to create unique ones?

Thats a good question, to be safe use GUID-GEN to create a new one.....i know that i had to create different ones to get my mulitple emails to work.

Sleuth255
1st March 2008, 02:59 AM
It's only used for querying the device, see my second code box here (http://forum.xda-developers.com/showpost.php?p=1899755&postcount=17)

Ahhh... <lightbulb>I just connected the dots.</lightbulb>

Sleuth255
1st March 2008, 03:07 AM
couple of questions:

I like to change the left soft key on my home screen to run Nilisco flashlight. I've been able to change the operation of the key successfully, but I can't seem to get the text of the button to change to "Flashlight."

here's the section in question:

<characteristic type="HKCU\Software\Microsoft\Today\Keys" translation="filesystem" />
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">
<parm name="Open" datatype="string" value="\Program Files\Nilisco\Flashlight\flashlight.mscr" />
</characteristic>
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">
<parm name="(Default)" datatype="string" value="Flashlight" />
</characteristic>
</characteristic>

That last part:
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">
<parm name="(Default)" datatype="string" value="Flashlight" />
</characteristic>
</characteristic>
...just seems to add a new registry string instead of changing the "Calendar" value of the string that's already there. Any ideas?

Also...I saw this was asked already, but I didn't see an answer. Are there any commands for creating new folders, and then moving (not copying) files into those new folders? I like to organize my Programs folder, and it would be sweet to have that automated.

Thanks in advance!

You want to change the default parameter instead of creating a parameter named "(Default)". There's a way to do this but I can't recall the exact syntax off the top of my head.

Try:
<parm datatype="string" value="Flashlight" />
or
<parm name="" datatype="string" value="Flashlight" /> (most likely candidate here btw)

elgreek84
1st March 2008, 08:15 AM
great great program. one thing, I read through, but no answer so far:
Has anyone out there figure out how to do CPY1: /path/folder/ to CPY2:/path ? without individual files?

stan23
1st March 2008, 11:12 AM
That last part:
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112" translation="filesystem">
<parm name="(Default)" datatype="string" value="Flashlight" />
</characteristic>
</characteristic>
...just seems to add a new registry string instead of changing the "Calendar" value of the string that's already there. Any ideas?


try
<wap-provisioningdoc>
<characteristic type="Registry">
<characteristic type="HKCU\Software\Microsoft\Today\Keys\112">
<parm name="Default" value="Flashlight" datatype="string"/>
<parm name="Open" value="\Program Files\Nilisco\Flashlight\flashlight.mscr" datatype="string"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
it works for me :)

You don't need the filesystem translation unless you have a backslack \ in your parameter name (and then you have to escape it like that: abc\\cde), that how I understood the MSDN library.

elgreek84
1st March 2008, 05:02 PM
Also, does anyone know how to copy file that are hidden, like .dll system files. that are hidden by default? (get does not exist error)

yerp
1st March 2008, 06:17 PM
hi all,
i have run into an interesting problem....i successfully set up a bare-bones SDConfig.txt and used it on roughly 3-4 times when flashing/hard-resetting my mogul.....i originally had 2 copy commands that failed and would error out, no biggie, all cabs were installed.....i've since removed those copy lines and now when u tried to flash a new rom last night, UC errors out right away....it complains about not being able to find a cab file that is in the exact place it complains about. also, i've noticed that at some point UC renamed my folders on my SD card....well, i shouldn't say renamed, rather, changed them to all CAPS. here is my SDConfig.txt:


LOCK: Enabled
CAB: \Storage Card\INSTALLS\CABS\DopeWars.PPC3_ARM.cab
CAB: \Storage Card\INSTALLS\CABS\tcpmp.pocketpc.0.72RC1.cab
CAB: \Storage Card\INSTALLS\CABS\FlashVideoBundle.cab
CAB: \Storage Card\INSTALLS\CABS\opera_wm5_ppc_865.cab
CAB: \Storage Card\INSTALLS\CABS\PocketCM-0.20b.cab
CAB: \Storage Card\INSTALLS\CABS\S2U2-0.99p-WM5.cab
CAB: \Storage Card\INSTALLS\CABS\S2V-0.32-WM5.cab
CAB: \Storage Card\INSTALLS\CABS\S2P-0.17-WM5.cab
LOCK: Disabled
RST: Reset


old version that errored on theme copies, but got the rest done:


LOCK: Enabled
CAB: \Storage Card\installs\cabs\DopeWars.PPC3_ARM.cab
CAB: \Storage Card\installs\cabs\tcpmp.pocketpc.0.72RC1.cab
CAB: \Storage Card\installs\cabs\FlashVideoBundle.cab
CAB: \Storage Card\installs\cabs\opera_wm5_ppc_865.cab
CAB: \Storage Card\installs\cabs\PocketCM-0.20b.cab
CAB: \Storage Card\installs\cabs\S2U2-0.99p-WM5.cab
CAB: \Storage Card\installs\cabs\S2V-0.32-WM5.cab
CAB: \Storage Card\installs\cabs\S2P-0.17-WM5.cab
CPY1:\Storage Card\installs\themes\black.tsk
CPY2:\Windows\
black.tsk
CPY1:\Storage Card\installs\themes\volvo.tsk
CPY2:\Windows\
volvo.tsk
LOCK: Disabled
RST: Reset



thanks,
yerp

dalvarez7
2nd March 2008, 03:55 AM
hi all,
i have run into an interesting problem....i successfully set up a bare-bones SDConfig.txt and used it on roughly 3-4 times when flashing/hard-resetting my mogul.....i originally had 2 copy commands that failed and would error out, no biggie, all cabs were installed.....i've since removed those copy lines and now when u tried to flash a new rom last night, UC errors out right away....it complains about not being able to find a cab file that is in the exact place it complains about. also, i've noticed that at some point UC renamed my folders on my SD card....well, i shouldn't say renamed, rather, changed them to all CAPS. here is my SDConfig.txt:


LOCK: Enabled
CAB: \Storage Card\INSTALLS\CABS\DopeWars.PPC3_ARM.cab
CAB: \Storage Card\INSTALLS\CABS\tcpmp.pocketpc.0.72RC1.cab
CAB: \Storage Card\INSTALLS\CABS\FlashVideoBundle.cab
CAB: \Storage Card\INSTALLS\CABS\opera_wm5_ppc_865.cab
CAB: \Storage Card\INSTALLS\CABS\PocketCM-0.20b.cab
CAB: \Storage Card\INSTALLS\CABS\S2U2-0.99p-WM5.cab
CAB: \Storage Card\INSTALLS\CABS\S2V-0.32-WM5.cab
CAB: \Storage Card\INSTALLS\CABS\S2P-0.17-WM5.cab
LOCK: Disabled
RST: Reset


old version that errored on theme copies, but got the rest done:


LOCK: Enabled
CAB: \Storage Card\installs\cabs\DopeWars.PPC3_ARM.cab
CAB: \Storage Card\installs\cabs\tcpmp.pocketpc.0.72RC1.cab
CAB: \Storage Card\installs\cabs\FlashVideoBundle.cab
CAB: \Storage Card\installs\cabs\opera_wm5_ppc_865.cab
CAB: \Storage Card\installs\cabs\PocketCM-0.20b.cab
CAB: \Storage Card\installs\cabs\S2U2-0.99p-WM5.cab
CAB: \Storage Card\installs\cabs\S2V-0.32-WM5.cab
CAB: \Storage Card\installs\cabs\S2P-0.17-WM5.cab
CPY1:\Storage Card\installs\themes\black.tsk
CPY2:\Windows\
black.tsk
CPY1:\Storage Card\installs\themes\volvo.tsk
CPY2:\Windows\
volvo.tsk
LOCK: Disabled
RST: Reset



thanks,
yerp

The copy command didn't work because you didn't specify the file again in the CPY2 line.

It should look like this.
CPY1:\Storage Card\installs\themes\volvo.tsk
CPY2:\Windows\volvo.tsk

Sleuth255
2nd March 2008, 04:30 AM
SDAutoRun errors out if there are spaces/tabs after filenames. It doesn't change case on directories though :confused: It does set cabs it finds to RO so autorun won't delete them.

If you can't figure it out, post your SDConfig.txt file along with which cab errored out so I can take a look at it.

elgreek84
2nd March 2008, 05:11 AM
sleuth, any word on copying folders. Also, how do you copy over invisible files, such as .dll, .lnks etc...?

Red49er
2nd March 2008, 07:15 AM
Interesting. SDAutoRun.exe changes the attributes of cabs to RO so AutoRun won't delete them. Use file manager and check the properties of all your cabs referenced in SDConfig.txt. Are they set to read-only?

I checked, and for whatever reason, I had several cabs which sdautorun didn't change to RO. I did it myself, and its working like a charm now.

p.s., Thanks for updating the front page with the proper cpy1/2 syntax, file copying now works on my vogue.

bandersnatch
2nd March 2008, 07:51 AM
Dan says just find the exe on the storage card and click it and go. Will you retain your license or need to reenter? This is amazing stuff. I'm almost tempted to give it a shot. If someone could dumb it down a little further, I think I might be able to do it. The xml provisioning is where I get really hung up. I was hanging on until then. I think my SDconfig file will actually work. Creating a cab file is going to be way out of my league. It seems possible to just hammer out a notepad txt with the appropriate info, and rename it xml? I could do that if I could figure out what to put in it. Just basic stuff like owner info would be a fantastic step. I thought I might try a custsk thing, but I haven't specified what tsk yet. Let me know if I look good so far.

Slueth, this is great stuff, and you are a very patient man.

If one is using the same SDCard all the time, I see little sense in installing something to storage card again after a flash when you already have it there. You may need just some shortcuts or regs at the right place and edited accordingly.
There is no need for even that many times as I found out. Just look & browse for the .exe on the SD and once you launch it everything gets done. Or simply make a file cab containing all the shortcuts

As for .XML vs. CAB I am pro XML. I was using in the past one or two cabs with all the reg tweaks, but I had difficulties locating which/what inside the file (a lot of stuff in there!!). Than what I did I extracted the cab with WinZip and found a ready made provisioning file _setup.xml that just needed a little bit of cosmetics and adding some comments. Beside the (BIG) advantage of adding comments into it you can basically change the xml file anywhere & anytime, even on your ppc, while with the cab (wince made) is not that handy.

Red49er
2nd March 2008, 05:43 PM
Make sure you use notepad and save it as plain text. It looks like you have some funny end of line characters after a couple of your cab statements.

bandersnatch
2nd March 2008, 09:47 PM
Make sure you use notepad and save it as plain text. It looks like you have some funny end of line characters after a couple of your cab statements.

I don't see any end of line characters, and I don't know what you mean by plain text. I am saving it as a txt document. the only other options are encoding as ansi, unicode, unicode big endian, and UTF-8. I am running Vista.

benoldcrap
3rd March 2008, 12:52 AM
Okay sorry guys, I need help with a few more things here (I'm sure I'll come up with more later, but I'm getting close to finished now).

I was trying to turn the dial tones off. I went through some reg keys, and found one that worked, but when I throw it in my xml file, it does nothing.
This is what I got:

<!-- *** Dial Tones Off *** -->
<characteristic type="Registry">
<characteristic type="HKCU\ControlPanel\Sounds\Keypress" translation="filesystem">
<parm name="BeepMode" datatype="integer" value="0"/>
</characteristic>
</characteristic>


I also was having white space errors all over the place when trying to map the buttons.

This is an example of what the reg->xml covertor spits out. I know that it's wrong, but I dont know why:

<characteristic type="Registry">
<characteristic type="HKLM\Software\Microsoft\Shell\Keys" translation="filesystem">
</characteristic>
<characteristic type="HKLM\Software\Microsoft\Shell\Keys\40C7" translation="filesystem">
<parm name="WndCls" datatype="string" value=""/>
<parm name="BtnWnd" datatype="integer" value="0"/>
<parm name="Flags" datatype="integer" value="0"/>
<parm name="ResetCmd" datatype="string" value="\\Windows\AppButtons\Voice Speed Dial.lnk\"/>
<parm name="Icon" datatype="string" value="\windows\sddialer.exe, 0"/>
<parm name="Name" datatype="string" value="Button 5"/>
</characteristic>

AND finally (for now at least :) )...I was able to get my HTC Home plugin to do all of my customizations except for adding my favorite contacts. Does anybody have any idea where those are kept, and how to automate thier customization?? (btw...I have already transfered my pim.vol file. I'm specifically looking for how HTC Home inserts them into the favorites tab.)

Thanks again for all the help and for this program!..it's been a great cure for boredom at work :)

Red49er
3rd March 2008, 06:26 AM
If the quotes around the parm names (wndcls etc) are present when you browse the registry, you need to use the &quot& (not exactly sure what it is, but thats close). Thats what gave me whitespace errors before.

edit: its &quot

edit2: (from Sleuth) its &quot;

I missed the semicolon myself and it drove me nuts trying to figure it out initially....

elgreek84
3rd March 2008, 06:32 AM
I have a question, maybe someone can help me out, if not I'll let you know when I get around to doing it:

I exported a bunch of registry settings, for HTC Home (to set the progarms in teh quicklauncher as well as contacts)
what I'm wondering is: if I import the registry for these settings in my userprovision.xml file before I get a chance to sync my device, will it be all screwed up? has anyone done this? what else are you guys doing out there?

Also, what is pim.vol for, I've seen a few of you that copy that over, what are the benefits of that?

Don Vincenzo
3rd March 2008, 01:00 PM
I have a quick question regarding modifying cabs using WinCE CAB Manager. I'm modifying some of my cabs so that by default they'll install to a storage card location (so that I can still have them install using UC), and whilst in the cab manager I was wondering if it was possible to modify the cab to include a serial key.
As an example, one of the cabs is SPB Traveller. I have my serial key for it, but was wondering if I could include it now to save me having to find the program after it's installed and manually include the key.

Thanks!

Chainfire
3rd March 2008, 01:59 PM
I'm still having some trouble configuring everything but I've given up for now. So far it changes reconfiguring my device after flash from a 3 hour to a 5 minute operation, that's good enough for me (in other words, not going to spend another 3 hours trying to fix it up better).

Just wanted to share a trick, don't know if it's been mentioned here before.

If you have application for which only an EXE is provided, i.e. you have to install through ActiveSync, and you cannot use WinRAR or whatever to get the CAB you need, an easy way to get the CAB is:

- Connect device to your computer through USB / ActiveSync (or whatever)
- Run the EXE on your computer to start the install
- The CAB will start installing on your device, usually some question will be asked, like location, or it wants to uninstall the old version first, etc, DONT CLICK IT
- Go to \Windows\AppMgr\Installs on your device
- Copy the CAB from there to wherever you keep your SDConfig CABs
- Cancel installation
- Voila

That's how I got all the Resco CABs, TomTom, etc.

taiseer999
3rd March 2008, 02:17 PM
I'm still having some trouble configuring everything but I've given up for now. So far it changes reconfiguring my device after flash from a 3 hour to a 5 minute operation, that's good enough for me (in other words, not going to spend another 3 hours trying to fix it up better).

Just wanted to share a trick, don't know if it's been mentioned here before.

If you have application for which only an EXE is provided, i.e. you have to install through ActiveSync, and you cannot use WinRAR or whatever to get the CAB you need, an easy way to get the CAB is:

- Connect device to your computer through USB / ActiveSync (or whatever)
- Run the EXE on your computer to start the install
- The CAB will start installing on your device, usually some question will be asked, like location, or it wants to uninstall the old version first, etc, DONT CLICK IT
- Go to \Windows\AppMgr\Installs on your device
- Copy the CAB from there to wherever you keep your SDConfig CABs
- Cancel installation
- Voila

That's how I got all the Resco CABs, TomTom, etc.

I like your trick and to add that cabs are also found in PC @ C:\Program Files\Microsoft ActiveSync\

Sleuth255
3rd March 2008, 02:44 PM
@bandersnatch: Your SDConfig.txt file looks great other than the fact that there's tabs at the end of each line before the newline character. You should be able to see these in notepad if you run windows; they look like small rectangles after the filenames.

elgreek84
3rd March 2008, 06:57 PM
Oh man great tip!!! I was *foolishly* looking for an exe to cab coverter. Thank goodness, saves me time having to load this stuff from computer. You got any other tips? What did you do about contacts? is your wap provisioning super long?



I'm still having some trouble configuring everything but I've given up for now. So far it changes reconfiguring my device after flash from a 3 hour to a 5 minute operation, that's good enough for me (in other words, not going to spend another 3 hours trying to fix it up better).

Just wanted to share a trick, don't know if it's been mentioned here before.

If you have application for which only an EXE is provided, i.e. you have to install through ActiveSync, and you cannot use WinRAR or whatever to get the CAB you need, an easy way to get the CAB is:

- Connect device to your computer through USB / ActiveSync (or whatever)
- Run the EXE on your computer to start the install
- The CAB will start installing on your device, usually some question will be asked, like location, or it wants to uninstall the old version first, etc, DONT CLICK IT
- Go to \Windows\AppMgr\Installs on your device
- Copy the CAB from there to wherever you keep your SDConfig CABs
- Cancel installation
- Voila

That's how I got all the Resco CABs, TomTom, etc.

AllTheWay
3rd March 2008, 08:19 PM
I'm still having some trouble configuring everything but I've given up for now. So far it changes reconfiguring my device after flash from a 3 hour to a 5 minute operation, that's good enough for me (in other words, not going to spend another 3 hours trying to fix it up better).

Just wanted to share a trick, don't know if it's been mentioned here before.

If you have application for which only an EXE is provided, i.e. you have to install through ActiveSync, and you cannot use WinRAR or whatever to get the CAB you need, an easy way to get the CAB is:

- Connect device to your computer through USB / ActiveSync (or whatever)
- Run the EXE on your computer to start the install
- The CAB will start installing on your device, usually some question will be asked, like location, or it wants to uninstall the old version first, etc, DONT CLICK IT
- Go to \Windows\AppMgr\Installs on your device
- Copy the CAB from there to wherever you keep your SDConfig CABs
- Cancel installation
- Voila

That's how I got all the Resco CABs, TomTom, etc.

Chainfire...

You are a plethora of information.

juju-35
3rd March 2008, 09:44 PM
Hello,


If you have application for which only an EXE is provided, i.e. you have to install through ActiveSync, and you cannot use WinRAR or whatever to get the CAB you need, an easy way to get the CAB is:

- Connect device to your computer through USB / ActiveSync (or whatever)
- Run the EXE on your computer to start the install
- The CAB will start installing on your device, usually some question will be asked, like location, or it wants to uninstall the old version first, etc, DONT CLICK IT
- Go to \Windows\AppMgr\Installs on your device
- Copy the CAB from there to wherever you keep your SDConfig CABs
- Cancel installation
- Voila

That's how I got all the Resco CABs, TomTom, etc.

Hello,

in fact you do not need to connect your device. Just click the exe and activesync (or Windows Mobile Device Center in Vista) will tell you that the programm will install on your next device connection. Then all cabs are extracted and copied, waiting to be copied and installed to your device.

In Vista it took me a while to find out the cabs ar all copied to the /windows/windowsmobile/name_of_your_cab/ folder. Just cut the cab and paste into your install directory before reconnecting your device and it works....

In XP as reported by some cabs are copied to the activeSync directory.

Now onto my situation, appreciate any tips (sorry if some issues are basic. Still a beginner although learning!) for issues I am facing with my configuration:

1- How do you move files around. Sleuth gives an example to copy a file, but if I want to move links around my start menu (for example move a link from Programms to settings/system), I need a command to move a file or delete a file (and copy from SD card)

2- Have some people use Mortron scripts to acheive simialr results? Is there a good way to launch the mortronScript only after Flashing a ROM (or a Hardware reset)?

3- WHat is easiest way to capture all the registry changes for your device cusotmization (like changing some programs options, regional settings, HTC home customization, Kaiser Tweak stuff,...)? Alex suggested to me to export all registry to reg file after initial install, then to apply all changes/settings, then export again all regiustry to reg file, make a comparison, keep change keys, use reg2xml....Is that the best way? Anything easier?

Thanks for all your tips and UC, it makes flashing even more fun!

Juju

elgreek84
3rd March 2008, 10:48 PM
Regarding:
1 - I would also like this to be updated in the first page, I'm still not clear on how to copy, and still have heard no words as far as copying the whole directory.
I'm running into the situation where certain files don't know their extensions (pim.vol shows as just pim) or (.lnk files, .dll etc...)

3- For this I have been using Resco Explorer registry add in to export HTC Home Contacts, Program settings, as well as background, today screen order, and a fwe others as well as e-mail.
However, I have kept them as .reg files and once the SDAutorrun is done and resets, then I manually import them back in (just by clicking on them) and reset once more. The whole processes takes about 10 minutes, it's not so bad.
I would love it if everything was automated, however when I tried to convert reg2xml and putting it in usercustomizatoin.xml things didn't work out so well, so I figured i'd jsut do thatpart manually.

QUOTE=juju-35;1986857]Hello,


1- How do you move files around. Sleuth gives an example to copy a file, but if I want to move links around my start menu (for example move a link from Programms to settings/system), I need a command to move a file or delete a file (and copy from SD card)



3- WHat is easiest way to capture all the registry changes for your device cusotmization (like changing some programs options, regional settings, HTC home customization, Kaiser Tweak stuff,...)? Alex suggested to me to export all registry to reg file after initial install, then to apply all changes/settings, then export again all regiustry to reg file, make a comparison, keep change keys, use reg2xml....Is that the best way? Anything easier?

Thanks for all your tips and UC, it makes flashing even more fun!

Juju[/QUOTE]

AllTheWay
4th March 2008, 12:32 AM
In Vista it took me a while to find out the cabs ar all copied to the /windows/windowsmobile/name_of_your_cab/ folder. Just cut the cab and paste into your install directory before reconnecting your device and it works....
Juju


Thank you for posting this. I was looking for where Vista put the .cab files.