Failed to register ComponentOne tinumb8.ocx

Started by bibin98, April 23, 2011, 07:30:14 AM

Previous topic - Next topic

Randem

Look in the templates tab then double click on the template name to see what is in the template.

bibin98


bibin98

I have remove in search tab and template that connected to BOFix 3.5 I already remove them all, but InnoScript automaticcaly added it again in the end of CREATE SCRIPT

bibin98

I wonder my search folder is added automatically C:Program FilesBusiness ObjectsCommon3.5bin, should I remove?

Randem

You could have InnoScript remove the BO 3.5 files automatically. I don't see how InnoScript includes them. I can not duplicate your results. Look in all your templates to make sure you have not added them in by mistake.

bibin98

I use your unsafe.fil and here it is the last result, I want to try to deploy to client machine, a few minutes again I will inform u success or not, cause MSBIND.DLL and MSDTFMT.DLL now included in the script. I already remove the BO 3.5 in InnoSetup cause it's automatically added to the script.
 
 
; InnoScript Version 10.5  Build 7
; Randem Systems, Inc.
; Copyright (c) 2002 - 2011, 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.4.2 (a)
; Installed Inno Setup Version: 5.4.2 (a)
 
; Date: April 29, 2011
 
; 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\Administrator\Application Data\Randem Systems\InnoScript\
; {localappdata}  : C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\
; {cf}            : C:\Program Files\Common Files\Randem Systems
; {tmp}           : C:\Documents and Settings\Administrator\Local Settings\Temp\
; {commonappdata} : C:\Documents and Settings\All Users\Application Data\Randem Systems\InnoScript\Release\
; {pf}            : C:\Program Files\
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   D:\Project VB\Silvia Cell\PrSilviaCell.vbp
; Inno Setup Script Output File (.iss):   D:\Project VB\Silvia Cell\Scripts\PrSilviaCell 1.0.0 Release.iss
;:   C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\Release.tpl
;:   D:\Project VB\Silvia Cell\installer\Templates\SilviaCell.tpl
;:   C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\VCRuntime.tpl
;:   C:\Program Files\Randem Systems\InnoScript\InnoScript 10\Templates\JetWXP.tpl
;:   C:\Program Files\Randem Systems\InnoScript\InnoScript 10\Templates\JetWVista.tpl
;:   C:\Program Files\Randem Systems\InnoScript\InnoScript 10\Templates\JetWin7.tpl
;:   C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\Crystal Reports.tpl
;:   C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\Sqldmo.tpl
 
; ------------------------
;        References
; ------------------------
 
; Microsoft ActiveX Data Objects 2.7 Library - (msado27.tlb)
; Microsoft Data Binding Collection VB 6.0 (SP4) - (msbind.dll)
; Microsoft SQLDMO Object Library - (sqldmo.dll)
; Microsoft Data Formatting Object Library 6.0 (SP6) - (MSSTDFMT.DLL)
; Crystal Reports ActiveX Designer Design and Runtime Library 11.5 - (craxddrt.dll)
; Microsoft Scripting Runtime - (scrrun.dll)
 
 
; --------------------------
;        Components
; --------------------------
 
; ComponentOne True DBDate 8.0 - (tidate8.ocx)
; Data Dynamics ActiveBar 2.0 - (Actbar2.ocx)
; ActiveSplash 1.0 Type Library - (actsplash.ocx)
; ComponentOne True DBNumber 8.0 - (tinumb8.ocx)
; Crystal ActiveX Report Viewer Library 11.5 - (CRViewer.dll)
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; ComponentOne True DBGrid Pro 8.0 (OLEDB) - (todg8.ocx)
; Microsoft Common Dialog Control 6.0 (SP6) - (Comdlg32.ocx)
; ComponentOne True DBList Pro 8.0 (OLEDB) - (todl8.ocx)
; FindButton by Bibin - (FindButton.ocx)
 
 
[Setup]
SetupLogging=Yes
AppId=Silvia Cell 2011  
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=Silvia Cell 2011 1.0.0
AppVerName=Silvia Cell 2011  
AppPublisher=Performance Edition Dec 2009
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=yes
DefaultGroupName=SilviaCell  
DefaultDirName={pf}\SilviaCell  
PrivilegesRequired=None
MinVersion=0,5.01
OnlyBelowVersion=0,6.0
Compression=lzma
OutputBaseFilename=SilviaCellRelease
 
