LIKE WHAT YOU SEE? CLICK JOIN ABOVE TO SIGN UP, POST, AND ATTEND LIVE EVENTS.
Adding favorites via cab file
-
05-06-2008 6:26 AM
|
|
-
davidc


- Joined on 05-02-2008
- Sydney
- Posts 266
- Points 2,939



|
Adding favorites via cab file
Hey guys, Just going from the mobile links page etc. People enjoy having things automated for them. If anyone has any need for cab files or apps, let me know, if its a resonable request i could knock something up for you. Within reason of course, but if you want a cab to say, add your favorites and configure all the activesync options you use (except for password) and your favorite color scheme, start menu links etc. Let me know, what I'll do is, make the cab and in the post with the cab include a quick tutorial on the creation and what had done, and the source. To people that know how to do this stuff, i know you know its pretty basic, but i think its important, particularly since we have our sales guys on here to realise the full potential of even the simplest of apps. So anything you guys want automated, let me know and i can do a quick creation and write up for you!
Current Device - HTC Touch Pro - Ask me about this device
|
|
-
-
-
davidc


- Joined on 05-02-2008
- Sydney
- Posts 266
- Points 2,939



|
|
-
-
-
davidc


- Joined on 05-02-2008
- Sydney
- Posts 266
- Points 2,939



|
Re: Cab file creation
Answer
So, we start with what we want to accomplish, deploy a favorite to the device so we don't need to add it every time, I'm using news.com.au in this example as its easy to type!
First of all, windows mobile can utilise CPF or cab provisioning format, this is an xml based file that uses "CSP" - or, configuration service providers. The most commonly used one of these is the "Registry" CSP. we will be using the "browserfavorite" CSP in this example, We start with the source: this text in bold is what will be inside our text file. Just make a new notepad doco and enter this in it: <?xml version="1.0"?> <wap-provisioningdoc> <characteristic type="BrowserFavorite"> <characteristic type="News AUS"> <parm name="URL" value="http://www.news.com.au"/> </characteristic> </characteristic> </wap-provisioningdoc>
We open the section by saying that its a provisioning doc. with the wap-provisioningdoc tag. Then the sub entry, we specify the CSP we are using, "Browserfavorite" This tells the device we are about to access the browser favorite section. The next type is the title, which ... gives it a title, and then we specify the parameter, which is the "URL" parameter, whos value is "http://www.news.com.au"
We put this into a file called "_setup.xml" The naming is key here, make sure it is exactly that. _ and all
Then we run makecab. makecab should be available on base installs of 2000 and XP, but have a look around if its not available to you. From a command window we enter-
MakeCAB.exe /D COMPRESS=OFF _setup.xml news.cab
This outputs "news.cab" which, as you guessed, we copy to the device and then run.
This provisions our favorite for news.com.au and is now accessible from the favorites menu.
Current Device - HTC Touch Pro - Ask me about this device
|
|
-
-
-
-
davidc


- Joined on 05-02-2008
- Sydney
- Posts 266
- Points 2,939



|
for now, i found a quick upload site you can grab the cab here - http://www.mediafire.com/?kemcd3oxium I've never used this place before, so i'm not sure on how it works, but i uploaded it and it gave me a link which i verified works. Not sure how long it will be available. but surely long enough for you to grab it Laura.
Current Device - HTC Touch Pro - Ask me about this device
|
|
-
-
-
-
Chris Rue


- Joined on 04-01-2008
- Posts 68
- Points 780




|
Laura, you're prolly missing a space between OFF and _setup.xml.
Kinda tough to see in the original command, so easy to miss it.
Chris Rue MCSE, MCSA: Messaging, MCTS: WM5 Admin MVP - Small Business Server Welcome to the Funcave - Chris Rue's Headquarters for Truth, Justice & Mobility
|
|
-
-
-
Laura Rooke


- Joined on 03-27-2008
- Northern California
- Posts 1,543
- Points 16,065





|
Chris Rue:Laura, you're prolly missing a space between OFF and _setup.xml.
Thanks Chris - good catch.
Now it cannot find that file - where should it be saved to?
Laura Rooke MVP - Mobile Devices My Devices.......... IPAQ 3650 IPAQ 5450 IPAQ 4700 IPAQ 2795 Jasjar Motorola Q T-Mobile Dash AT&T TILT
|
|
-
-
Chris Rue


- Joined on 04-01-2008
- Posts 68
- Points 780




|
For stuff like this, my preference is to explicitly define the path of the files I'm using. I also tend to use filepaths that don't exceed 8.3 naming anywhere in the path.
For example, you could make a folder called "cabs" at the root of your C: drive and place the _setup.xml file in there.
Then you would change the original command from davidc as follows:
MakeCAB.exe /D COMPRESS=OFF c:\cabs\_setup.xml c:\cabs\news.cab
FYI: Just tested, and it works a treat.
Chris Rue MCSE, MCSA: Messaging, MCTS: WM5 Admin MVP - Small Business Server Welcome to the Funcave - Chris Rue's Headquarters for Truth, Justice & Mobility
|
|
-
|
|
|