Groups | Blog | Home
all groups > dotnet compact framework > september 2005 >

dotnet compact framework : How to quickly produce a cab file with many files inside ?


Zenon
9/14/2005 12:13:06 PM
Hi everybody,

I've produced a soft for Windows Mobile 2003. For many reasons, this
soft needs a lot of files installed on the device, for running.

I'm trying to produce a cab file which includes these files (let's say
an hundred).

I know cabwiz and the INF files, but it will be very time consuming to
write the inf file describing all the files !! :-((

Is there a tip for handling a large amount of files in INF files ?
SOmething like wildcard :

[SourceDisksFiles]
*.wav = 1

or directory :

[SourceDisksFiles]
/MyDirectory = 1

Thanks for any help.
Chris Tacke, eMVP
9/14/2005 3:24:01 PM
Write a simple app or batch file that generates the INF file for you.

--
Chris Tacke
Co-founder
OpenNETCF.org
Are you using the SDF? Let's do a case study.
Email us at d c s @ o p e n n e t c f . c o m
http://www.opennetcf.org/donate


[quoted text, click to view]

Zenon
9/14/2005 3:31:44 PM
Thanks for the idea.

I thought about that. Not really easy since the inf structure is really
complicated.

But it's a way, surely.
Alex Feinman [MVP]
9/14/2005 6:58:32 PM
Get Visual Studio 2005 Beta 2 and create a SmartCab projects (under Setup
and Deployment Projects). Add your files to it. Once you build it, in the
output directory you will find your INF file

[quoted text, click to view]
Steve Maillet (eMVP)
9/14/2005 9:21:34 PM
You could try the cab manager from http://www.ocpsoftware.com/ might make
things a tad easier for you.

--
Steve Maillet
EmbeddedFusion
www.EmbeddedFusion.com
smaillet at EmbeddedFusion dot com

nonamehkg
9/14/2005 10:40:17 PM
Yes, I tried that with a little .js script

But I got some problems. I have text files of the same name in many sub
folders, and I don't know how to tell the system which file in which
folder to copy.

It's hard to understand what I say, so some code here:

[SourceDisksNames]
1 = ,"",,..\A
2 = ,"",,..\B

[SourceDisksFiles]
"example.txt"=1
"example.txt"=2

[MyData1]
example.txt,example.txt <-- I want the .txt in ..\A

[MyData2]
example.txt,example.txt <-- I want the .txt in ..\B

It always copies the last one which is ..\B\example.txt. I can't figure
it out how to do it, and no documentation mentioned
that??
JR Lyon
9/20/2005 9:22:05 AM
If you are using VS 2005 it will build a CAB and INF for you if you attach a

"Other Project Types" -> "Setup and deployment" -> "Smart Device CAB
project"

I've used it and it works great. You can even change the registry and move
files to multiple directories. Also a program
called EZSetup will let you make an easy deployment executable so you can
deploy your app from a host computer :)

JR

[quoted text, click to view]

AddThis Social Bookmark Button