Setup project, SQL compact 4 prerequisites

一个人想着一个人 提交于 2019-12-11 06:43:30

问题


I have created a setup project in my application in order to include SQL compact 4 in the installation, as a prerequisite downloadable at the vendor's site (microsoft). I did everything thourg Visual Studio 2010 console (with SP1). Now, when I try to install the package, the setup doesn't realize that SQL compact is installed. Why? I don't want to use any other form of private deployment like copying the dlls and including them into my project. Thanks!


回答1:


Most likely the prerequisite is not configured correctly. Try creating your own custom prerequisite.

Visual Studio setup projects do not support custom prerequisite creation. However, it can be done by manually generating the required manifests.

These manifests can be generated automatically with the Bootstrapper Manifest Generator tool.

After generating the package manifests, you can add all these files (including the package) in a separate folder in the Visual Studio prerequisites folder, for example:

C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages

This way you can see your custom prerequisite when clicking Prerequisites button in your setup project properties page.

To detect SQL Server Compact 4 you can search for this registry entry:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server Compact Edition\v4.0\ENU\DesktopRuntimeVersion


来源:https://stackoverflow.com/questions/8078150/setup-project-sql-compact-4-prerequisites

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!