Problem with CR

Started by Randem, July 09, 2009, 01:50:14 AM

Previous topic - Next topic

Randem

I also see in your script you are using components of CR 10. Why are you using three different versions of CR for your app?
 
Versions 10, 11.5 and 12

Randem

Post the crmsilog.txt file. It will show what happened when the merge module was installed.

Randem

Are you saying the you have installed CR 12 with CR 11.5 merge modules and it worked?

sacramento

that's strange,because I have in a few computers the CR 11.5 installed with Vista and XP and works...I don't know what's happen this time with a notebook PC that i want installed the app.
Do you solutions do this?

Randem

It's simple. You cant deploy mis-matched items. If you are using CR 12 you can't deploy CR 11.5 Merge Modules, the CLSID's will not match and you will get unpredictable results.

sacramento

hi:
 
The version of innoscript is 10.0 build 5
The CR are 12.0
The merge modules are CRXI_5}
 
the script is:
 
; InnoScript Version 10.0  Build 5
; Randem Systems, Inc.
; Copyright (c) 2002 - 2009, Randem Systems, Inc.
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support
; OS: Windows XP 5.1 build 2600 (Service Pack 3)
 
; Derived from VB VBP Project File
 
; Designed for Inno Setup Version: 5.2.3
; Installed Inno Setup Version: 5.2.3
 
; Local Machine Settings. Use these settings as a template for your installation folders
 
; {app}           : C:\Program Files\Randem Systems\innoscript
; {appdata}       : C:\Documents and Settings\Manuel Sacramento\Application Data\Randem Systems\innoscript\Release\
; {localappdata}  : C:\Documents and Settings\Manuel Sacramento\Local Settings\Application Data\Randem Systems\innoscript\Release\
; {cf}            : C:\Program Files\Common Files\Randem Systems
; {tmp}           : C:\Documents and Settings\Manuel Sacramento\Local Settings\Temp\
; {commonappdata} : C:\Documents and Settings\All Users\Application Data\Randem Systems\innoscript\Release\
; {pf}            : C:\Program Files\
 
; Date: Julho 09, 2009
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 9\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   F:\Norwin\Norwin\Norwin.vbp
; Inno Setup Script Output File (.iss):   F:\InnoSetup Projectos\Norwin Release.iss
;         Script Template Files (.tpl):   C:\Documents and Settings\Manuel Sacramento\Local Settings\Application Data\Randem Systems\innoscript\Templates\Release.tpl
;                                     :   C:\Documents and Settings\Manuel Sacramento\Local Settings\Application Data\Randem Systems\innoscript\Templates\Crystal Reports.tpl
;                                     :   C:\Documents and Settings\Manuel Sacramento\Local Settings\Application Data\Randem Systems\innoscript\Release\Templates\Crystal Reports.tpl
 
; ------------------------
;        References
; ------------------------
 
; Microsoft DAO 3.6 Object Library - (dao360.dll)
; Crystal Reports ActiveX Designer Run Time Library 10.0 - (craxdrt.dll)
; Microsoft ActiveX Data Objects 2.5 Library - (msado25.tlb)
; Microsoft Data Formatting Object Library 6.0 (SP4) - (msstdfmt.dll)
; Microsoft XML, v6.0 - (msxml6.dll)
 
 
; --------------------------
;        Components
; --------------------------
 
; Crystal Report Viewer Control - (crviewer.dll)
; Microsoft Windows Common Controls 6.0 (SP6) - (Mscomctl.ocx)
; Microsoft FlexGrid Control 6.0 (SP3) - (MSFLXGRD.OCX)
; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
; Microsoft Windows Common Controls 5.0 (SP2) - (comctl32.ocx)
; Microsoft Tabbed Dialog Control 6.0 (SP5) - (TABCTL32.OCX)
; Active Resize Control Professional (VBGold Software) - (aresize.ocx)
 
 
[Setup]
SetupLogging=Yes
AppId=Norwin  
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=Norwin  1.0.046
AppVerName=Norwin  
AppPublisher=Segmento, Lda
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=1.0.046
VersionInfoVersion=1.0.046
AllowNoIcons=no
DefaultGroupName=Norwin  
DefaultDirName={pf}\Norwin  
AppCopyright=
PrivilegesRequired=None
MinVersion=0,6.0sp1
Compression=lzma
OutputBaseFilename=Norwin 1.0.046Release
 
