Making a Cab and also adding .sdf file

  • Thread starter Thread starter Flying Whiz
  • Start date Start date
F

Flying Whiz

Hw can I make a cab file and also adding an .SDF file in .NETCF . Is
there any way I can add .SDF file in to my project.

Thanks
Whiz
 
Hi Flying Whiz:

You can create a script to run which creates the .SDF with your install..or
you can use an embedded resource. I've only used embedded resources to read
the sql files and build the SDF at the onset of the install, but this is
very easy to do and embedding the base sql statements is totally trivial to
do. Here's an example: http://www.knowdotnet.com/articles/ddl.html You can
also create the .sdf as an embedded resource so you know you have it, but I
don't think you'd be able to write to it which would defeat the purpose.

HTH,


Bill
 
personally I have some HTML file in my project file with buil action:
content
and they are automatically copyed on the device when I start the application
and they are also automatically put in the CAB file.

1 drawback though, they go in my application directory (while I might want
to put them elsewhere ...)
 
You need to add the correct lines to your .INF file before building the cab.

The easiest way is to add your .sdf file to your project and set it's build
action to content. When you create your cab and install the application the
..sdf should be in your application install directory.

If you want the sdf to end up in another directory than your install
directory you need to change the settings in the inf-file. See this link for
more information:
http://msdn.microsoft.com/library/d...y/en-us/wcepb40/html/cxconCreatingInfFile.asp

/ Peter
 
Back
Top