Skip to Content

SAP Crystal Reports with Visual Studio 2017: Problem with Windows Installer

We are using SAP Crystal Reports in our application. We use Windows Installer for the Setup project. In the past, we used Visual Studio 2010. With the same settings as we used now, the Setup program created with Visual Studio 2010 always checked whether the required version of SAP Crystal Reports was installed, and if not, it automatically installed it before installing our actual application.

This no longer works with Visual Studio 2017. The Setup program only installs our application without checking whether SAP Crystal Reports is installed or not. Therefore, if SAP Crystal Reports is not installed, it just installs our application and when we start it, we get an error message.

I checked Setup project -> Properties -> Prerequisites in Visual Studio 2017 and noticed that there is a Warning sign next to "SAP Crystal Reports Runtime Engine for .NET Framework". When I move the mouse over it it says that "Prerequisite could not be found for bootstrapping".

In Visual Studio 2010 this warning message is not displayed.

The product.xml which we use for the 32-bit version of SAP Crystal Reports has the following content:

<?xml version="1.0" encoding="utf-8" ?> 

  <!-- Defines list of files to be copied on build -->
    <PackageFile Name="CRRuntime_32bit_13_0_13.msi" 

    <DependsOnProduct Code="Microsoft.Net.Framework.2.0" />
    <DependsOnProduct Code="Microsoft.Data.Access.Components.2.8" />

    <RegistryCheck Property="CRRuntime32Version" Key="HKLM\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports" Value="CRRuntime32Version" /> 

  <Commands Reboot="Defer">
    <Command PackageFile="CRRuntime_32bit_13_0_13.msi"

      <!-- These checks determine whether the package is to be installed -->

        <!-- Comment out the below BypassIf entry if you want install the 32bit version CRRuntime redist in the target machine -->      
        <!-- ByPass if the Processor is not x86 -->
        <!-- BypassIf Property="ProcessorArchitecture" Compare="ValueNotEqualTo" Value="Intel"/ -->

        <!-- ByPass if the installed version is same or higher --> 
        <BypassIf Property="CRRuntime32Version" Compare="VersionGreaterThanOrEqualTo"  Value="13.0.13"/>
        <!-- Block install if user does not have admin privileges -->
        <FailIf Property="AdminUser" Compare="ValueEqualTo" Value="false" String="AdminRequired"/>

        <!-- Block install on Win95 -->
        <FailIf Property="Version9x" Compare="VersionLessThan" Value="4.10" String="InvalidPlatformWin9x"/>

        <!-- Block install on NT 4 or less -->
        <FailIf Property="VersionNT" Compare="VersionLessThan" Value="5.00" String="InvalidPlatformWinNT"/>


        <ExitCode Value="0" Result="Success"/>
        <ExitCode Value="1641" Result="SuccessReboot"/>
        <ExitCode Value="3010" Result="SuccessReboot"/>
        <DefaultExitCode Result="Fail" FormatMessageFromSystem="true" String="GeneralFailure" />


The product.xml for the 64-bit version is analogous.

Is it possible to fix this problem somehow and create a correctly working Setup program with Visual Studio 2017?

Thank you in advance for your answers.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Jun 01, 2017 at 08:12 PM

    Try searching first. 2017 not supported until SP 21 which you can get here when it becomes available:


    Add comment
    10|10000 characters needed characters exceeded

  • Nov 27, 2018 at 05:18 PM

    Hi, please, where is the SP download link in the above page??? I couldn't find any!! (SP 24). Best regards

    Add comment
    10|10000 characters needed characters exceeded

  • Nov 27, 2018 at 09:12 PM
    Add comment
    10|10000 characters needed characters exceeded