Problem with CR

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

Previous topic - Next topic

Randem

You have not removed one of the templates
 
C:Documents and SettingsManuel SacramentoLocal SettingsApplication DataRandem SystemsinnoscriptTemplatesCrystal Reports.tpl
 
Remove this one

sacramento

this is the new script but still have error in:
 
Source: c:\windows\system32\msstdfmt.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;
and
function GetCLSIDFldr(Param: String): String;
 
 
; 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 10, 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\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\crx_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\system32\msstdfmt.dll; DestDir: {sys}; 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 CRX_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  
;
 
 
[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;

sacramento

sory but you had write...i only have in my references the CR10...i go chance the Merge modules from 11.5 to 10

Randem

Yes, you have the code twice in the script. Remove one of the Crystal Reports Templates.

sacramento

do you know why i have this error:
 
Error in this line:  
function GetCLSIDFldr(Param: String): String;

Randem

Go back and re-reference. Make sure you have only version 12 referenced in your project.

sacramento

strange...i don't know why!!

Randem

Ok, but why is version 10 referenced and not version 12 in your project? Mis-matches will cause problems sooner or later.

sacramento

Initial yes i use CR10,but i had change to CR12,and installed the merge modules of 11.5

sacramento

the notebook that i had installed the app are not here in this moment...please give a few hours to the person take the PC and then i send you the file
 
Thanks

Randem

You reference Version 10
 
; Crystal Reports ActiveX Designer Run Time Library 10.0 - (craxdrt.dll)  
 
Is this the same installation that works on other machines?

sacramento

yes i have a few versions of CR installed,but I only use CR 12

Randem


sacramento

Yes work very well the CR 11.5 with CR 12...where i can find the crmsilog.txt file?

Randem

Hmmm, I also see version 8.0 in there also. You have CR versions 8 - 12 installed on your development machine?