Click here to Skip to main content
15,867,453 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I had an application that I created using Visual Studio 2010 which had a prerequisite of the 32 bit version of SAP Crystal Reports Runtime Engine for .NET Framework 4.0. (Appears to be version 13.0.2)

Now for the same set of customers I want to create an application using Visual Studio 2012 and have a prerequisite of the 32 bit version of SAP Crystal Reports Runtime Engine for .Net Framework. (Appears to be version 13.0.11)

My problem is when I attempt to install the the new program using ClickOnce, it fails if the previous version of the Crystal Reports redistributable is installed.

The error message I get is:
Component Crystal Reports for .NET (Force 32bit) V3.0.11 has failed to install with the following error message:<br />
"Fatal error during installation. "


And the install log file has a bunch of text, but ends with these last statements:
...<br />
<Removed some text><br />
...<br />
Installing using command 'C:\Windows\SysWOW64\msiexec.exe' and parameters ' -I "C:\Users\katies\AppData\Local\Temp\VSD2952.tmp\CrystalReports_Force32Bit_13_11\CRRuntime_32bit_13_0_11.msi" -q '<br />
Will attempt to elevate process.<br />
Process exited with code 1603<br />
Status of package 'Crystal Reports for .NET (Force 32bit) V3.0.11' after install is 'InstallFailed'


Note: The bootstrap package is one I had to manually create so that it would always install the 32 bit version of Crystal because my program targets 32 bit.

If I manually uninstall the previous Crystal Reports, the install works fine. Is there someway to get this to work automatically instead of having to force my users to manually uninstall before installing the new version? There must be a way to upgrade the version without these vague errors and manually uninstalling hassles. Does anyone have an idea for me to try?

----- Update -----
I posted this question both here and on SAP's forums. I was told that Crystal 13.0.11 was a bad version, it's been removed from their download site. I waited until the next version came out but I'm still have trouble. I also tested using the default bootstraps for the different versions of Crystal as prereqs on test programs. I still got the error so that suggests that the bootstrap that I made is not the problem. Perhaps this is a Microsoft ClickOnce bug? Or perhaps a Crystal issue when using ClickOnce? I still have not found a work around or explanation for my issue. Any advice would be appreciated.
Posted
Updated 30-Oct-14 9:25am
v2
Comments
[no name] 14-Sep-15 15:44pm    
Has anyone figured this out yet? I am coming across the same issue. The search continues.
Kschuler 14-Sep-15 16:04pm    
I was unable to find a way around this. I just had to make sure our help desk and IT Technicians knew about it and made a help document for users to install. Please let me know if you find a way. :)
[no name] 14-Sep-15 17:18pm    
I figured it out; there are a couple things that need to be done. Hope this helps others. Thanks to the references!!!

Reference #1: http://stackoverflow.com/questions/18463574/setup-has-detected-that-the-file-has-changed-since-it-was-initially-published
Reference #2: http://scn.sap.com/thread/3761314

Changes to make (modified for clarity):
================
1. In the following folder, you will find a product.xml file.
C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\Crystal Reports 4.0\ or C:\Program Files (x86)\Microsoft Visual Studio 14.0\SDK\Bootstrapper\Packages\Crystal Reports for .NET Framework 4.0\
2. Open the product.xml file in Notepad (or any text editor).
3. Under the PackageFiles section, you will find 2 HomeSite URLs that point to the 2 deployment packages. Copy each URL into your web browser and manually download the packages.
3. Once the packages are downloaded, copy them to the same folder as the product.xml file (see #1 above).
4. Under Commands section of the product.xml, find the command element and change the Arguments attribute to '/quiet /passive UPGRADE=1'
5. Save the product.xml, recompile and perform the deployment. CR should be upgraded as expected.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900