yashsingh1/xdaforums huggingface dataset:
[Windows Mobile Software Development] datapusher:
How To Install Cabs to the Storage Card w/ WinCE Cab Manager

Ok the methods outlined throughout this thread about how to install your cabs to the storage card were not really accurate (at least not for me). At best, they were incomplete. So after reading many many pages in this thread and scratching my head, I have come up with my own method. i hope that this helps some of the people that were left hanging by other users instructions.

So here is a more detailed approach on how I got my cabs to install to the storage card.

Open up the cab in WinCE Cab Manager.

Export all the files contained withing to a temp directory.

Save the cab as a .wcm project file.

Close WinCE Cab Manager.

Open the .wcm project file in note pad as it is an xml file.

Replace all %CE1% with:

\Storage Card\Program Files

Replace all %CE19%

\Storage Card\Application Data

See if there are any other %CExx% handlers that need updating.

Save the file.

Open the .wcm project file with WinCE Cab Manager.

Import all the files you exported above in step 2.

Go into the install directory and remove the option to let the user choose the install directory.

Save the file as a .cab.

This will change the default install directory to the program files directory of the storage card. It will also install all the application data to the application data folder in the storage card.

Wallah! You now have a cab that will install to the storage card and run from the storage card.

Now that being said, I was hoping someone could clear up some confusion.

1) If I install a unaltered cab (meaning a cab I did not edit which allows me to choose the directory) and I select Storage Card from the list. it actually installs to the device. Google maps is a good example of this. Why does this happen? if they give me the option to install to the storage card, why does it install to the device instead? if I run my altered cab, it installs everything to the storage card.

2) Is there any negative impact on the device or system when i choose to store the Application data on the phone? Should I install program files to the Storage Card and leave the Application dat to be installed to the device instead of the card?

Thanks and once again, i hope my method helps some of those people out there that were having issues installing cabs to the Storage Card.
[Windows Mobile Software Development] pdagenius:
I couldn't manage to copy directories with either syntax :mad:
[Windows Mobile Software Development] Noonski:
"Cab installation unsuccesful"

:mad:
[Windows Mobile Software Development] l3v5y:
Is that all it says? I'll see if I can replicate that error...
[Windows Mobile Software Development] Noonski:
Insallation of test.cab was unsucessful

To be precise.

But it might be a fault in m y XML retesting.

Yeah i forgot to close </characteristic>

Installed fine, sorry about that.

Nice app.
[Windows Mobile Software Development] ribasnet:
How you you aplly these settings ?
[Windows Mobile Software Development] DaveShaw:
With the following line in SDConfig.txt

XML: \Storage Card\Cabs\SleuthProvisioning.xml

Where \Storage Card\Cabs\SleuthProvisioning.xml is the path to your provisioning file.

Have a look at the SDConfig example in the first post this is shown as the third line from the bottom.

Thanks

Dave
[Windows Mobile Software Development] datapusher:
Having some trouble with my customizations. For some reason, every time my phone resets after the customization script runs, it halts at the windows 6.1 boot screen.

Every time. I tried roughly 20 or so different configurations of the config file. But every time, it just reboots and then gets stuck at the windows boot screen. I then have to hard reset and then soft reset out of the customizations so i can use the phone.

I have tried taking the battery out.

i waited 30 minutes at the windows boot screen to see if it would come out of it's trance, nothing.

And sometimes it freezes during the install script. But I am positive that only the cabs included in the hide portion require any input from the user. So that is not why it would freeze during config.

But the main problem is the freezing at the windows boot screen shown above.

I have tried removing my custom boot screen and also taking out the cusTSK.exe and still it freezes.

I am running the latest Radio from Sprint and the current Rom from no2chem and on a Sprint Titan.

I have included my SDConfig file for reference.

*Update

If I remove the following lines:

LOCK:Disabled

HIDE:Enabled

CAB: \Storage Card\_Installers\WeatherPanel\WeatherPanel.CAB

CAB: \Storage Card\_Installers\Live Search\LiveSearch.cab

CAB: \Storage Card\_Installers\DinarSoft MemMaid\MemMaid.CAB

HIDE:Disabled

LOCK:Enabled

It does not freeze during the customization script or the boot.

