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
What version of InnoScript and Crystal Reports are you using.?
Did you deploy the CR Merge Modules?
Show your script.
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 (https://randemsystems.com)
; Support: https://randemsystems.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;
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.
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?
Are you saying the you have installed CR 12 with CR 11.5 merge modules and it worked?
Post the crmsilog.txt file. It will show what happened when the merge module was installed.
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
Hmmm, I also see version 8.0 in there also. You have CR versions 8 - 12 installed on your development machine?
Yes work very well the CR 11.5 with CR 12...where i can find the crmsilog.txt file?
in the {app} folder
yes i have a few versions of CR installed,but I only use CR 12
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?
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
Initial yes i use CR10,but i had change to CR12,and installed the merge modules of 11.5
Ok, but why is version 10 referenced and not version 12 in your project? Mis-matches will cause problems sooner or later.
strange...i don't know why!!
Go back and re-reference. Make sure you have only version 12 referenced in your project.
do you know why i have this error:
Error in this line:
function GetCLSIDFldr(Param: String): String;
Yes, you have the code twice in the script. Remove one of the Crystal Reports Templates.
sory but you had write...i only have in my references the CR10...i go chance the Merge modules from 11.5 to 10
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 (https://randemsystems.com)
; Support: https://randemsystems.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;
You have not removed one of the templates
C:Documents and SettingsManuel SacramentoLocal SettingsApplication DataRandem SystemsinnoscriptTemplatesCrystal Reports.tpl
Remove this one
innoscript said:
Cannot remove Crystal report template while a crystal installation is chosen
then unselect Crystal Reports then delete the CR templates then re-add Crystal Reports. The correct template will automatically be added.
ok...now only have this error:
Source: c:windowssystem32msstdfmt.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
I don't know if i can delete this line!!!
What error? You have only show the line.
Error:
Attempt to deploy DLL file from own Windows System directory...See the unsafe files topic....
Well, that says it in itself. You are attempting to deploy a file from your Windows\System32 folder. That is not allowed. Copy that file to another folder then add that folder to the search path and that error will go away.
Note: You should be SURE that is the correct file version to deploy...
ok...perfect...now the script is clean...
Let's wait for the PC and then reinstall the App and see what happen...
Let's see your script
; InnoScript Version 10.0 Build 5
; Randem Systems, Inc.
; Copyright (c) 2002 - 2009, Randem Systems, Inc.
; Website: https://randemsystems.com (https://randemsystems.com)
; Support: https://randemsystems.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\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: 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;
Source: F:\Norwin\Norwin\Ficheiro Windows System 32\*.*; DestDir: {cf}\Segmento\Release\Ficheiro Windows System 32\; Flags: ignoreversion recursesubdirs
[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;
Source: F:\Norwin\Norwin\Ficheiro Windows System 32\*.*; DestDir: {cf}\Segmento\Release\Ficheiro Windows System 32\; Flags: ignoreversion recursesubdirs
This is a VERY BAD idea. Add the folder to your Search Path Tab not the Add Folders Tab
Also have you used Virtual PC 2007 SP1 to test in different OS's. It is from MS and is free.
http://www.microsoft.com/downloads/details.aspx?FamilyID=28C97D22-6EB8-4A09-A7F7-F6C7A1F000B5&displaylang=en (http://www.microsoft.com/downloads/details.aspx?FamilyID=28C97D22-6EB8-4A09-A7F7-F6C7A1F000B5&displaylang=en)
this Virtual PC 2007 is to put in the script?or to install in my PC?
They have 2 versions of the Virtual PC 2007 --32 and 64...
Use Virtual PC 2007 Sp1 (32bit)
You install on your computer and you can create Virtual Machines with other OS's to test with. You should install the OS then back it up (zip it) so that after testing you can restore the vhd and you have a clean system to test with again.
; InnoScript Version 10.0 Build 5
; Randem Systems, Inc.
; Copyright (c) 2002 - 2009, Randem Systems, Inc.
; Website: https://randemsystems.com (https://randemsystems.com)
; Support: https://randemsystems.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\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: 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|!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;
Have you verified this file:
Source: c:windows$hf_mig$kb954459sp3qfemsxml6.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
It is being pulled from the Windows update folder. The Windows folder should be off limits to searches.
Hi Randem:
Attached you have the file you had request
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?
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
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}
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
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.
ok
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.
Hi randem:
That's a fact...I go remove this issues in the script and make a clean installation and see what happen
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.
ah ok...correct
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
That's great now let's see that script one more time...
; InnoScript Version 10.0 Build 5
; Randem Systems, Inc.
; Copyright (c) 2002 - 2009, Randem Systems, Inc.
; Website: https://randemsystems.com (https://randemsystems.com)
; Support: https://randemsystems.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;
Ok, That script looks very good. You should not have any installation problems now.