Crystal Report 9 problem at runtime

Started by mlequi, April 08, 2008, 08:14:06 AM

Previous topic - Next topic

mlequi

Hello,
 
The installation works now on XP and on Vista. Thank you very much for your help.
 
I noticed something that might be important for you, on the destination PC, I had some older Crystal report files. For example, crqe.dll was dated 2002, while on your MSI file, crqe.dll is dated from 2005. This mixture was maybe a part of the problem?
 
Best regards, and again thank you.
Marc

Randem

Ok, that looks good. I have seen this work. Include crviewer.dll in your script and let it be registered.
 
Hint: Just remove the file from the unsafe file list and recreate your script.

mlequi

I attempt to register it because I suspected it could help me but I was wrong.
 
Therefore, the situation is now as follow:
 
I removed all CR files, including unicows.dll and cr9deploy.reg.  
 
I have the following message on vista and on XP when I try to run a report from my app:  
Runtime ERROR 429 ActiveX Component can't create object.
 
this is the new script
 
; InnoScript Version 9.0  Build 4
; Randem Systems, Inc.
; Copyright 2003-2008
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support/
; OS: Windows XP 5.1 build 2600 (Service Pack 2)
 
; Date: avril 10, 2008
 
;              VB Runtime Files Folder:   C:Program FilesRandem SystemsInnoScriptInnoScript 8VB 6 Redist Files
;     Visual Basic Project File (.vbp):   C:DatavbrInstalltestApp.vbp
; Inno Setup Script Output File (.iss):   D:DistributioninnortestApp2 Release.iss
;         Script Template Files (.tpl):   D:Documents and SettingslequimLocal SettingsApplication DataRandem SystemsinnoscriptTemplatesRelease.tpl
 
; ------------------------
;        References
; ------------------------
 
; Visual Basic For Applications - (MSVBVM60.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft Data Binding Collection VB 6.0 (SP4) - (MSBIND.DLL)
; Microsoft Data Formatting Object Library 6.0 (SP4) - (MSSTDFMT.DLL)
; Visual Component Manager 6 - (VCMMGR.DLL)
; Microsoft DAO 3.6 Object Library - (dao360.dll)
; Crystal Reports 9 ActiveX Designer Run Time Library - (craxdrt9.dll)
; Crystal Report Viewer Control 9 - (crviewer9.dll)
; Microsoft ActiveX Data Objects 2.6 Library - (msado26.tlb)
 
 
; --------------------------
;        Components
; --------------------------
 
; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; Microsoft Rich Textbox Control 6.0 (SP6) - (RICHTX32.OCX)
; Microsoft ADO Data Control 6.0 (SP4) (OLEDB) - (MSADODC.OCX)
; Microsoft DataGrid Control 6.0 (SP5) (OLEDB) - (MSDATGRD.OCX)
; Microsoft Tabbed Dialog Control 6.0 (SP6) - (TABCTL32.OCX)
; Microsoft Windows Common Controls-2 6.0 (SP4) - (MSCOMCT2.OCX)
 
 
[Setup]
AppId=testApp
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=testApp 2.15
AppVerName=testApp
AppPublisher=N/A
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=2.15
VersionInfoVersion=2.15
AllowNoIcons=no
DefaultGroupName=testApp
DefaultDirName={pf}InstalltestApp
AppCopyright=
PrivilegesRequired=Admin
MinVersion=0,5.01
Compression=lzma
OutputBaseFilename=testApp2215Release
 
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:
 
[Files]
Source: c:program filesrandem systemsinnoscriptinnoscript 8vb 6 redist filesmsvbvm60.dll; DestDir: {sys}; Flags: uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:program filesrandem systemsinnoscriptinnoscript 8vb 6 redist filesoleaut32.dll; DestDir: {sys}; Flags: uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:program filesrandem systemsinnoscriptinnoscript 8vb 6 redist filesolepro32.dll; DestDir: {sys}; Flags: uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:program filesrandem systemsinnoscriptinnoscript 8vb 6 redist filesasycfilt.dll; DestDir: {sys}; Flags: uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:program filesrandem systemsinnoscriptinnoscript 8vb 6 redist filesstdole2.tlb; DestDir: {sys}; Flags: uninsneveruninstall restartreplace regtypelib; OnlyBelowVersion: 0,6
Source: c:program filesrandem systemsinnoscriptinnoscript 8vb 6 redist filescomcat.dll; DestDir: {sys}; Flags: uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:program filesrandem systemsinnoscriptinnoscript 8vb 6 redist filesvb5db.dll; DestDir: {sys}; Flags: uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:program filesrandem systemsinnoscriptinnoscript 8cr 9 redist filescr9_rdc_redistribution.msi; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
Source: c:program filesrandem systemsinnoscriptinnoscript 8os x miscmsbind.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 8os x miscmsstdfmt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 8os x miscvcmmgr.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 8os x miscdao360.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 8vb 6 redist filescomdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 8os x miscmscomctl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:datavbrTestAPP2.exe; DestDir: {app}; Flags:  restartreplace ignoreversion;
Source: c:program filesrandem systemsinnoscriptinnoscript 8os x miscrichtx32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 8os x miscmsadodc.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 8os x miscmsdatgrd.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 8os x misctabctl32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
Source: c:program filesrandem systemsinnoscriptinnoscript 8os x miscmscomct2.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
 
[INI]
Filename: {app}testApp2.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}InstalltestApp; Filename : {app}testApp2.exe; WorkingDir: {app}
Name: {group}{cm:ProgramOnTheWeb, InstalltestApp }; Filename: {app}testApp2.url; IconFilename: {app}InstalltestApp.ico
Name: {group}{cm:UninstallProgram, InstalltestApp }; Filename: {uninstallexe}
Name: {commondesktop}InstalltestApp; Filename: {app}testApp2.exe; Tasks: desktopicon; WorkingDir: {app}
 
