Question about a CAB file

  • Thread starter Thread starter tiger79
  • Start date Start date
T

tiger79

Hello,
I'd like to make a cab file from my application, even though it will be a
customized version...
I'd like to place a database I created in the cab file, so that this
database will be placed on the pocket pc during install... I allready made
the database file part of my Visual Studio project.
Is this possible, and if so how ???
any kind of help is very wellcome, cause i've been reading all those pages
from msdn but I cant seem to find anything which can solve my problem...
 
Hello,
I'd like to make a cab file from my application, even though it will be a
customized version...
I'd like to place a database I created in the cab file, so that this
database will be placed on the pocket pc during install... I allready made
the database file part of my Visual Studio project.
Is this possible, and if so how ???
any kind of help is very wellcome, cause i've been reading all those pages
from msdn but I cant seem to find anything which can solve my problem...

If it is a SQL CE database (.sdf file) then I think you should be able to
add it to your solution, make sure the build action is set to 'Content'
and it should get installed into the destination directory along with your
executable and DLLs.
 
How can I add SQL CE database (.sdf file) in to my Solution.I need to
add a text file too while creating CAB file which shud gointo a Windows
device Folder.

Where can I set build action to Content?

Thanks
Flyingwhiz
 
How can I add SQL CE database (.sdf file) in to my Solution.I need to
add a text file too while creating CAB file which shud gointo a Windows
device Folder.

Where can I set build action to Content?

Thanks
Flyingwhiz

1. Add the file you want to include into your project.
2. Right click on the file in Solution Explorer and select 'Properties'.
3. Set the Build Action to 'Content'.

Cheers,

Richard.
 
I want to add my Data Source file in pocket pc windows folder(Data
source = \Windows\XYZ.sdf).How can I do that ?

Flyingwhiz
 
I have the same problem now :(
I'd like to install program file and necessary DLL's in the standard
directory, nut I'd like to place the DataBase itself in de /My Documents/
directory...
I've been playing around a little with the inf file which is used and there
is a section called
[DestinationDirs]

Files.Common=0,%InstallDir%

Shortcuts=0,%CE2%\Start Menu



[Files.Common]

FinalDemo2.exe,,,0

DICT.sdf,,,0

Dictionarytest1.dll,,,0


[SourceDisksNames]

1=,"Common1",,"C:\Documents and Settings\eric\My Documents\Visual Studio
Projects\FinalDemo2\FinalDemo2\obj\Debug\"

2=,"Common2",,"C:\Documents and Settings\eric\My Documents\Visual Studio
Projects\FinalDemo2\FinalDemo2\"

3=,"Common3",,"C:\Documents and Settings\eric\My Documents\Visual Studio
Projects\Dictionarytest1\Dictionarytest1\obj\Debug\"



[DefaultInstall]

CEShortcuts=Shortcuts

CopyFiles=Files.Common



Ok, so at one point I made in the DefaultInstall section an extra string :
CopyFiles=Files.dataBase

Then in SourceDisksNames an extra number=path for the Database

I created an extra section [Files.DataBase]

with DICT.sdf,,,0

and in section [DestinationDirs] I placed an extra Files.dataBase=0,%CE5%
which according to documentation should point to the /My Documents/
directory...

Obviously all this doesnt work :( When i run the modified .bat file that
should create the output .cab files it just wont do anything :(

any ideas ???
 
Back
Top