Any idea why the hide command is casuing my device to tank?
[Windows Mobile Software Development] Sleuth255:
iirc doesn't memmaid require user input?
[Windows Mobile Software Development] datapusher:
That is why I used the Hide command. According to post #19 on this thread, I can use the hide command for cabs that require user input.

And that is exactly what I have done here:

HIDE:Enabled

CAB: \Storage Card\_Installers\DinarSoft MemMaid\MemMaid.CAB

HIDE:Disabled

So I don't think that that is the issue.

Any other ideas?
[Windows Mobile Software Development] mccune:
I've been trying to build my own UC list.

It works great on Dutty's Hybrid ROM but it doens't quite work on other ROM's.

After a while it hangs on "Installing..".

There is something I've noticed on udK's 8.0R1 ROM. After waiting for ages I was able to get the today screen again. There it showed multiple notifications. Storage Card\Cabs\Tiltfix.cab not found and more files I know I don't have on my list or in my Cabs directory. Somehow it seems that when it loads the SDConfig.txt it doesn't look at the device anymore. It seems to be only looking at the Storage Card witch I point to in my SDConfig.txt.

Is there some kind of delay I must use for the SDConfig? So it will load first all the stuff that the ROM cooker wants to load. And after this it should load my SDConfig.

Again for some strange reason only Dutty's ROM seems to be able to handle my SDConfig... ..hope my story makes sense spent the last 3 and half hours on fixing this challenge :P
[Windows Mobile Software Development] booda:
Just a stab in the dark, but have you tried renaming your folders with no spaces?
[Windows Mobile Software Development] l3v5y:
I don't think that matters, as "Storage Card" works, however the "_" might cause problems. Do any other cabs work?
[Windows Mobile Software Development] datapusher:
Yes ALL cabs work. If you look at my SDConfig file in that post, you will see that I have quite a few cabs installing. They all install without issues.

The issue starts when I have cabs that require user input.

I use the HIDE command like shown in the beginning of this thread. That's when the problems start.

It either freezes on the install (during user input).

Or

It installs fine and then on the first boot after the customizations have run it freezes during boot.

So that is the problem. However, if I remove those cabs (ones requiring user input) from the SDConfig file, then I have no issues.

Therefore I have to conclude that there is a problem with the HIDE command.

But where to go from there, I have no idea.
[Windows Mobile Software Development] merten3000:
Here is a part of my xml. Others work fine but this one has probably a lot of questionmarks which I do not know.

Please can somebody make this work?

Also checked it with IE and got a error....
[Windows Mobile Software Development] l3v5y:
Why do you have both an Access-Point characteristic and and ad-hoc characteristic?

Some more details would be nice:

Is it an AP you are configuring or an ad-hoc connection?

What kind of encryption are you using?

What kind of authentication are you using?

Is there any usage of PEAP or smartcards/certificates?
[Windows Mobile Software Development] datapusher:
I am having some problems with all my provisioning files. Can't figure it out. I even scaled it down to one item that i pulled off the second post of this thread and it fails.

I was hoping someone could point out the error in this small one to help me ID the problems with the larger files.

There are no tab characters, no spaces after the >. i can't seem to figure out what the issue is here.

When I use the provisioning xml test in dotfred, I get the following error:

"The XML input is invalid or malformed."

Any help is appreciated.

NOTE: the file is just a txt file for uploading to forum. in my device it is a xml file.

Thanks
[Windows Mobile Software Development] l3v5y:
Are you importing this as a *.xml or a *.txt.xml. The latter will probably create an error.

