简体   繁体   English

在应用程序安装程序中静默安装Crystal Report?

[英]Silently install crystal report with my application setup?

I am working in Visual studio 2013. C# 4.5 win-form application. 我正在Visual Studio 2013中工作。C#4.5 Win-Form应用程序。 I am using crystal reports from many years. 我使用多年的水晶报告。 But the problem is that, Crystal report does not installs silently with my application setup. 但是问题在于,Crystal报表不会在我的应用程序设置中静默安装。 I search lots of options, but there is no solution to install crystal report silently with my application. 我搜索了很多选项,但是没有解决方案可以在应用程序中静默安装Crystal Report。

Is there any way to install crystal report silently with my application setup ? 有什么方法可以在我的应用程序安装程序中静默安装Crystal Report吗?

Create a pre-requisite in your installation. 在安装中创建前提条件。 The pre-requisites are xml based .prq files. 前提条件是基于xml的.prq文件。 The pre-requisite editor is where you can set the option to install it silently. 在必备编辑器中,您可以设置选项以使其以静默方式安装。

This will be based on the Crystal reports redistributable msi.The "one I created earlier" can be modified to send the silent flag (cmdline="/norestart" cmdlinesilent="/qn") for bootstrapping the crystal msi: 这将基于Crystal报告可再发行的msi。可以修改“我之前创建的一个”来发送静默标志(cmdline =“ / norestart” cmdlinesilent =“ / qn”)以引导水晶msi:

<?xml version="1.0" encoding="UTF-8"?>
<SetupPrereq>
    <conditions>
        <condition Type="1" Comparison="2" Path="HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{CE26F10F-C80F-4377-908B-1B7882AE2CE3}" FileName="" ReturnValue=""></condition>
    </conditions>
    <files>
        <file LocalFile="C:\Program Files (x86)\InstallShield\2011\Redist\0409\i386\CRRedist2008_x86.msi" URL="http://resources.businessobjects.com/support/downloads/redistributables/vs_2008/redist/x86/CRRedist2008_x86.msi" CheckSum="5C6DB57CEB6995BF44E1D273EA266AB1" FileSize="0,17960448"></file>
    </files>
    <execute file="CRRedist2008_x86.msi" cmdline="/norestart" cmdlinesilent="/qn" returncodetoreboot="1641,3010" requiresmsiengine="1"></execute>
    <properties Id="CRRedist2008_x86" Description="This installs Crystal Reports Basic for Visual Studio 2008 x86 Redistributable Package (32 bit)."></properties>
    <behavior Optional="1"></behavior>
</SetupPrereq>

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM