Windows CE 6.0-将SQL Server CE 3.5安装到运行时映像中 [英] Windows CE 6.0 - Installing SQL Server CE 3.5 into the run-time image

查看:72
本文介绍了Windows CE 6.0-将SQL Server CE 3.5安装到运行时映像中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我制作了一个应用程序,放入Win CE的硬盘(CF卡)上.我的问题是该应用程序正在使用SQL Server CE 3.5数据库,但看起来该图像是使用SQL Server CE 3.0创建的.开始构建映像时,无法选择3.5版本.

I made an application that I put onto the hard disk of Win CE (the Compact Flash card). My problem is that the application is using the SQL Server CE 3.5 database but it looks like that the image is created with the SQL Server CE 3.0. I couldn't select the 3.5 version when I started to build the image.

每次调试应用程序时都会部署3.5版本的dll,因此问题永远不会出现在开发阶段.

The 3.5 version dlls are deployed every time I debug the application so the problem never shows up in the development phase.

现在,当应用程序启动时(在操作系统启动时会自动启动),弹出带有异常的消息窗口,并且不让应用程序启动.我的问题是如何将SQL Server CE 3.5安装到映像中,或者如何稍后或在每次启动时使用CAB文件安装它.

Now when the application starts (it is started automatically when OS boots) the message window with exceptions pops up and don't let the application to start. My question is how to install the SQL Server CE 3.5 into the image or how to install it using CAB files later or on every boot up time.

当我在正在运行的OS系统上运行正确的CAB文件(三个CAB)时,它会安装3.5版本并启动我的应用程序,但是当我再次重新启动OS时,所做的更改不会保存并提交.必须有一种解决方案,可以在生成映像之前在目录中添加3.5版本,或者在每次启动时安装该版本,或者在第一次启动后将其永久安装一次的最后一种选择.

When I run the correct CAB files (three CAB) on running OS system it installs the 3.5 version and my application starts but when I reboot the OS again the changes are not saved and commit. There must be a solution to add the 3.5 version in the catalog before building the image or to install it on every boot up time or the last option to install it permanently once after the first boot.

如果您可以为我提供每次系统启动时都安装CAB的解决方案,它将对我有用,但是请考虑到我必须在系统启动时运行将使用SQL Server CE 3.5数据库的应用程序因此,CAB的安装必须在应用程序自动启动之前进行.

If you can provide me the solution to install the CABs every time the system boots up It will work for me but then take into the consideration that I have to run the application that will use the SQL Server CE 3.5 database on system start so the installation of the CABs must precede the application autostart.

谢谢.

推荐答案

您有一些选择.最不希望的是在启动时运行CAB.

You have a few options. The least desirable is to run the CAB at startup.

一种选择是,如果可能的话,将最新的SQLCE二进制文件放入操作系统.该目录可在目录中找到,前提是您已安装了所有更新的QFE .如果出于某种原因无法安装QFE,则始终可以在%WINCEROOT%\ OTHERS \ SQLCOMPACT 处替换Platfrom Builder提取的源二进制文件.

One option is to put the newest SQLCE binaries into the OS if you can. This is available in the catalog, provided you have all of the updated QFEs installed. If, for whatever reason, you can't install the QFEs, you could always replace the source binaries Platfrom Builder pulls from at %WINCEROOT%\OTHERS\SQLCOMPACT.

另一个选择是仅在应用程序部署中包括所有SQLCE二进制文件.您不需要CAB,只需将DLL放在您的应用程序文件夹中(如果您采用这种方法来防止本机DLL冲突,则从OS中删除SQLCE是个好主意).这些二进制文件的源位于%PROGRAM_FILES%\ Microsoft SQL Server Compact Edition \ v3.5 \ Devices .实际上,这是我首选的方法,因为对SQLCE的更新不需要新的操作系统.

Another option is to just include all of the SQLCE binaries in your application deployment. You don't need a CAB, just put the DLLs in your app folder (removing SQLCE from the OS is a good idea if you go this route to prevent native DLL collision). The source for these binaries is at %PROGRAM_FILES%\Microsoft SQL Server Compact Edition\v3.5\Devices. This is actually the route I prefer, as an update to SQLCE doesn't require a new OS.

这篇关于Windows CE 6.0-将SQL Server CE 3.5安装到运行时映像中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