Problem with CR

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

Previous topic - Next topic

Randem

Ok, That script looks very good. You should not have any installation problems now.

sacramento

; 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 13, 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\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)
; Crystal ActiveX Report Viewer Library 10.0 - (crviewer.dll)
 
 
; --------------------------
;        Components
; --------------------------
 
; 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: f:\norwin\norwin\ficheiro windows system 32\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|!3C62B3DD-12BE-4941-A787-EA25415DCD27@\a.0}{code:LogFileName|crviewer.dll}; WorkingDir: {code:GetCLSIDFldr|!3C62B3DD-12BE-4941-A787-EA25415DCD27@\a.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;

Randem

That's great now let's see that script one more time...

sacramento

hi Randem:
 
The problem is resolved...i had change the reference to CR 10,in the project,and in fact the problem it was the reference to the Viewer.dll 8.0
 
Thanks a lot for your help

sacramento


Randem

The issue is not in the script but in the project. You need to Open the project and re-reference then crviewer.dll for CR 10, recompile and regenerate the script. Then all will be well.

sacramento

Hi randem:
 
That's a fact...I go remove this issues in the script and make a clean installation and see what happen

Randem

You know I thought about it. Why are you using crviewer.dll Version 8 when you have CR version 10 installed? If you referenced version 10 in your app you would not have all these issues and a clean straight forward install would ensue.

sacramento


Randem

If that does not work then re-comment that line then open the unsafe file list to remove crviewer.dll from that list so that it will be included in your deployment separately.

sacramento

Ok Randem...I do this but just monday...the PC that  have the problem as gone with other person and I just have the PC next monday...I will try your suggestion and then I report you...
 
Thanks a lot

Randem

Your app seems to be using version 8.0 of crviewer.dll so uncomment this line to see if this fixes it.
 
;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}

sacramento

The installation gone well but the error:
 
Component 'CRviewer.dll' or one of its dependencies not correctly registered:a file is missing or invalid  
 
remain

Randem

That is the file from your current installation, I imagine that one worked. The one I was looking for is the one that did not work, which is gone now.
 
So how did your installation go?

sacramento

 
 
Hi Randem:
 
Attached you have the file you had request