cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP Crystal Report runtime error when published in Docker

WagnerFVernier
Discoverer
0 Likes
919
hello all,

I am trying to run an executable made with Crystal Report runtime for Visual Studio Code, where we make a programmatic change to the text object. However, we would like to publish it in Docker.
But when I look at the internal logs inside the container, I am receiving an error (Docker)
MSI (s) (D8:FC) [09:25:37:438]: Product: SAP Crystal Reports runtime engine for .NET Framework (32-bit) -- Installation operation failed.
MSI (s) (D8:FC) [09:25:37:438]: Windows Installer installed the product. Product Name: SAP Crystal Reports runtime engine for .NET Framework (32-bit). Product Version: 13.0.38.5404. Product Language: 1033. Manufacturer: SAP. Installation success or error status: 1603.
Here is the code:

FROM mcr.microsoft.com/windows/servercore:ltsc2019
COPY ./System32/oledlg.dll C:\Windows\System32\oledlg.dll
COPY ./SysWOW64/oledlg.dll C:\Windows\SysWOW64\oledlg.dll
RUN powershell.exe -Command "icacls 'C:\Program Files (x86)\SAP BusinessObjects' /grant 'Everyone:(OI)(CI)F' /T"
COPY CR13SP38MSI32_0-80007712.MSI C:\CRRuntime.msi
RUN powershell.exe -Command "Start-Process msiexec.exe -ArgumentList '/i C:\CRRuntime.msi /qn /norestart ALLUSERS=1 /l*vx C:\cr_install_log.txt' -Wait"
RUN powershell.exe -Command "Remove-Item C:\CRRuntime.msi -Force"
WORKDIR /app
COPY ./publish/ .
CMD ["POC-GROUP.exe"]

The publish folder contains the build that has already been tested locally and works fine with this version of the MSI.
View Entire Topic
DonWilliams
Active Contributor
0 Likes

Hello,

I believe the cause is missing dependencies and likely Ms Paint is required to be installed.

CR uses the paint manager to process images, Paint is optional on Windows 11 now.

Install Paint and see if that resolves the issue.

Also, if you can upgrade your project to 64 bit, end of 2015 the 32 bit runtime will no longer be available.

Don

 

WagnerFVernier
Discoverer
0 Likes

Thank you Don!  It worked for us;