[Tasks]
Name: Desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: SQLDMOInstallation; Description: Install SQLDMO for SQL Server; GroupDescription: Database Support:; Check: IsSQLDMOInstalled;
Name: VCRuntime2008; Description: Install VC 2008 Runtimes SP1; GroupDescription: VC Runtimes:
Name: ScriptingRuntime; Description: Install Microsoft's Scripting Runtime; GroupDescription: Install Scripting Runtime:
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:
Name: DatabaseSupport; Description: Install Database Support; GroupDescription: Install Database Support:
 
[Files]
Source: D:\Project VB\Silvia Cell\Report\*.*; DestDir: {app}\Report\; Flags: ignoreversion recursesubdirs
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\MSVBVM60.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\OLEAUT32.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\OLEPRO32.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\ASYCFILT.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\STDOLE2.TLB; DestDir: {sys}; Flags:  regtypelib restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\COMCAT.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\VB5DB.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile uninsneveruninstall;  
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\vcredist_x86_2008_SP1.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; AfterInstall: InstallVCRuntime('{tmp}\vcredist_x86_2008_SP1.exe','/q /l {sd}\vcredist_x86_2008_SP1.exe.txt'); Tasks: VCRuntime2008;
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\scripten.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; Tasks: ScriptingRuntime
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\CRXI_5_RDC_Redistribution.msi; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
Source: D:\Project VB\Silvia Cell\toolbar.tb2; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\Silvia Cell\1.jpg; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\Silvia Cell\2.jpg; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\Silvia Cell\3.jpg; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\Silvia Cell\Background.jpg; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\Silvia Cell\Config.lic; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\Silvia Cell\scell.spl; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\Silvia Cell\Scripts\tidate8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: D:\Project VB\Silvia Cell\Scripts\msbind.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Common Files\Data Dynamics\ActiveBar2\Actbar2.ocx; DestDir: {cf}\Data Dynamics\ActiveBar2\; Flags:  regserver restartreplace sharedfile;  
Source: D:\Project VB\Silvia Cell\Scripts\actsplash.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: D:\Project VB\Silvia Cell\Scripts\tinumb8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: D:\Project VB\Silvia Cell\Scripts\MSSTDFMT.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: D:\Project VB\Silvia Cell\Scripts\MSCOMCTL.OCX; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: D:\Project VB\Silvia Cell\Scripts\todg8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: D:\Project VB\Silvia Cell\Scripts\Comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: D:\Project VB\Silvia Cell\Scripts\todl8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: D:\Project VB\Silvia Cell\Scripts\FindButton.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: D:\Project VB\Silvia Cell\SilviaCell.exe; DestDir: {app}; Flags:  ignoreversion restartreplace;  
Source: D:\Project VB\Silvia Cell\Scripts\ATL71.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\mdac_typ_281.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Tasks: DatabaseSupport
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\mdac_typ_20.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\Jet35sp3.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\Jet40SP8_WXP.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 0,5.01; OnlyBelowVersion: 0,5.01sp1; Tasks: DatabaseSupport
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\JetComp.exe; DestDir: {sys}; Flags: sharedfile; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
;
; Source locations may need to be modified to your SQL Server installation location in order to find the SQL Server files below.
; These files should not be deployed if the SQL Server Client has already been installed on the target system.
;
Source: C:\Program Files\Microsoft SQL Server\80\Tools\Binn\SQLDMO.DLL; DestDir: {cf}\SqlServer\Binn\; Flags:  regserver restartreplace sharedfile; Tasks: SQLDMOInstallation;  
Source: C:\Program Files\Microsoft SQL Server\80\Tools\*.*; DestDir: {cf}\SqlServer\; Flags: ignoreversion recursesubdirs; Tasks: SQLDMOInstallation;  
 
[INI]
 
[Icons]
Name: {group}\PrSilviaCell ; Filename : {app}\SilviaCell.exe; WorkingDir: {app};
Name: {group}{cm:UninstallProgram, PrSilviaCell }; Filename: {uninstallexe};
Name: {commondesktop}\PrSilviaCell ; Filename: {app}\SilviaCell.exe; Tasks: Desktopicon ; WorkingDir: {app};
 