Try the attached xml (I've changed some of the formatting, and there where a few spaces at the ends of lines etc.).
[Windows Mobile Software Development] Noonski:
Maybe We cooks should start cooking in Mortscript as a standard (i know i will in the future)

This will only give more possibilities to run files in UC.
[Windows Mobile Software Development] datapusher:
I knew that would come up. No I import as xml. the forums won't allow me to upload an xml file so i changed the extension to txt.

I am sure there were NO spaces at the end of the lines.

And odly enough, your file has spaces at the end of a few lines.

I ran the file you posted and I get the same malformed/invalid error.
[Windows Mobile Software Development] l3v5y:
Whoops! Have you tried the technique of turning it into a cab and seing if that works?

http://xdaforums.com/showpost.php?p=2073100&postcount=488

EDIT: MAKES NO DIFFERENCE! I think I have the reason... between """ and "/>" I think there should be a space... I'm just testing it now to see if it works.
[Windows Mobile Software Development] Sleuth255:
Another good way might to just load mortscript from a cab as part of UC. That way you make sure you have the exact version that's compatible with your script loaded.
[Windows Mobile Software Development] Sleuth255:
udk might be using UC to load his own cabs which you would need to copy to your storage card. Did you take this up in the 8.0R1 support thread?
[Windows Mobile Software Development] booda:
Have you tried removing those cabs one-by-one to see if it's a particular cab causing the issue?

Also might be a good idea to try renaming "_Installers" to "Installers" as suggested above.
[Windows Mobile Software Development] mccune:
Will have a look at that one. But I've also tried v3.14 DK UC 2.0 Compliant.

It gives the same result I can hear a notification sound after about 10% but I can not see what it is since it's locked. Already tried to adjust my config with HIDE:ENABLED and LOCK:DISABLED. I guess it just uses the ROM's SDConfig.txt

Strange thing is that I've tried four different ROM's to test and the only one that seems to be able to work okay is Dutty's ROM. I will test some more later. But I use my device for my business, so I can't flash all day :p

Thanks anyway Sleuth. Might try your ROM to test this.

On other question. When I create just shortcuts from programs that are on my Storage Card it show the not untrusted certificate or file not found notification. The icon is also not there. But the target is the same. After I've create the same shortcut after this it works like it should.

For now I've copied the certificate that's been posted here. But I think it's a bit strange since the programs all work on the Storage Card. Or should I create shortcut's on my SD and copy them using software.xml?
[Windows Mobile Software Development] Sleuth255:
absolutely try my rom. I implement UC by the book. It'll help you pinpoint where the issue is. I believe some chefs are starting to use UC to load their own stuff. This is something I don't agree with and will be addressing in the chef's thread itnf.
[Windows Mobile Software Development] l3v5y:
I have been using UC to load some of my apps, but I will change this to the CFG... Command and then call SDAutoRun at the end.
[Windows Mobile Software Development] mccune:
Are there some programs that can't be installed correctly even when you use the HIDE command?

I've installed eWallet and it installs fine. But for some reason I'm not able to sync with my PC unless I reinstall the CAB by hand.

I have to say that I did change the CAB to install the files on SD.

Second thing. I use PocketMileage. I've used UC to create a shortcut into the Start Menu. For some reason it gives the "Not trusted or..." notifiaction. When I look at the properties they are correct. Again, when I replace it by a shortcut I've created myself after installation it does work...
[Windows Mobile Software Development] The_Steph:
Small question

Hi,

First point, thanks for all your advises on how to set up the provisioning file. I just struggled one day with it to have it fully working :D

But unfortunately, I'm still fighting with two values:

- First one is the complete owner/username section. But for it I think I'll have to re-read carefully you first section.

- The second one is having a registry key having the value "2316142153". When I expored it from my registry, I had it as a DWORD but RGU2XML made it an interger (which is correct having looked at MS website). However when I need to put it back it is not accepted.

Any idea to solve my problem?

Thanks in advance.

The_Steph
[Windows Mobile Software Development] Sleuth255:
Yep, I just spotted this idiosyncrasy myself while helping out pdagenius. Haven't determined the largest integer value that's allowed, how it translates to DWORD or if there is another way to input the value (ie 0x<hexhcars>) that it will accept yet.

Owner name is tricky but several options exist to capture it.
[Windows Mobile Software Development] l3v5y:
From my experience the fastest and easiest is with the rapiconfig method, as it produces an XML containing exactly what is in the registry entry, and so doesn't need any extra formating or character padding.
[Windows Mobile Software Development] The_Steph:
Sleuth255,

Thanks for that integer info, I'll try to sort it out. If by chance I succeed (seems a bit impossible as you seem to have tried all possibilities and you know much more than me how to act with provisioning stuff), I'll post the solution.

Regarding the Owner section, I'll use my teeth on it soon :p

Thanks.

The_Steph
[Windows Mobile Software Development] nikjensie:
Isn't it possible to make a CAB that copies a whole source directory to a destination directory? With structure and all...

//Nik
[Windows Mobile Software Development] datapusher:
I am looking to fix a few items in my prov file, but theyseem to ellude me. Hopefully someone here can help:

1) I would like to have the date NOT shown on the today screen

2) I would like for my device password to be set in the prov file and set to 15 minutes

3) Is there a way in the cab manager to auto select "English" in weather panel. This way I could avoid having any user intervention during install.

4) When opening pictures & video, is there a way to default to the storage card for viewing instead of the device?

5) Set the camera to superfine

I took a snapshot of the registry before and after I made these changes and did a comparison. I didn't find any differences between them that would go into a provisioning file.
[Windows Mobile Software Development] Sleuth255:
coming soon: directory copy utility ;)
[Windows Mobile Software Development] elgreek84:
...HIP HIP.......
[Windows Mobile Software Development] l3v5y:
Woo hoo! What's this going to be called? UC3?
[Windows Mobile Software Development] Sleuth255:
something much more mundane I'm afraid...
[Windows Mobile Software Development] nikjensie:
Hey,

as long as it works I'm happy... It's the one thing holding me back on this UC thingy... is there an ETA?

//Nik
[Windows Mobile Software Development] l3v5y:
Just written a program that can read the EMAIL2 and WiFi settings through RapiConfig, and then create XMLs for them, alter the SDConfig file on the device and then copy the required files back across. The code for it is incredibly messy so speed is not the best, but I have no formal training in any form of coding at all and it does the job!
[Windows Mobile Software Development] jorge_culv:
MortScript done for you!

How about all the mortscipt work has already been done! Take a look at AutoInstall http://forum.ppcgeeks.com/showthread.php?t=20753 (maybe linked somewhere else in this thread). You basically unzip this to your SD card, and it has a deep folder tree that mimics folders on the device. Run the .exe to kick off the whole show. This solution, by the way, 100% solves the 'copy directory' feature request that NO ONE has solved with UC (yet!).

So, I'm thinking, how about using both? I would love the option to have UC call the AutoInstall executable on first boot after flashing. Only problem is the AutoInstall runs from the Storage Card--anyone for sure been able to invoke a statement like:

EXEC: \Storage Card\something.exe

I've tried, and could never get it to run. So I just bite the bullet and run AutoInstall manually...
[Windows Mobile Software Development] pdagenius:
Had a quick look at the ppcgeeks site and it does look very interesting and powerful. Thank you for that info. :) Will try it out soon....
[Windows Mobile Software Development] mousio:
How about creating a shortcut on your device (pointing to the exe on your storage card) and then invoking the EXEC statement with the shortcut? Just an idea, have not tried it myself, though (Anyone? :))
[Windows Mobile Software Development] l3v5y:
I'm not sure if SDAutorun or AutoRun can handle *.lnks...
[Windows Mobile Software Development] jorge_culv:
I tried an EXEC: statement on a .lnk which did not execute, but feel free to try yourselves...
[Windows Mobile Software Development] Sleuth255:
Anybody can easily get mortscript running on a UC rom by adding a CAB: statement to load mortscript itself then run the script you need with an EXEC: statement.
[Windows Mobile Software Development] Digitaltigre:
Coreplayer Registration

Quick question - and please let me know if this is the wrong place/inappropriate...

I've been trying to use UC to get Coreplayer installed and reg'd. The install is fine, I even opened the retail cab and changed the location of the shortcut it makes from Programs to Programs/Multimedia. What I can't get to work is writing the config.xml that contains the settings and reg code for Coreplayer. At first I tried using a File Operation CSP in the provisioning xml to copy the config.xml. When that didn't work after going over my code a bunch of times - I lost confidence in the code and decided to try to use a cab file to write the XML. That didn't work either at least not during the UC portion of a Hard Restart. It does work after the forced reboot though. After opening up the CorePlayer cab to change it's shortcut location I noticed it doesn't write the config.xml in the install. I'm thinking that the config.xml is not there when UC provisioning.xml writes it and CorePlayer then overwrites the provisioning one later when it first goes to create it.

Does anyone feel me on this? Has anyone been able to reg coreplayer 1.2.2 in their UC? Booda says it can be done here and that's where I initially got my code from but at least for CorePlayer v1.2.2 this doesn't work.

Update: Solved

It was a timing issue. If I add another cab after the CorePlayer install I'm good to go!
[Windows Mobile Software Development] l3v5y:
I've just finished a release of an SDConfig.txt builder for use on the device.

More info and download here: http://xdaforums.com/showthread.php?p=2114491#post2114491
[Windows Mobile Software Development] nubian:
ActiveSync connection dropping

Thanks Sleuth for the best ROM i've used yet, it fixed loads of probs that i had with my kaiser. I have only one issue that wasn't there, the ActiveSync keeps on dropping, i have to take out the usb and connect again all the time!! it could be for a reason other than the new ROM, I'm not sure what is the problem. Many thanks again for your great efforts.

Edit: I have tried the usb cable of my Ext-HDD for 30 min & it didn't drop the connection, so i think it was the cable.

It got me sweating : ) i thought i might've damaged the usb's port on the phone somehow. sorry for posting beffor testing another cable, so far the ROM is PERFECT.
[Windows Mobile Software Development] shahid_shaikh:
hello friend

i forget to reset and copy all file to urgrate and deirecly install rom upgrate software. now mu device (imate jamin) is not working. only showing four colour in screen. please suggest me what i have to do now as my device is not working.

Thanks.
[Windows Mobile Software Development] l3v5y:
I would suggest that this post should be in the Prophet section of the site.

Having said that, please read the following Prophet specific wiki entry: http://wiki.xda-developers.com/index.php?pagename=Prophet_recovery

If you have any further questions regarding Prophet issues, PM me or post in the prophet threads.
[Windows Mobile Software Development] TalynOne:
Still working on automating my install through UC. I'm 30% of the way there (over 100 cabs to deal with).

Some observations:

1.) An EXEC statement doesn't run if there's a space anywhere on the line. So you can't run things of "\Storage Card", but you can run off "\" or something like "Extended_ROM".

2.) "CAB" statement can't exceed 99 characters, otherwise a file not found error occurs.

3.) Prov XML files must end in .xml not .provxml.

------------------------------

Here's an example of deleting a registry key:

<wap-provisioningdoc>
<!-- ClearType Preferences -->
<characteristic type="Registry">
<characteristic type="HKLM\System\GDI">
<!-- Deleting this key turns off ClearType on next soft reset -->
<nocharacteristic type="CLEARTYPE"/>
</characteristic>
</characteristic>
</wap-provisioningdoc>
[Windows Mobile Software Development] l3v5y:
That'll be because of the way parameters are sent (the parameters and exes are separated by whitespace) have you tried putting " around each of the paths?

either to do with the way SDAutoRun parses the text, or to do with the functionality of the AutoRun exe. Try pointing the AutoRun.exe to you config file without using SDAutoRun to parse it and see if the issue continues.

I believe this is to do with the way AutoRun works. All you'll need to do is rename it to *.xml and it should work.

Never knew that! I'll be using it though!
[Windows Mobile Software Development] dumb4ever:
I Hard Reset my HTC Touch with UC capable ROM

Everything works perfectly before (few months ago), but this time my email setting does not show up, it was loaded up during the customization, but when i check the email account, nothing.

any help from the gurus ?

Thanks

PS: Other Cab loads just fine, and i didn't change the .xml code since my previous restore that works ok.
[Windows Mobile Software Development] ervius:
Hi all, for who uses my rgu-2-xml, new version was born... solved a big-bug...

here:

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

bye!
[Windows Mobile Software Development] kingbear2:
Multi_SZ Registry entries in XML

I've searched this thread and the internet in general and cannot find an answer to the following question:

In an XML file, how can I have it create a new multi line (multi_SZ) registry entry?

Basically, the HKCU\Software\Microsoft\Shell\StartMenu\Order is what I need changed to edit the order in which my first 10 items appear on my start menu. This key has 10 items on 10 different lines (hard return in between each one). I've tried using RapiConfig to export the key, but it saves the file in UTF-8 (Unicode) which is not allowed with SDAutoRun and therefore can't parse it. I've tried using other options such as binary and that doesn't seem to work. Please if anyone knows of any ideas on how to get a datatype="multistring" entry which has items on multiple lines into an XML file that will work with SDAutoRun, please let me know.

Thanks