问题描述
我在我的应用程序中创建了一个安装项目,以便在安装中包含 SQL compact 4,作为可从供应商站点 (microsoft) 下载的先决条件.我在 Visual Studio 2010 控制台(带有 SP1)上做了所有事情.现在,当我尝试安装该软件包时,安装程序没有意识到安装了 SQL compact.为什么?我不想使用任何其他形式的私有部署,例如复制 dll 并将它们包含到我的项目中.谢谢!
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!
推荐答案
很可能是先决条件配置不正确.尝试创建您自己的自定义先决条件.
Most likely the prerequisite is not configured correctly. Try creating your own custom prerequisite.
Visual Studio 安装项目不支持自定义先决条件创建.但是,可以通过手动生成所需清单.
Visual Studio setup projects do not support custom prerequisite creation. However, it can be done by manually generating the required manifests.
这些清单可以使用 Bootstrapper Manifest Generator 工具自动生成.
These manifests can be generated automatically with the Bootstrapper Manifest Generator tool.
生成包清单后,您可以将所有这些文件(包括包)添加到 Visual Studio 先决条件文件夹中的单独文件夹中,例如:
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.
要检测 SQL Server Compact 4,您可以搜索此注册表项:
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
这篇关于设置项目,SQL compact 4 个先决条件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!