[Run]
Filename: {tmp}\scripten.exe; Parameters: /quiet /passive; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: ScriptingRuntime
Filename: msiexec.exe; Parameters: /package CRXI_5_RDC_Redistribution.msi /passive /promptrestart /l* {sd}\CRXI_5_RDC_Redistribution.msi.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|!F62B9FA4-455F-4FE3-8A2D-205E4F0BCAFB@\11.5.0.313}{code:LogFileName|crviewer.dll}; WorkingDir: {code:GetCLSIDFldr|!F62B9FA4-455F-4FE3-8A2D-205E4F0BCAFB@\11.5.0.313}\; StatusMsg: Registering Crystal ActiveX Report Viewer Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|!4FB2D832-C996-4EB1-BE0D-4DE953CF25F0@\11.5.0.313}{code:LogFileName|craxddrt.dll}; WorkingDir: {code:GetCLSIDFldr|!4FB2D832-C996-4EB1-BE0D-4DE953CF25F0@\11.5.0.313}\; StatusMsg: Registering Crystal Reports ActiveX Designer Design and Runtime Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|\11.5.0.313}{code:LogFileName|sacommoncontrols.dll}; WorkingDir: {code:GetCLSIDFldr|\11.5.0.313}\; StatusMsg: Registering Crystal Analysis Common Controls 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|\11.5.0.313}{code:LogFileName|saxmlserialize.dll}; WorkingDir: {code:GetCLSIDFldr|\11.5.0.313}\; StatusMsg: Registering Crystal Analysis XML Serialization Type Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|\11.5.0.313}{code:LogFileName|sacommlayer.dll}; WorkingDir: {code:GetCLSIDFldr|\11.5.0.313}\; StatusMsg: Registering Crystal Analysis Communication Layer Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|\11.5.0.313}{code:LogFileName|prompt.dll}; WorkingDir: {code:GetCLSIDFldr|\11.5.0.313}\; StatusMsg: Registering Crystal Reports Prompting 1.0 Type Library 11.5; Tasks: CRInstallation; Flags: runascurrentuser
Filename: {tmp}\mdac_typ_20.exe; Parameters: /Q /C:setup /QNT; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
Filename: {tmp}\mdac_typ_281.exe; Parameters: /Q /C:setup /QNT; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Tasks: DatabaseSupport
Filename: {tmp}\Jet35sp3.exe; Parameters: /Q; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0; Tasks: DatabaseSupport;
Filename: {tmp}\Jet40SP8_WXP.exe; Parameters: /Q; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 0,5.01; OnlyBelowVersion: 0,5.01sp1; Tasks: DatabaseSupport
Filename: {app}\SilviaCell.exe; Description: {cm:LaunchProgram, PrSilviaCell }; Flags: nowait postinstall skipifsilent runascurrentuser; WorkingDir: {app}
 
[UninstallDelete]
Type: dirifempty; Name: {app}
 
 
 
[InstallDelete]
Type: files; Name: {app}\Install.log;
 