[Run]
Filename: msiexec.exe; Parameters: /package {tmp}CR9_RDC_Redistribution.msi /passive; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: CRInstallation
Filename: {app}testApp2.exe; Description: {cm:LaunchProgram, InstalltestApp }; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
 
[UninstallDelete]
Type: files; Name: {app}testApp2.url
Type: dirifempty; Name: {app}
 
[Registry]
Root: HKCU; Subkey: SoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers; ValueType: string; ValueName: {app}testApp2.exe; ValueData: RUNASADMIN; Flags: uninsdeletevalue
Root: HKLM; Subkey: SoftwareMicrosoftWindows NTCurrentVersionAppCompatFlagsLayers; ValueType: string; ValueName: {app}testApp2.exe; ValueData: WINXPSP2; Flags: uninsdeletevalue
 
(Message edited by mlequi on April 10, 2008)

Randem

Why did you attempt to register craxdrt9.dll?  
Is your Vista up to date on Custom Windows Updates?

mlequi

I removed all CR files, including unicows.dll and cr9deploy.reg.
 
Now I have the following message on vista when I try to run a report from my app:
Runtime ERROR 429 ActiveX Component can't create object.
 
I tryed to register manually with regsvr32 the file craxdrt9.dll and then I got the message when I try to run a report from my application.
 
Faulting application TestAPP2.exe, version 2.1.0.5, time stamp 0x47d89dc9, faulting module crqe.dll, version 9.2.1.1839, time stamp 0x431e9b4e, exception code 0xc0000005, fault offset 0x000822c9, process id 0xf18, application start time 0x01c89b29cb7163e7.
 
Marc
 
(Message edited by mlequi on April 10, 2008)

Randem

You need to remove ALL CR files and deploy the Merge module or you are asking for trouble.
 
Just put those CR files in your script in the Unsafe file list and they will automatically be removed. Or better yet all the dll's in the CR folder.

mlequi

Hi,
I have this problem both on Vista and on XP. The example shown here comes from XP.
 
here is the script. I have included CR 9 MSI, but I did not remove any crystal report file detected by innoscript.
 
; InnoScript Version 9.0  Build 4
; Randem Systems, Inc.
; Copyright 2003-2008
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support
; OS: Windows XP 5.1 build 2600 (Service Pack 2)
 
; Date: avril 08, 2008
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 8\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   C:\Data\vb\r\InstallTestAPP.vbp
; Inno Setup Script Output File (.iss):   D:\Distribution\inno\r\TestAPP2 Release.iss
;         Script Template Files (.tpl):   D:\Documents and Settings\lequim\Local Settings\Application Data\Randem Systems\innoscript\Templates\Release.tpl
 
; ------------------------
;        References
; ------------------------
 
; Visual Basic For Applications - (MSVBVM60.DLL)
; OLE Automation - (STDOLE2.TLB)
; Microsoft Data Binding Collection VB 6.0 (SP4) - (MSBIND.DLL)
; Microsoft Data Formatting Object Library 6.0 (SP4) - (MSSTDFMT.DLL)
; Visual Component Manager 6 - (VCMMGR.DLL)
; Microsoft DAO 3.6 Object Library - (dao360.dll)
; Crystal Reports 9 ActiveX Designer Run Time Library - (craxdrt9.dll)
; Crystal Report Viewer Control 9 - (crviewer9.dll)
; Microsoft ActiveX Data Objects 2.6 Library - (msado26.tlb)
; Crystal Query Engine 1.0 - (CRQE.DLL)
 
 
; --------------------------
;        Components
; --------------------------
 
; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; Microsoft Rich Textbox Control 6.0 (SP6) - (RICHTX32.OCX)
; Microsoft ADO Data Control 6.0 (SP4) (OLEDB) - (MSADODC.OCX)
; Microsoft DataGrid Control 6.0 (SP5) (OLEDB) - (MSDATGRD.OCX)
; Microsoft Tabbed Dialog Control 6.0 (SP6) - (TABCTL32.OCX)
; Microsoft Windows Common Controls-2 6.0 (SP4) - (MSCOMCT2.OCX)
 
 
[Setup]
AppId=TestAPP  
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=TestAPP 2.15
AppVerName=TestAPP  
AppPublisher=N/A
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=2.15
VersionInfoVersion=2.15
AllowNoIcons=no
DefaultGroupName=TestAPP  
DefaultDirName={pf}\InstallTestAPP
AppCopyright=
PrivilegesRequired=Admin
MinVersion=0,5.01
Compression=lzma
OutputBaseFilename=TestAPP2215Release
 
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:
 
