PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Re: How to Add Database to Pocket PC during Installation Process
Forums
Newsgroups
Microsoft DotNet
Microsoft Dot NET Compact Framework
Re: How to Add Database to Pocket PC during Installation Process
![]() |
Re: How to Add Database to Pocket PC during Installation Process |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
References: <uHDc3#I6EHA.1120@TK2MSFTNGP11.phx.gbl> <uxO3oiN6EHA.992@TK2MSFTNGP12.phx.gbl> <##2Am6V6EHA.2512@TK2MSFTNGP09.phx.gbl> <ew3jegZ6EHA.1296@TK2MSFTNGP10.phx.gbl> <uCpyvp76EHA.208@TK2MSFTNGP12.phx.gbl>
In-Reply-To: <uCpyvp76EHA.208@TK2MSFTNGP12.phx.gbl> Content-Type: text/plain; charset=windows-1251; format=flowed Content-Transfer-Encoding: 7bit Message-ID: <u$syfj#6EHA.1404@TK2MSFTNGP11.phx.gbl> Newsgroups: microsoft.public.dotnet.framework.compactframework NNTP-Posting-Host: mpe-9-52.mpe.lv 83.241.9.52 Lines: 1 Path: number1.nntp.dca.giganews.com!internal1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!nntp1.phx1.gblx.net!nntp.gblx.net!nntp.gblx.net!enews.sgi.com!msrnewsc1!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl Xref: number1.nntp.dca.giganews.com microsoft.public.dotnet.framework.compactframework:40995 Just edit DefaultInstall [1] to become like this: [DefaultInstall] CEShortcuts=Shortcuts CopyFiles=Files.Common,Files.Database [1] http://msdn.microsoft.com/library/d...aultinstall.asp A_PK wrote: > 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]" <feedback@no-spam.inthehand.com> wrote in message > news:ew3jegZ6EHA.1296@TK2MSFTNGP10.phx.gbl... > >>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" <pk999@hotmail.com> wrote in message >>news:%23%232Am6V6EHA.2512@TK2MSFTNGP09.phx.gbl... >> >>>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 >>> >>> >>> >>>> >>> >> > > |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

