[英]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.