[Files]
Source: c:\program files\randem systems\innoscript\innoscript 8\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags:  uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 8\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags:  uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 8\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags:  uninsneveruninstall regserver restartreplace sharedfile; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 8\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags:  uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 8\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags:  uninsneveruninstall restartreplace regtypelib; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 8\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags:  uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 8\vb 6 redist files\vb5db.dll; DestDir: {sys}; Flags:  uninsneveruninstall; OnlyBelowVersion: 0,6
Source: c:\program files\randem systems\innoscript\innoscript 8\cr 9 redist files\cr9_rdc_redistribution.msi; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
Source: c:\program files\randem systems\innoscript\innoscript 8\os x misc\msbind.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\randem systems\innoscript\innoscript 8\os x misc\msstdfmt.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\randem systems\innoscript\innoscript 8\os x misc\vcmmgr.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\common files\microsoft shared\dao\dao360.dll; DestDir: {cf}\microsoft shared\dao\; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\crystal decisions\report designer component\craxdrt9.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\common files\crystal decisions\2.0\crystalreportviewers\activexviewer\crviewer9.dll; DestDir: {cf}\crystal decisions\2.0\crystalreportviewers\activexviewer\; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\randem systems\innoscript\innoscript 8\vb 6 redist files\comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\randem systems\innoscript\innoscript 8\os x misc\mscomctl.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\randem systems\innoscript\innoscript 8\os x misc\richtx32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\randem systems\innoscript\innoscript 8\os x misc\msadodc.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\randem systems\innoscript\innoscript 8\os x misc\msdatgrd.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\randem systems\innoscript\innoscript 8\os x misc\tabctl32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\randem systems\innoscript\innoscript 8\os x misc\mscomct2.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\data\vb\r\TestAPP2.exe; DestDir: {app}; Flags:  restartreplace ignoreversion;  
Source: c:\program files\cdex_150\unicows.dll; DestDir: {sys}; Flags:  ignoreversion;  
Source: c:\program files\common files\crystal decisions\2.0\bin\crtowords_en.dll; DestDir: {cf}\crystal decisions\2.0\bin\; Flags:  ignoreversion;  
Source: c:\program files\common files\crystal decisions\2.0\bin\ufmanager.dll; DestDir: {cf}\crystal decisions\2.0\bin\; Flags:  ignoreversion;  
Source: c:\program files\common files\crystal decisions\2.0\bin\crqe.dll; DestDir: {cf}\crystal decisions\2.0\bin\; Flags:  regserver restartreplace sharedfile;  
Source: c:\program files\common files\crystal decisions\2.0\bin\querybuilder.dll; DestDir: {cf}\crystal decisions\2.0\bin\; Flags:  ignoreversion;  
Source: c:\program files\common files\crystal decisions\2.0\bin\crxf_rtf.dll; DestDir: {cf}\crystal decisions\2.0\bin\; Flags:  ignoreversion;  
Source: c:\program files\common files\crystal decisions\2.0\bin\crxf_wordw.dll; DestDir: {cf}\crystal decisions\2.0\bin\; Flags:  ignoreversion;  
Source: c:\program files\common files\crystal decisions\2.0\bin\crxf_xls.dll; DestDir: {cf}\crystal decisions\2.0\bin\; Flags:  ignoreversion;  
Source: c:\program files\common files\crystal decisions\2.0\bin\crxf_pdf.dll; DestDir: {cf}\crystal decisions\2.0\bin\; Flags:  ignoreversion;  
Source: c:\program files\common files\crystal decisions\2.0\bin\u2fxml.dll; DestDir: {cf}\crystal decisions\2.0\bin\; Flags:  ignoreversion;  
Source: c:\program files\common files\crystal decisions\2.0\bin\cr9deploy.reg; DestDir: {cf}\crystal decisions\2.0\bin\; Flags:  ignoreversion;  
Source: c:\program files\common files\microsoft shared\office10\usp10.dll; DestDir: {cf}\microsoft shared\office10\; Flags:  ignoreversion;  
 
[INI]
Filename: {app}\TestAPP2.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}\InstallTestAPP ; Filename : {app}\TestAPP2.exe; WorkingDir: {app}
Name: {group}{cm:ProgramOnTheWeb, InstallTestAPP }; Filename: {app}\TestAPP2.url; IconFilename: {app}\InstallTestAPP.ico
Name: {group}{cm:UninstallProgram, InstallTestAPP }; Filename: {uninstallexe}
Name: {commondesktop}\InstallTestAPP ; Filename: {app}\TestAPP2.exe; Tasks: desktopicon; WorkingDir: {app}
 
[Run]
Filename: msiexec.exe; Parameters: /package {tmp}\CR9_RDC_Redistribution.msi /passive; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: CRInstallation
Filename: {app}\TestAPP2.exe; Description: {cm:LaunchProgram, InstallTestAPP }; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
 
[UninstallDelete]
Type: files; Name: {app}\TestAPP2.url
Type: dirifempty; Name: {app}
 
[Registry]
Root: HKCU; Subkey: Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: {app}\TestAPP2.exe; ValueData: RUNASADMIN; Flags: uninsdeletevalue  
Root: HKLM; Subkey: Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: {app}\TestAPP2.exe; ValueData: WINXPSP2; Flags: uninsdeletevalue

Randem

Please post your script. Are you getting this error message on Vista?

mlequi

Dear all, I used to install my VB6 application with Crystal report 9 using MS Installer.. Working fine on XP but not on vista. Therefore I switched to Innoscript. The installation works now very fine, but at runtime, I have an error message like. Application failure app.exe, version 2.1, module failing crqe.dll, version 9.2.1.1839, adress of failure 0x000822c9. I suppose that the problem is with CR9. In innoscript, I use the cr9 merge module msi available on randem site. I must say I am a bit lost, and I would really appreciate some help.
Thank you,
Marc