[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]
Procedure InstallVCRuntime(Filename: String; Param: String);
var
  ErrorCode: Integer;
  begin
     ShellExec('', ExpandConstant(Filename), ExpandConstant(Param), '', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
  end;
function IsSQLDMOInstalled(): boolean;
var
OK: variant;
  begin
       Result := False;
       try
            OK := CreateOleObject('SQLDMO.SQLServer');
       except
            Result := True;
       end;
   end;
 
//============================================================================
// Get the CLSID from the registry for the queried file to locate where this file was installed by the CR merge module
// We do this so that we know where to register the file after installation.
//============================================================================
 
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;
 
//-----------------------------------------------------------------------------------------------------------------
// Log the filename process to a log file  
//-----------------------------------------------------------------------------------------------------------------
 
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

Here is what I come up with without adding or removing anything so I really don't know where you are getting all those extra files. I am missing four files of which I don't have on my system but that is fine.
 
; InnoScript Version 10.5  Build 7
; Randem Systems, Inc.
; Copyright (c) 2002 - 2011, Randem Systems, Inc.
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support
; OS: Windows NT 6.1 build 7601 (Service Pack 1)
 
; Derived from VB VBP Project File
 
; Designed for Inno Setup Version: 5.3.11 (u)
; Installed Inno Setup Version: 5.3.11 (u)
 
; Date: April 28, 2011
 
; Local Machine Settings. Use these settings as a template for your installation folders
 
; {app}           : C:\Program Files (x86)\Randem Systems\InnoScript
; {appdata}       : C:\Users\Ralph James\AppData\Roaming\Randem Systems\InnoScript\
; {localappdata}  : C:\Users\Ralph James\AppData\Local\Randem Systems\InnoScript\
; {cf}            : C:\Program Files (x86)\Common Files\Randem Systems
; {tmp}           : C:\Users\Ralph James\AppData\Local\Temp\
; {commonappdata} : C:\ProgramData\Randem Systems\InnoScript\Release\
; {pf}            : C:\Program Files (x86)\
 
;              VB Runtime Files Folder:   C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   E:\Temp\bibn98\Silvia_Cell-10157\PrSilviaCell.vbp
; Inno Setup Script Output File (.iss):   E:\Temp\bibn98\Silvia_Cell-10157\Scripts\PrSilviaCell 1.0.0 Release.iss
;:   E:\Temp\bibn98\Silvia_Cell-10157\Projects\Templates\SilviaCell.tpl
;:   C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\Templates\JetWXP.tpl
;:   C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\Templates\JetWVista.tpl
;:   C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\Templates\JetWin7.tpl
;:   C:\Users\Ralph James\AppData\Local\Randem Systems\InnoScript\Release\Templates\Crystal Reports.tpl
;:   C:\Users\Ralph James\AppData\Local\Randem Systems\InnoScript\Release\Templates\VCRuntime.tpl
;:   C:\Users\Ralph James\AppData\Local\Randem Systems\InnoScript\Release\Templates\Sqldmo.tpl
 
; ------------------------
;        References
; ------------------------
 
; Microsoft ActiveX Data Objects 2.7 Library - (msado27.tlb)
; Microsoft Data Binding Collection VB 6.0 (SP4) - (MSBIND.DLL)
; Microsoft SQLDMO Object Library - (sqldmo.dll)
; Microsoft Data Formatting Object Library 6.0 (SP6) - (MSSTDFMT.DLL)
; Crystal Reports ActiveX Designer Design and Runtime Library 11.5 - (craxddrt.dll)
; Microsoft Scripting Runtime - (scrrun.dll)
 
 
; --------------------------
;        Components
; --------------------------
 
; Unknown Component (Possibly not registered) - Actbar2.ocx - 2.0 - (Actbar2.ocx)
; Unknown Component (Possibly not registered) - actsplash.ocx - 1.0 - (actsplash.ocx)
; Unknown Component (Possibly not registered) - CRViewer.dll - b.5 - (CRViewer.dll)
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; Microsoft Common Dialog Control 6.0 (SP6) - (Comdlg32.ocx)
; Unknown Component (Possibly not registered) - FindButton.ocx - 1.0 - (FindButton.ocx)
 
 
[Setup]
SetupLogging=Yes
AppId=PrSilviaCell  
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=PrSilviaCell 1.0.0
AppVerName=PrSilviaCell  
AppPublisher=Performance Edition Dec 2009
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=yes
DefaultGroupName=Performance Edition Dec 2009\PrSilviaCell  
DefaultDirName={pf}\PrSilviaCell 1  
PrivilegesRequired=Admin
MinVersion=0,5.01
OnlyBelowVersion=0,7.0
Compression=lzma
OutputBaseFilename=SilviaCell0100000Release
 
[Tasks]
Name: Desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: SQLDMOInstallation; Description: Install SQLDMO for SQL Server; GroupDescription: Database Support:; Check: IsSQLDMOInstalled;
Name: VCRuntime2008; Description: Install VC 2008 Runtimes SP1; GroupDescription: VC Runtimes:
Name: ScriptingRuntime; Description: Install Microsoft's Scripting Runtime; GroupDescription: Install Scripting Runtime:
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:
Name: DatabaseSupport; Description: Install Database Support; GroupDescription: Install Database Support:
 
[Files]
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\MSVBVM60.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\OLEAUT32.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\OLEPRO32.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\ASYCFILT.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\STDOLE2.TLB; DestDir: {sys}; Flags:  regtypelib restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\COMCAT.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile uninsneveruninstall; OnlyBelowVersion: 0,6
Source: C:\Program Files (x86)\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\VB5DB.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile uninsneveruninstall;  
Source: E:\Server Data\Randem\Develop\Support\scripten.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; Tasks: ScriptingRuntime
Source: E:\Server Data\Randem\Develop\Support\CR Merge Module Installation\Version XI\RDC\CRXI_5_RDC_Redistribution\out\CRXI_5_RDC_Redistribution.MM\MSI\CRXI_5_RDC_Redistribution.msi; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
Source: E:\Temp\COTest\Group\Deploy\tidate8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: E:\Server Data\Randem\Develop\Deployable System Files\MSBIND.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: Actbar2.ocx; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: actsplash.ocx; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: E:\Temp\COTest\Group\Deploy\tinumb8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: E:\Server Data\Randem\Develop\Deployable System Files\MSSTDFMT.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: E:\Server Data\Randem\Develop\Deployable System Files\MSCOMCTL.OCX; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: E:\Temp\COTest\Group\Deploy\todg8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: E:\Server Data\Randem\Develop\Deployable System Files\Comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: E:\Temp\COTest\Group\Deploy\todl8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: FindButton.ocx; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: E:\Temp\bibn98\Silvia_Cell-10157\SilviaCell.exe; DestDir: {app}; Flags:  ignoreversion restartreplace;  
Source: E:\Server Data\Randem\Develop\Support\vcredist_x86_2008_SP1.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; AfterInstall: InstallVCRuntime('{tmp}\vcredist_x86_2008_SP1.exe','/q /l {sd}\vcredist_x86_2008_SP1.exe.txt'); Tasks: VCRuntime2008;
Source: CR85_RDC_Redistribution.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
Source: ..\Scripts\Output\Support\mdac_typ_281.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Tasks: DatabaseSupport
Source: ..\Scripts\Output\Support\mdac_typ_20.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
Source: ..\Scripts\Output\Support\Jet35sp3.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
Source: ..\Scripts\Output\Support\Jet40SP8_WXP.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 0,5.01; OnlyBelowVersion: 0,5.01sp1; Tasks: DatabaseSupport
Source: ..\Scripts\Output\Support\JetComp.exe; DestDir: {sys}; Flags: sharedfile; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
;
; Source locations may need to be modified to your SQL Server installation location in order to find the SQL Server files below.
; These files should not be deployed if the SQL Server Client has already been installed on the target system.
;
Source: C:\Program Files\Microsoft SQL Server\80\Tools\Binn\SQLDMO.DLL; DestDir: {cf}\SqlServer\Binn\; Flags:  regserver restartreplace sharedfile; Tasks: SQLDMOInstallation;  
Source: C:\Program Files\Microsoft SQL Server\80\Tools\*.*; DestDir: {cf}\SqlServer\; Flags: ignoreversion recursesubdirs; Tasks: SQLDMOInstallation;  
 
[INI]
Filename: {app}\SilviaCell.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}\PrSilviaCell ; Filename : {app}\SilviaCell.exe; WorkingDir: {app};
Name: {group}{cm:ProgramOnTheWeb, PrSilviaCell }; Filename: {app}\SilviaCell.url;
Name: {group}{cm:UninstallProgram, PrSilviaCell }; Filename: {uninstallexe};
Name: {commondesktop}\PrSilviaCell ; Filename: {app}\SilviaCell.exe; Tasks: Desktopicon ; WorkingDir: {app};
 
[Run]
Filename: {tmp}\scripten.exe; Parameters: /quiet /passive; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: ScriptingRuntime
Filename: {tmp}\CR85_RDC_Redistribution.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: CRInstallation
Filename: msiexec.exe; Parameters: /package CRXI_5_RDC_Redistribution.msi /passive /promptrestart /l* {sd}\CRXI_5_RDC_Redistribution.msi.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: {tmp}\mdac_typ_20.exe; Parameters: /Q /C:setup /QNT; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
Filename: {tmp}\mdac_typ_281.exe; Parameters: /Q /C:setup /QNT; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Tasks: DatabaseSupport
Filename: {tmp}\Jet35sp3.exe; Parameters: /Q; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.0,4.0; Tasks: DatabaseSupport;
Filename: {tmp}\Jet40SP8_WXP.exe; Parameters: /Q; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 0,5.01; OnlyBelowVersion: 0,5.01sp1; Tasks: DatabaseSupport
Filename: {app}\SilviaCell.exe; Description: {cm:LaunchProgram, PrSilviaCell }; Flags: nowait postinstall skipifsilent runascurrentuser; WorkingDir: {app}
 
[UninstallDelete]
Type: files; Name: {app}\SilviaCell.url
Type: dirifempty; Name: {app}
 
 
[InstallDelete]
Type: files; Name: {app}\Install.log;
 
[Code]
Procedure InstallVCRuntime(Filename: String; Param: String);
var
  ErrorCode: Integer;
  begin
     ShellExec('', ExpandConstant(Filename), ExpandConstant(Param), '', SW_SHOW, ewWaitUntilTerminated, ErrorCode);
  end;
function IsSQLDMOInstalled(): boolean;
var
OK: variant;
  begin
       Result := False;
       try
            OK := CreateOleObject('SQLDMO.SQLServer');
       except
            Result := True;
       end;
   end;
 
//============================================================================
// Get the CLSID from the registry for the queried file to locate where this file was installed by the CR merge module
// We do this so that we know where to register the file after installation.
//============================================================================
 
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;
 
//-----------------------------------------------------------------------------------------------------------------
// Log the filename process to a log file  
//-----------------------------------------------------------------------------------------------------------------
 
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;
 
//============================================================================

bibin98

Yupe I'm sorry if I make u complicated cause I'm really confuse. Here it is my project

Randem

Zip and post your .vbp project file (1 text file) along with your project exe file. Let me run it thru InnoScript. You seem to be confusing things.

Randem

And NO, why would you add more than EXACTLY what I stated to the unsafe file list? i was VERY specific in what I stated to add to the list.

Randem

That CLSID is for MSBIND.dll not ComponentOne components. msbind.dll has been removed from your script.

bibin98

I have tested in computer client and still have the same problem CLASS NOT REGISTERED
LOOKING FOR OBJECT WITH clsid:{59245250-7a2f-11d0-9482-00a0c91110ed}. What should I do? Update to IE8 or upgrade to SP3? I'm really lack of information about this. Thx

bibin98

I have added this in my Unsafe.fil, is it already correct?
 
msbind.dll
MSSTDFMT.DLL
TISHARE8.DLL
TIBASE8.DLL
ATL71.DLL
ETC-1-0-12-3.DLL
EBUS-3-3-2-4.DLL
LIBOCAHELPERW-2-13.DLL
FSSL-1-2-1-1.DLL
cslibu-2-1.dll
TODGUB8.DLL
TDBGPP8.DLL
cxlibw-3-1.dll
ebus-3-3-2-5.dll
etc-1-0-12-4.dll
libOCAHelperw-3-1.dll
CRTOWORDS_EN.DLL
UFMANAGER.DLL
QUERYBUILDER.DLL
CHARTUI.DLL
CRANALYZER.DLL
CRDB_DICTIONARY.DLL
CRXF_PDF.DLL
CRXF_RTF.DLL
CRXF_WORDW.DLL
CRXF_XLS.DLL
U2FXML.DLL
CRDEPLOY.REG
PARAMETERDESIGNER.DLL
CRLOV.DLL
XERCES-C_2_1_0.DLL

Randem

You will never correctly fix things by not following my directions. I mentioned how to not have the 3.5 files in your script several times. If your client does not have his computer updated (especially their IE) your files will never register properly on their computer.

bibin98

I wonder that tidate8.ocx and tinumb8.ocx can register correctly? Using regsvr32 or c1regsvr.exe? I was questioned this before and u explained that ComponentOne use c1regsvr to register it's componnent and not using regsvr32, and If I look at the script that the parameter is Source: D:Project VBSilvia CellScriptstinumb8.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;  
 
regserver here means regsvr32 or c1regsvr? By adding VCRuntime2008 can guarantee that tinum8.ocx and tidate8.ocx registered successfully? Thx
 
(Message edited by bibin98 on April 28, 2011)