PC Review


Reply
Thread Tools Rate Thread

How to Add Database to Pocket PC during Installation Process

 
 
A_PK
Guest
Posts: n/a
 
      24th Dec 2004

Hi,

Thank for Harry and Ken for guiding me the installation process of Pocket
PC.

Now, seem to be able to install with one cab file under my ini file. Anyway,
I have another problem here. I tried to add a new Folder named
DatabaseFolder with database.sdf under my Setup Project / Application
Folder.

However, when I install my application,the database.sdf is not copy to
Pocket PC device. What I want is.....When I Install my application on Pocket
PC, my database file will also copy to the particular folder of Pocket PC.
Please guide me.....

Thank you very much

Regards


>>

>
>



 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      24th Dec 2004
Assuming you have first used the BuildCabs option in Visual Studio to build
a basic cab installer. You can then customise this by editing the .INF file
in the /obj/Release/ folder beneath your project. Once you have made changes
you must use the BuildCab.bat file in this folder to rebuild the cabs -
don't use the menu option in Visual Studio again.
As you want to install content files into a specific folder you can create a
new Files section in the inf e.g.
Set your DefaultInstall block to install your db files:-
[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common,Files.Database

Add the source location of your database file:-

[SourceDisksFiles]
SmartDeviceApplication1.exe=1
database.sdf=1

Add the destination folder:-
[DestinationDirs]
Files.Common=0,%InstallDir%
Shortcuts=0,%CE2%\Start Menu
Files.ARMV4=0,%InstallDir%
Files.ARM=0,%InstallDir%
Files.SH3=0,%InstallDir%
Files.MIPS=0,%InstallDir%
Files.X86=0,%InstallDir%
Files.WCE420X86=0,%InstallDir%
Files.Database=0,%InstallDir%\DatabaseFolder

Add the files section:-

[Files.Database]
database.sdf,,,0


The above makes the assumption that your .sdf file is placed in your project
output folder - /bin/Release/ along with your exe. It is shown alongside
some standard entries which may be different in your project.

Peter

--
Peter Foot
Windows Embedded MVP
www.inthehand.com | www.opennetcf.org


" A_PK" <(E-Mail Removed)> wrote in message
news:%23%(E-Mail Removed)...
>
> Hi,
>
> Thank for Harry and Ken for guiding me the installation process of Pocket
> PC.
>
> Now, seem to be able to install with one cab file under my ini file.
> Anyway, I have another problem here. I tried to add a new Folder named
> DatabaseFolder with database.sdf under my Setup Project / Application
> Folder.
>
> However, when I install my application,the database.sdf is not copy to
> Pocket PC device. What I want is.....When I Install my application on
> Pocket PC, my database file will also copy to the particular folder of
> Pocket PC. Please guide me.....
>
> Thank you very much
>
> Regards
>
>
>>>

>>
>>

>
>



 
Reply With Quote
 
A_PK
Guest
Posts: n/a
 
      27th Dec 2004

"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Assuming you have first used the BuildCabs option in Visual Studio to
> build a basic cab installer. You can then customise this by editing the
> .INF file in the /obj/Release/ folder beneath your project. Once you have
> made changes you must use the BuildCab.bat file in this folder to rebuild
> the cabs - don't use the menu option in Visual Studio again.
> As you want to install content files into a specific folder you can create
> a new Files section in the inf e.g.
> Set your DefaultInstall block to install your db files:-
> [DefaultInstall]
> CEShortcuts=Shortcuts
> CopyFiles=Files.Common,Files.Database
>
> Add the source location of your database file:-
>
> [SourceDisksFiles]
> SmartDeviceApplication1.exe=1
> database.sdf=1
>
> Add the destination folder:-
> [DestinationDirs]
> Files.Common=0,%InstallDir%
> Shortcuts=0,%CE2%\Start Menu
> Files.ARMV4=0,%InstallDir%
> Files.ARM=0,%InstallDir%
> Files.SH3=0,%InstallDir%
> Files.MIPS=0,%InstallDir%
> Files.X86=0,%InstallDir%
> Files.WCE420X86=0,%InstallDir%
> Files.Database=0,%InstallDir%\DatabaseFolder
>
> Add the files section:-
>
> [Files.Database]
> database.sdf,,,0
>
>
> The above makes the assumption that your .sdf file is placed in your
> project output folder - /bin/Release/ along with your exe. It is shown
> alongside some standard entries which may be different in your project.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> www.inthehand.com | www.opennetcf.org
>
>
> " A_PK" <(E-Mail Removed)> wrote in message
> news:%23%(E-Mail Removed)...
>>
>> Hi,
>>
>> Thank for Harry and Ken for guiding me the installation process of Pocket
>> PC.
>>
>> Now, seem to be able to install with one cab file under my ini file.
>> Anyway, I have another problem here. I tried to add a new Folder named
>> DatabaseFolder with database.sdf under my Setup Project / Application
>> Folder.
>>
>> However, when I install my application,the database.sdf is not copy to
>> Pocket PC device. What I want is.....When I Install my application on
>> Pocket PC, my database file will also copy to the particular folder of
>> Pocket PC. Please guide me.....
>>
>> Thank you very much
>>
>> Regards
>>
>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
A_PK
Guest
Posts: n/a
 
      27th Dec 2004
Should I add to inf file or edit ?

current my inf got the following

[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common

should I ADD to the following seciton and become

[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common
CopyFiles=Files.Common,Files.Database

or just EDIT the cuurent one become

[DefaultInstall]
CEShortcuts=Shortcuts
CopyFiles=Files.Common,Files.Database




"Peter Foot [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Assuming you have first used the BuildCabs option in Visual Studio to
> build a basic cab installer. You can then customise this by editing the
> .INF file in the /obj/Release/ folder beneath your project. Once you have
> made changes you must use the BuildCab.bat file in this folder to rebuild
> the cabs - don't use the menu option in Visual Studio again.
> As you want to install content files into a specific folder you can create
> a new Files section in the inf e.g.
> Set your DefaultInstall block to install your db files:-
> [DefaultInstall]
> CEShortcuts=Shortcuts
> CopyFiles=Files.Common,Files.Database
>
> Add the source location of your database file:-
>
> [SourceDisksFiles]
> SmartDeviceApplication1.exe=1
> database.sdf=1
>
> Add the destination folder:-
> [DestinationDirs]
> Files.Common=0,%InstallDir%
> Shortcuts=0,%CE2%\Start Menu
> Files.ARMV4=0,%InstallDir%
> Files.ARM=0,%InstallDir%
> Files.SH3=0,%InstallDir%
> Files.MIPS=0,%InstallDir%
> Files.X86=0,%InstallDir%
> Files.WCE420X86=0,%InstallDir%
> Files.Database=0,%InstallDir%\DatabaseFolder
>
> Add the files section:-
>
> [Files.Database]
> database.sdf,,,0
>
>
> The above makes the assumption that your .sdf file is placed in your
> project output folder - /bin/Release/ along with your exe. It is shown
> alongside some standard entries which may be different in your project.
>
> Peter
>
> --
> Peter Foot
> Windows Embedded MVP
> www.inthehand.com | www.opennetcf.org
>
>
> " A_PK" <(E-Mail Removed)> wrote in message
> news:%23%(E-Mail Removed)...
>>
>> Hi,
>>
>> Thank for Harry and Ken for guiding me the installation process of Pocket
>> PC.
>>
>> Now, seem to be able to install with one cab file under my ini file.
>> Anyway, I have another problem here. I tried to add a new Folder named
>> DatabaseFolder with database.sdf under my Setup Project / Application
>> Folder.
>>
>> However, when I install my application,the database.sdf is not copy to
>> Pocket PC device. What I want is.....When I Install my application on
>> Pocket PC, my database file will also copy to the particular folder of
>> Pocket PC. Please guide me.....
>>
>> Thank you very much
>>
>> Regards
>>
>>
>>>>
>>>
>>>

>>
>>

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to start a process on the desktop from the Pocket PC? orandov@gmail.com Microsoft Dot NET Compact Framework 3 25th Sep 2007 06:11 PM
How I open a pocket access database ( .cdb) without pocket unit? =?Utf-8?B?UGV0ZXIgZnJvbSBOSg==?= Microsoft Access External Data 0 6th Mar 2007 04:14 PM
image process in pocket pc =?Utf-8?B?U2VyaGFu?= Microsoft Dot NET Compact Framework 0 15th Nov 2005 05:51 PM
Re: How to Add Database to Pocket PC during Installation Process Sergey Bogdanov Microsoft Dot NET Compact Framework 0 27th Dec 2004 08:51 AM
How to Add Database to Pocket PC during Installation Process A_PK Microsoft VB .NET 1 23rd Dec 2004 11:19 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:07 PM.