[Tasks]
Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: AutoOSUpdater; Description: Install Support for Database Operations; GroupDescription: Install Database Support:
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:
 
[Files]
Source: f:\norwin\norwin\vb_dcom_mdac_jet_autosetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
Source: f:\norwin\norwin\crxi_5_rdc_redistribution.msi; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
Source: f:\norwin\norwin\norwin.mdb; DestDir: {app}; Flags:  ignoreversion;  
Source: f:\norwin\norwin\balancete.rpt; DestDir: {app}; Flags:  ignoreversion;  
Source: f:\norwin\norwin\balancetegeral.rpt; DestDir: {app}; Flags:  ignoreversion;  
Source: f:\norwin\norwin\decl.anualpeqretalhistas.rpt; DestDir: {app}; Flags:  ignoreversion;  
Source: f:\norwin\norwin\decl.iva.rpt; DestDir: {app}; Flags:  ignoreversion;  
Source: f:\norwin\norwin\guiapeqretalhistas.rpt; DestDir: {app}; Flags:  ignoreversion;  
Source: f:\norwin\norwin\guiapeqretalhistasreporte.rpt; DestDir: {app}; Flags:  ignoreversion;  
Source: f:\norwin\norwin\inventarioimobilizado.rpt; DestDir: {app}; Flags:  ignoreversion;  
Source: f:\norwin\norwin\listagemlancamentos.rpt; DestDir: {app}; Flags:  ignoreversion;  
Source: f:\norwin\norwin\mapaamortizacoes32.rpt; DestDir: {app}; Flags:  ignoreversion;  
Source: f:\norwin\norwin\mapaamortizacoes32usados.rpt; DestDir: {app}; Flags:  ignoreversion;  
Source: f:\norwin\norwin\maparetencao.rpt; DestDir: {app}; Flags:  ignoreversion;  
Source: c:\program files\common files\microsoft shared\dao\dao360.dll; DestDir: {cf}\microsoft shared\dao\; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\$hf_mig$\kb954459\sp3qfe\msxml6.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
Source: c:\windows\system32\mscomctl.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\msflxgrd.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\comctl32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\tabctl32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: c:\windows\system32\aresize.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: f:\norwin\norwin\norwin.exe; DestDir: {app}; Flags:  restartreplace ignoreversion;  
 
[INI]
Filename: {app}\Norwin.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}\Norwin ; Filename : {app}\Norwin.exe; WorkingDir: {app}
Name: {group}{cm:ProgramOnTheWeb, Norwin }; Filename: {app}\Norwin.url; IconFilename: {app}\Norwin.ico
Name: {group}{cm:UninstallProgram, Norwin }; Filename: {uninstallexe}
Name: {commondesktop}\Norwin ; Filename: {app}\Norwin.exe; Tasks: desktopicon; WorkingDir: {app}
 
[Run]
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: AutoOSUpdater
Filename: msiexec.exe; Parameters: /package CRXI_5_RDC_Redistribution.msi /passive /promptrestart /l* {app}\crmsilog.txt; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: CRInstallation
; Register the Crystal Reports Merge Module components that need to be registered in place where the Merge Modules installed them
;Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|!76691052-244D-4C07-8ECA-9FA4F1A25263@\a.0}{code:LogFileName|craxdrt.dll}; WorkingDir: {code:GetCLSIDFldr|!76691052-244D-4C07-8ECA-9FA4F1A25263@\a.0}\; StatusMsg: Registering craxdrt.dll; Tasks: CRInstallation; Flags: runascurrentuser
;Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|!C4847593-972C-11D0-9567-00A0C9273C2A@\8.0}{code:LogFileName|crviewer.dll}; WorkingDir: {code:GetCLSIDFldr|!C4847593-972C-11D0-9567-00A0C9273C2A@\8.0}\; StatusMsg: Registering crviewer.dll; Tasks: CRInstallation; Flags: runascurrentuser
Filename: {app}\Norwin.exe; Description: {cm:LaunchProgram, Norwin }; Flags: nowait postinstall skipifsilent; WorkingDir: {app}
 
[UninstallDelete]
Type: files; Name: {app}\Norwin.url
Type: dirifempty; Name: {app}
 
[InstallDelete]
Type: files; Name: {app}\Install.log;
 
[Registry]
 
Root: HKCU; Subkey: Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: {app}\Norwin.exe; ValueData: RUNASADMIN; Flags: uninsdeletevalue  
Root: HKLM; Subkey: Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers; ValueType: string; ValueName: {app}\Norwin.exe; ValueData: WINXPSP2; Flags: uninsdeletevalue  
;
 
 
[Comments]
 
 Template Processing first character indicators usage.
 
         No Indicator      Attempt replacement if cannot replace then add the line
          Plus Sign      Force addition of template line into script (no attempted replacement).
  ;      Semi-colon      Add line as a comment only. (No attempted replacement).
  -      Minus Sign      Delete the line. (No attempted replacement).
  &      Ampersand      Comment the line. (No attempted replacement).
 
[Code]
function GetCLSIDFldr(Param: String): String;
var
  Location: String;
  CSLID: String;
  LogFile: String;
  sStr: String;
begin
  CSLID := Param;
  StringChangeEx(CSLID, '!', '{', True);
  StringChangeEx(CSLID, '@', '}', True);
  LogFile := ExpandConstant('{app}')   '\Install.log';
  SaveStringToFile(LogFile, #13#10   CSLID   #13#10, True);
  if not RegQueryStringValue(HKEY_CLASSES_ROOT, 'TypeLib\'   CSLID   '\0\win32','', Location) then
     Result := 'Not Registered !!!'   #13#10   'Possible Wrong Crystal Reports Version Installed on Source Machine or '   #13#10   'Wrong CRystal Reports Merge Module Installed on Target Machine'   #13#10;
  begin
    Location := ExpandConstant(Location)
    sStr := #13#10   Location   #13#10   StringOfChar('*',70)   #13#10
    SaveStringToFile(LogFile, sStr, True);
    Result := ExtractFileDir(Location);
  end;
end;
function LogFileName(Filename: String): String;
var
  LogFile: String;
  sSTr: String;
begin
  LogFile := ExpandConstant('{app}')   '\Install.log';
  sStr := #13#10   'Registering '   Filename   #13#10;
  SaveStringToFile(LogFile, sStr, True);
  Result := Filename;
end;
function GetCLSIDFldr(Param: String): String;
var
  Location: String;
  CSLID: String;
  LogFile: String;
  sStr: String;
begin
  CSLID := Param;
  StringChangeEx(CSLID, '!', '{', True);
  StringChangeEx(CSLID, '@', '}', True);
 
  LogFile := ExpandConstant('{app}')   '\Install.log';
  SaveStringToFile(LogFile, #13#10   CSLID   #13#10, True);
 
  if not RegQueryStringValue(HKEY_CLASSES_ROOT, 'TypeLib\'   CSLID   '\0\win32','', Location) then
     Result := 'Not Registered !!!'   #13#10   'Possible Wrong Crystal Reports Version Installed on Source Machine or '   #13#10   'Wrong CRystal Reports Merge Module Installed on Target Machine'   #13#10;
     
  begin
    Location := ExpandConstant(Location)
    sStr := #13#10   Location   #13#10   StringOfChar('*',70)   #13#10
    SaveStringToFile(LogFile, sStr, True);
    Result := ExtractFileDir(Location);
  end;
end;
 
 
function LogFileName(Filename: String): String;
var
  LogFile: String;
  sSTr: String;
begin
  LogFile := ExpandConstant('{app}')   '\Install.log';
  sStr := #13#10   'Registering '   Filename   #13#10;
  SaveStringToFile(LogFile, sStr, True);
  Result := Filename;
end;
 
 
 
 
Error in this line:
function GetCLSIDFldr(Param: String): String;

Randem

What version of InnoScript and Crystal Reports are you using.?
 
Did you deploy the CR Merge Modules?
 
Show your script.

sacramento

HI:
After install my APP in Vista i have this error:
 
Component 'CRviewer.dll' or one of its dependencies not correctly registered:a file is missing or invalid
 
I had made a lot of thinks but nothing resolve the problem...
Something wrong with installation?
 
Thanks