简体   繁体   English

使用Installshield部署SqlLocalDb 2012

[英]Deploying SqlLocalDb 2012 using Installshield

I've made a simple application using windows forms that uses SqlLocalDb 2012, I want to create an installation file using InstallShield that should check wether SqlLocalDb 2012 is installed or not, if not I want to silent-install it to the client machine. 我使用使用SqlLocalDb 2012的Windows窗体制作了一个简单的应用程序,我想使用InstallShield创建一个安装文件,该文件应检查是否已安装SqlLocalDb 2012,如果没有,我希望将其静默安装到客户端计算机。

I couldn't figure out the way to check and include the SqlLocalDb msi(es) to my installation project. 我无法弄清楚将SqlLocalDb msi(es)包含到我的安装项目中的方法。

It's the first time I use InstallShield and I couldn't find any tutorial that would guide through the process. 这是我第一次使用InstallShield,却找不到任何指导该过程的教程。 Any suggestions? 有什么建议么?

Thank you in advance. 先感谢您。

The approach I would suggest depends on your project type, but the first approach below fits most cases pretty well. 我建议的方法取决于您的项目类型,但是下面的第一种方法非常适合大多数情况。

  • For Basic MSI projects or InstallScript MSI projects, I would suggest creating and using an InstallShield prerequisite. 对于Basic MSI项目或InstallScript MSI项目,我建议创建并使用InstallShield先决条件。 (This assumes you have at least the Professional edition, or requires finding a .prq file that someone else has created.) Armed with the name InstallShield prerequisite, you should be able to find a tutorial on creating and using them. (这假定您至少具有Professional版本,或者需要查找其他人创建的.prq文件。)使用InstallShield先决条件名称,您应该能够找到有关创建和使用它们的教程。

  • If you are using an InstallScript project, you could implement the check and application launch manually, or if your version of InstallShield supports prerequisites in InstallScript projects, just use the same approach. 如果使用的是InstallScript项目,则可以手动执行检查和应用程序启动,或者如果您的InstallShield版本支持InstallScript项目中的先决条件,则只需使用相同的方法即可。

  • In later versions of InstallShield with Advanced UI projects or Suite/Advanced UI projects, you can import the previously created prerequisite (or possibly create an equivalent) as a dependency package. 在带有Advanced UI项目或Suite / Advanced UI项目的InstallShield的更高版本中,您可以将先前创建的先决条件(或可能创建等效项)作为依赖项包导入。

In all cases you will need to know how to detect the package; 在所有情况下,您都需要知道如何检测程序包。 for .msi packages this is typically pretty straightfoward, but it may depend on the vendor's servicing mechanisms whether you should look for a product code, an upgrade code, or some other artifact. 对于.msi软件包,这通常很简单,但是是否要查找产品代码,升级代码或其他工件,可能取决于供应商的服务机制。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 VS2012:使用 InstallShield 时,我的实体框架模型未包含在我的项目输出中 - VS2012: My Entity Framework model doesn´t get included to my project output using InstallShield 在Visual Studio 2012中使用SqlServer 2012 Databse部署Windowsform应用程序 - Deploying Windowsform application with SqlServer 2012 Databse in Visual Studio 2012 使用 Visual Studio InstallShield 时出错 - error while using visual studio InstallShield 使用InstallShield LE更新现有安装 - Update an existing installation using InstallShield LE 使用installshield LE升级时如何保留某些文件? - how to keep certain files when upgrading using installshield LE? 使用 installshield 自定义向导将文件复制到目标文件夹 - copy files to destination folder using installshield custom wizard 如何使用自定义密码保护 SqlLocalDB 数据库文件 - How to protect SqlLocalDB database file with custom password 如何在没有管理员特权的情况下使用InstallShield为每个用户注册interop .net程序集 - How to register interop .net asssembly per user Without Administrator Privileges using InstallShield 使用 installshield 创建安装文件时 Windows 窗体的 Microsoft Access 数据库的位置 - Location of Microsoft access database for windows form when creating setup file using installshield 如何使用 installshield 静默安装 sql server 2008 r2 express - How to install sql server 2008 r2 express silently using installshield
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM