Hi randem, I have template file ComponentOne.tpl here it is:
[Files]
Source: C:WINDOWSsystem32tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:WINDOWSsystem32tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
[Run]
Filename: {app}c1regsvr.exe; Parameters: /u tidate8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}
Filename: {app}c1regsvr.exe; Parameters: /u tinumb8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}
In the last installation, error messagebox shows up GetLastError and tinumb8.ocx and tidate8.ocx cannot be registered. Please help... Thx
Lets see that script again and please use the latest version of InnoScript to create the script (Version 10.5 Build 6). My guess it that with Component One objects you need the correct VC runtime library installed. InnoScript should handle that for you and place it into the script.
Oww is InnoScript being updated to 10.5 build 6? I have 10.5 build 5. I didn't found the link to download InnoScript 10.5 build 6. Where can I download it? Thx
Link: http://://www.randemsystems.com/innoscript-setup (//http://://www.randemsystems.com/innoscript-setup)
; InnoScript Version 10.5 Build 5
; Randem Systems, Inc.
; Copyright (c) 2002 - 2011, 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 2)
; 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 23, 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\ComponentOne.tpl
;: 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\Crystal Reports.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\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=SilviaCell0100000Release
[Tasks]
Name: Desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: SQLDMOInstallation; Description: Install SQLDMO for SQL Server; GroupDescription: Database Support:; Check: IsSQLDMOInstalled;
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\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\c1regsvr.exe; DestDir: {app}; Flags: restartreplace sharedfile;
Source: C:\WINDOWS\system32\tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Common Files\Data Dynamics\ActiveBar2\Actbar2.ocx; DestDir: {cf}\Data Dynamics\ActiveBar2\; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\actsplash.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\WINDOWS\Installer\$PatchCache$\Managed\9040110900063D11C8EF10054038389C\11.0.5614\MSSTDFMT.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\Installer\$PatchCache$\Managed\9040110900063D11C8EF10054038389C\11.0.5614\MSCOMCTL.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\todg8.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\Comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\todl8.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\FindButton.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: D:\Project VB\Silvia Cell\SilviaCell.exe; DestDir: {app}; Flags: ignoreversion restartreplace;
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]
Filename: {app}\SilviaCell.url; Section: InternetShortcut; Key: URL; String:
[Icons]
Name: {group}\PrSilviaCell ; Filename : {app}\SilviaCell.exe; WorkingDir: {app}; IconFilename: {app}\PrSilviaCell.ico;
Name: {group}{cm:ProgramOnTheWeb, PrSilviaCell }; Filename: {app}\SilviaCell.url; IconFilename: {app}\PrSilviaCell.ico;
Name: {group}{cm:UninstallProgram, PrSilviaCell }; Filename: {uninstallexe};
Name: {commondesktop}\PrSilviaCell ; Filename: {app}\SilviaCell.exe; Tasks: Desktopicon ; WorkingDir: {app}; IconFilename: {app}\PrSilviaCell.ico;
[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}{code:LogFileName|crviewer.dll}; WorkingDir: {code:GetCLSIDFldr|!F62B9FA4-455F-4FE3-8A2D-205E4F0BCAFB@\11.5}\; 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: {app}\c1regsvr.exe; Parameters: /u tidate8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}
Filename: {app}\c1regsvr.exe; Parameters: /u tinumb8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}
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;
[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 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;
//============================================================================
My Windows is XP SP3 but why InnoScript detect it XP SP2? Is this cause the error of registering tinumb8.ocx and tidate8.ocx?
https://randemsystems.com/innoscript// (https://randemsystems.com/innoscript//) is still 10.5 build 5. You said 10.5 build 6. Is it already updated to 10.5 build 6?
Ok, Remove the ComponentOne template then regenerate the script with InnoScript 10.5 Build 6
(You may need to refresh your browser to see it)
If InnoScript reports Service Pack 2 then you have SP2. Are you using your development machine to test installations on? This is a MAJOR NO-NO!!!
Some bugs in 10.5 build 5, after the end of installation I can't use shortcut of my program in Desktop. The shortcut is created in Desktop but no icons so I can't run it from Desktop and Start Menu.
Install Version 10.5 Build 6, you already have 10.5 Build 5
BTW: You should be careful how quickly the moniker bug is thrown around when in most cases it is a user issue rather than an InnoScript issue.
IE.
1 - You report that your system is SP3 when your system reports it is SP2
2 - You report that you are installing Version 10.5 Build 5 when you should be installing Version 10.5 Build 6
3 - You are probably using your development system to test on.
etc...
Thanks for the info..
Question:
1. Are you using your development machine to test installations on? No, I don't test installation on my machine but on client machine. But actually my machine is XP SP3 not SP2.
2. I still can't get my desktop icon after installing on client machine. The shortcut is created successfully in desktop but picture icon doesn't shows up.
3. I already install 10.5 build 6, but still have trouble in registering tinumb8.ocx and tidate8.ocx. It's still appear the same error message.
Thanks
Lets See the script. A VC Runtime should have been included in the script.
So you mean the desktop icon of your application? If so then you need to include the icon in the installation for it to show up on their desktop.
; InnoScript Version 10.5 Build 6
; Randem Systems, Inc.
; Copyright (c) 2002 - 2011, 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.4.2 (a)
; Installed Inno Setup Version: 5.4.2 (a)
; Date: April 25, 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:\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: 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\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: C:\WINDOWS\system32\tidate8.ocx; 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: C:\WINDOWS\system32\actsplash.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\tinumb8.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\MSCOMCTL.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\todg8.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\Comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\todl8.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\FindButton.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: D:\Project VB\Silvia Cell\SilviaCell.exe; DestDir: {app}; Flags: ignoreversion restartreplace;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRTOWORDS_EN.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\UFMANAGER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\QUERYBUILDER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CHARTUI.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRANALYZER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDB_DICTIONARY.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_PDF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_RTF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_WORDW.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_XLS.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\U2FXML.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDEPLOY.REG; DestDir: {app}; Flags: ignoreversion;
Source: C:\Program Files\Business Objects\Common\3.5\bin\PARAMETERDESIGNER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRLOV.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\XERCES-C_2_1_0.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]
Filename: {app}\SilviaCell.url; Section: InternetShortcut; Key: URL; String:
[Icons]
Name: {group}\PrSilviaCell ; Filename : {app}\SilviaCell.exe; WorkingDir: {app}; IconFilename: {app}\PrSilviaCell.ico;
Name: {group}{cm:ProgramOnTheWeb, PrSilviaCell }; Filename: {app}\SilviaCell.url; IconFilename: {app}\PrSilviaCell.ico;
Name: {group}{cm:UninstallProgram, PrSilviaCell }; Filename: {uninstallexe};
Name: {commondesktop}\PrSilviaCell ; Filename: {app}\SilviaCell.exe; Tasks: Desktopicon ; WorkingDir: {app}; IconFilename: {app}\PrSilviaCell.ico;
[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: files; Name: {app}\SilviaCell.url
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]
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;
//============================================================================
I have remove template ComponentOne.tpl :
[Files]
Source: C:WINDOWSsystem32tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:WINDOWSsystem32tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
[Run]
Filename: {app}c1regsvr.exe; Parameters: /u tidate8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}
Filename: {app}c1regsvr.exe; Parameters: /u tinumb8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}
And I don't get VC Runtime that automatically added to InnoScript.
Ok, try including VC Runtime 2008 in your project since InnoScript did not recognize a file in your installation as a VC Runtime file.
(https://randemsystems.support/discus/messages/12/10141.jpg)
I can't see the caption of command box, your screen maybe to wide in my computer screen. I have 1024x768 resolution. Thx
OK, Sorry about that. Use the second button from the top for VC Runtimes it is VC Runtimes 2008. You can also look in the help section to see the full screen so that you know what is on it. We will work on the reszing for a smaller screen. What size screen do you have? (Not resolution)
I have 14 CRT LG Studioworks 505G
Ok, will look into resizing the screen but it was definitely not designed for a screen that small... Probably the smallest was 1280x800.
Did you add the VC Runtime 2008 to your script and test it?
Owww... please update InnoScript that can viewed perfectly in various screen resolution. I guess that the font is too big maybe u can make the font more smaller.
I am not tested yet in client machine, later I let you knoow about the test result. Thx
Try this Beta Version for screen resizing... Just replace the current InnoScript.exe file with this one in the installed location.
Great jobs randem thanks all menu in tab section is viewable clearly. I have 1 question how can I create SilviaCell.ico so that the shortcut can appear icon picture?
Creating an icon can be done in many different ways. First does your application have an icon? If so then you can use the same icon that you used in your exe. If not then you will need to create one or extract one from another file.
Yes my EXE application have icon, actually in the previous InnoScript version it is no problem
Ok, then just change the [Icon] Section to not use an icon file and it should default to the one in the exe.
Remove this parameter:
IconFilename: {app}PrSilviaCell.ico;
OK thanks, if I may suggest for icon file, better if InnoScript not adding IconFilename: {app}PrSilviaCell.ico; in the script automatically
This executable will automatically add the proper VC Runtime Installation to your script that ComponentOne needs to be able to register.
Unsafe File List
UnSafe.zip (https://randemsystems.support/index.php?topic=1.0) (7.6 k)
This file is the new format for the new executable to help it add the proper VC Runtime installation to your script. The file needs to be in the following location:
In Vista/Windows 7: C:\Users\
YOURUSERNAME\AppData\Local\Randem Systems\InnoScript\Release
In All Other Windows: C:\Documents and Settings\
YOURUSERNAME\Local Settings\Application Data\Randem Systems\InnoScript\Release
Ok, removing the iconfilename parameter... Unless a icon file name is chosen on the Parameters screen.
thx for the update, I have tested my installer using innoscript 10.5 build 7, still have error Class not registered loading for object with CLSID:{59245250-7A2F-11D0-9482-00A0C91110ED}, I wonder is it because of ComponentOne.tpl that I need to register or anything else?
As always I can't answer that kind of question without seeing your script to know what's in it or what's not in it.
Please post your current script.
; InnoScript Version 10.5 Build 7
; Randem Systems, Inc.
; Copyright (c) 2002 - 2011, 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.4.2 (a)
; Installed Inno Setup Version: 5.4.2 (a)
; Date: April 28, 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\ComponentOne.tpl
;: 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: C:\WINDOWS\system32\tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Common Files\Data Dynamics\ActiveBar2\Actbar2.ocx; DestDir: {cf}\Data Dynamics\ActiveBar2\; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\actsplash.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\WINDOWS\system32\MSCOMCTL.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\todg8.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\Comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\todl8.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\FindButton.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: D:\Project VB\Silvia Cell\SilviaCell.exe; DestDir: {app}; Flags: ignoreversion restartreplace;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRTOWORDS_EN.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\UFMANAGER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\QUERYBUILDER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CHARTUI.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRANALYZER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDB_DICTIONARY.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_PDF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_RTF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_WORDW.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_XLS.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\U2FXML.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDEPLOY.REG; DestDir: {app}; Flags: ignoreversion;
Source: C:\Program Files\Business Objects\Common\3.5\bin\PARAMETERDESIGNER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRLOV.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\XERCES-C_2_1_0.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}; IconFilename: {app}\PrSilviaCell.ico;
Name: {group}{cm:UninstallProgram, PrSilviaCell }; Filename: {uninstallexe};
Name: {commondesktop}\PrSilviaCell ; Filename: {app}\SilviaCell.exe; Tasks: Desktopicon ; WorkingDir: {app}; IconFilename: {app}\PrSilviaCell.ico;
[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: {app}\c1regsvr.exe; Parameters: /u tidate8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}
Filename: {app}\c1regsvr.exe; Parameters: /u tinumb8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}
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;
//============================================================================
There were several things that I suggested that you do that are still in the script. It will not get any better if you add them back in...
Remove the ComponentOne.tpl Template
Remove the 3.5 Files
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRTOWORDS_EN.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\UFMANAGER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\QUERYBUILDER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CHARTUI.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRANALYZER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDB_DICTIONARY.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_PDF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_RTF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_WORDW.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_XLS.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\U2FXML.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDEPLOY.REG; DestDir: {app}; Flags: ignoreversion;
Source: C:\Program Files\Business Objects\Common\3.5\bin\PARAMETERDESIGNER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRLOV.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\XERCES-C_2_1_0.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Why are you using these files from these locations:
Source: C:\WINDOWS\Installer\$PatchCache$\Managed\9040110900063D11C8EF10054038389C\11.0.5614\MSSTDFMT.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\Installer\$PatchCache$\Managed\9040110900063D11C8EF10054038389C\11.0.5614\MSCOMCTL.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Using files from the Windows system folder is a big no-no:
Source: C:\WINDOWS\system32\tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile
Source: C:\WINDOWS\system32\actsplash.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\WINDOWS\system32\MSCOMCTL.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\todg8.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\Comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\todl8.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\system32\FindButton.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
BTW: Version 10.5 build 7 has been released.
Actually I have tested to remove ComponentOne.tpl and BO FixPack 3.5 but still the same.
Why are you using these files from these locations:
Source: C:WINDOWSInstaller$PatchCache$Managed9040110900063D11C8EF10054038389C11.0.5614MSSTDFMT.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:WINDOWSInstaller$PatchCache$Managed9040110900063D11C8EF10054038389C11.0.5614MSCOMCTL.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
I don't understand why InnoScript added automatically and I don't know the effect if u don't guide me. My OCX file is mostly in WindowsSystem32 so what to do next? I have to regsvr32 all my OCX in my application folder?
Thx
When you use files from your Windows System32 folder you have to turn off a protection feature in Inno Setup and it is explained in the documentation of both Inno Setup and InnoScript why this is a very bad idea. It is also noted on a screen at the end of each run of InnoScript what to do if you are doing this. Running in unsafe mode is just so that you can locate the files you need. You copy those files to another folder after you make sure they are safe to deploy then use them from that folder.
(https://randemsystems.support/discus/messages/12/10154.jpg)
The only way InnoScript would search the strange folder locations is if the files are registered in that location and I have never seen them registered there.
Source: C:\WINDOWS\Installer\$PatchCache$\Managed\9040110900063D11C8EF10054038389C\11.0.5614\MSSTDFMT.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\WINDOWS\Installer\$PatchCache$\Managed\9040110900063D11C8EF10054038389C\11.0.5614\MSCOMCTL.OCX; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
You mentioned that you have made the changes yet I do not see the script to verify.
Hi randem thx for the explanation, but I still don't get it. Should I make Unsafe mode or Safe mode? What should I do to register tinum8.ocx and tidate8.ocx? I still get error message if I open my application if there are form using tinumb8.ocx and tidate8.ocx
You should use safe mode. I have no idea of what issues you are having because you don't show your script or the error messages you get and how you get them. Without this information you are asking me to guess...
This is SAFE mode:
; InnoScript Version 10.5 Build 7
; Randem Systems, Inc.
; Copyright (c) 2002 - 2011, 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.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: tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Common Files\Data Dynamics\ActiveBar2\Actbar2.ocx; DestDir: {cf}\Data Dynamics\ActiveBar2\; Flags: regserver restartreplace sharedfile;
Source: actsplash.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: MSCOMCTL.OCX; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: todg8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: Comdlg32.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: todl8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: FindButton.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: D:\Project VB\Silvia Cell\SilviaCell.exe; DestDir: {app}; Flags: ignoreversion restartreplace;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRTOWORDS_EN.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\UFMANAGER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\QUERYBUILDER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CHARTUI.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRANALYZER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDB_DICTIONARY.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_PDF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_RTF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_WORDW.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_XLS.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\U2FXML.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDEPLOY.REG; DestDir: {app}; Flags: ignoreversion;
Source: C:\Program Files\Business Objects\Common\3.5\bin\PARAMETERDESIGNER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRLOV.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\XERCES-C_2_1_0.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;
//============================================================================
This script is shown by RED color, what should I do? After I compile in InnoSetup, said error Source file D:Project VBSilvia CellScriptstidate8.ocx does't exist and so on the next file
Source: tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: actsplash.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: MSCOMCTL.OCX; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: todg8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: Comdlg32.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: todl8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: FindButton.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
(Message edited by bibin98 on April 28, 2011)
Yes, now you have to put in the search tab where to find those files... The basic procedure would be to copy the files from the system32 folder to another location then tell InnoScript to look there for the files.
This is my last script after I put the new Search tab in D:\Project VB\ Silvia Cell\Scripts, I wonder that tidate8.ocx and tinumb8.ocx can register correctly? Using regsvr32 or c1regsvr.exe? I was questioned this before that u explained before that ComponentOne use c1regsvr to register its componnent and not using regsvr32
; InnoScript Version 10.5 Build 7
; Randem Systems, Inc.
; Copyright (c) 2002 - 2011, 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.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: 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\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: C:\Program Files\Business Objects\Common\3.5\bin\CRTOWORDS_EN.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\UFMANAGER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\QUERYBUILDER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CHARTUI.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRANALYZER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDB_DICTIONARY.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_PDF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_RTF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_WORDW.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRXF_XLS.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\U2FXML.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRDEPLOY.REG; DestDir: {app}; Flags: ignoreversion;
Source: C:\Program Files\Business Objects\Common\3.5\bin\PARAMETERDESIGNER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\CRLOV.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\Business Objects\Common\3.5\bin\XERCES-C_2_1_0.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;
//============================================================================
And you really should install the latest version for you seem not to be following ALL of my directions.
Ok, now that looks good except for the 3.5 files that are still in the script. Now I am guessing that your system is using IE 6 or 7 nor IE 8 and your clients system is using IE 8?
Yes, I don't understand why BO 3.5 files is still automatically added in my script, I am using XP SP3 and IE8, my client XP SP2 maybe more lower cause it is old computer maybe Pentium 3 I don't check it and IE is default maybe IE 5 default in XP SP2
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)
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.
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
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
That CLSID is for MSBIND.dll not ComponentOne components. msbind.dll has been removed from your script.
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.
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.
Yupe I'm sorry if I make u complicated cause I'm really confuse. Here it is my project
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 (https://randemsystems.com)
; Support: https://randemsystems.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;
//============================================================================
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 (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.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;
//============================================================================
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.
I wonder my search folder is added automatically C:Program FilesBusiness ObjectsCommon3.5bin, should I remove?
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
TEMPLATE :
(https://randemsystems.support/discus/messages/12/10163.jpg)
SEARCH:
Look in the templates tab then double click on the template name to see what is in the template.
-- Release.tpl
[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).
-- CRYSTALL REPORTS.tpl
[InstallDelete]
Type: files; Name: {app}Install.log;
[Code]
//============================================================================
// 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 '0win32','', 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;
//============================================================================
-- SILVIA CELL.tpl (empty file 0 KB)
What is that for? Look in each template file to see if those files are in any of them...
I have look out the template file and I don;t found any BO FixPack. But I look out in Dependencies Tab there is BO FIxPack 3.5 file there
How about the add files tab? what is in there. I used your project and cannot duplicate what you have...
There is nothing important in Add Files cause it only contains .JPG file and .LIC and doesn't have a dependencies with BO FixPack 3.5. It's automatically added eventhough I don't check mark the Crystal Report 11.5
ADD FILES:
(https://randemsystems.support/discus/messages/12/10167.jpg)
This is my Project InnoScript
Ok, I duplicated your results with the files. Just put those 3.5 files in your unsafe file list or use the template information I gave you to remove the files or you can do it as you already have each time by editing the script.
Thanks for the information, now the installer is successfully installed at client machine. I don't see ComponentOne error again.
I still havef question, how InnoScript can registered tidate8.ocx and tinumb8.ocx whereas I don't include ciregsvr.exe
Great jobs!! Viva InnoScript
(Message edited by bibin98 on April 29, 2011)
That is because InnoScript determines the real reason the files wont register and then corrects the problem.
Is this because that I include VCRuntime 2008 so ComponentOne can automatically registered successfuly?
That is what InnoScript determined that you needed to register the file.
OK.... So if I don't include VCRuntime 2008 then InnoScript can't automatically registering ComponentOne? Is that correct?
That is correct for that machine, but it should be included for all installations.
OK thanks for the explanation.... Now I can use it to install my application that using ComponentOne. Viva InoScript !!!