将 Crystal Report 安装程序添加到我的 Windows 应用程序安装程序
我正在开发一个使用水晶报表的应用程序。现在,目标机器可能没有安装 Crystal Report。
据我了解,水晶报表达到一定版本后可以下载和使用。 现在,我想确保当应用程序的安装项目运行时,它将检测是否安装了 Crystal Report(或与此相关的任何依赖项),并通过显示链接或将 Crystal Report 的安装与应用程序设置 MSI 文件。
I am developing an App that uses Crystal Report. Now, it maybe the case that the Target machine doesn't have Crystal Report installed.
I understand that Crystal Report up to a certain version can be downloaded and used.
Now, I want to ensure that when the Setup Project for the App runs, it will detect if Crystal Report( or any dependency for that matter) is installed and have them installed either by showing a link or bundling the setup for Crystal Report with the Application Setup MSI file.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这通常是通过 EXE 引导程序处理的先决条件来完成的。引导程序通常执行预定义的搜索以确定是否需要先决条件,并处理其安装。
如果您的安装创作工具不支持先决条件,您可以尝试以下操作:
http://msdn.microsoft.com/en-us/ Library/aa367579(VS.85).aspx
http://msdn.microsoft.com/en-us/ library/aa368062(VS.85).aspx
由于 Crystal Reports 安装程序也是基于 MSI,因此应在 InstallUISequence 中或在 InstallExecuteSequence -> 之后安排此自定义操作。 InstallFinalize 为异步。
This is usually done through prerequisites handled by an EXE bootstrapper. The bootstrapper usually performs predefined searches to determine if the prerequisite is required or not and also handles its installation.
If your setup authoring tool doesn't support prerequisites, you can try this:
http://msdn.microsoft.com/en-us/library/aa367579(VS.85).aspx
http://msdn.microsoft.com/en-us/library/aa368062(VS.85).aspx
Since the Crystal Reports installer is also MSI-based, this custom action should be scheduled in InstallUISequence or after InstallExecuteSequence -> InstallFinalize as asynchronous.