Why 10.2.14 better than 10.3 if using CR 11.5

Started by bibin98, July 19, 2010, 03:17:12 PM

Previous topic - Next topic

Randem

Let me correct something there, In the [Run] Section you have to use the location where you installed the files on the target machine...

bibin98

OK thanks a lot for the info.... I'll try it..

Randem

You have to change the paths to point to the location on your machine where the files are located...

bibin98

OK thanks for the info....
[Run]
Filename: {app}Programsc1regsvr.exe; Parameters: /u olch2x7.ocx; Flags: skipifdoesntexist; WorkingDir: {app}Programs  
 
I have several questions:
What means by {app}Programs? My c1regsvr.exe in C:Program FilesComponentOne StudioChart8Bin, so what i have to do?
 
And what is WorkingDir: {app}Programs

Randem

A template file is nothing more that a text file that have one or more Inno Setup sections in it that will be merged into the created script.
 
Use notepad to create the .tpl file then tell InnoScript where to find it using the Template tab. Upon the next run of InnoScript the template will be incorporated into the new script.

bibin98

How can I create a template? TPL file? I just copy that script in my TPL file?

Randem

Here is one example of what to include in a template that will include the files when you include the template with your InnoScript project:
 
[Run]
Filename: {app}Programsc1regsvr.exe; Parameters: /u olch2x7.ocx; Flags: skipifdoesntexist; WorkingDir: {app}Programs
 
 
BTW: External Installs Tab and Template Tab are two different things

bibin98

How can I use a template with the files in the External Install Tab? Can u give me an example 4 me? thanks

Randem

You install either one they are basically the same. Once you have InnoScript installed all you need is the update but re-installing InnoScript will not hurt either.
 
There is no automatic way for InnoScript to install those file. You would either have to use a template with the files in it the way you want and InnoScript can automatically add the template to your script (the easiest way). Or you can add the files and commands in the External Install Tab.

bibin98

I have some question, which version that I have to install: InnoScript 10.3 Build 3 or InnoScriptUpdateInstall? Or I need to install both of them? Which one that I have to install first?

bibin98

OK thanks for the info....
 
I wonder that InnoScript can handle to register ComponentOne uses C1REGSVR.EXE? Can u tell me how to do it automatically using InnoScript?

Randem

Just as I thought ComponentOne uses C1REGSVR.EXE to register those files which will not register with MS's RegSvr32.exe. You will need to find this file from ComponentOne and register the files with it.


Randem

OK, Download the new version of InnoScript (Version 10.2 Build 3) and the latest version of VB_VC_DCOM_MDAC_JET_AutoSetup.exe There has been some changes to correct some issues.
 
InnoScript will now handle SQLDMO installation and VB_VC_DCOM_MDAC_JET_AutoSetup.exe will install the VC Runtime files without the error.
 
The other issue in your script is the ComponentOne files. Since you are taking these files from your Windows System folder (which is a no-no) they might not be redistributable or may need a seperate file to register them. See what ComponentOne says about this.
 
Also look at the dependency list connected with those ComponentOne files to see what other files are required for it to work.

bibin98

Hi randem, sorry taking so long to reply the message...
 
Below I described my system:
1. I am running XP SP3
2. VB6   SP6
3. SQL Server 2000   SP4
4. ComponentOne ActiveX 2007
5. CR 11.5
 
And this is my InnoScript:
; InnoScript Version 10.3  Build 0
; Randem Systems, Inc.
; Copyright (c) 2002 - 2010, Randem Systems, Inc.
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support
; OS: Windows XP 5.1 build 2600 (Service Pack 3)
 
; Derived from VB VBP Project File
 
; Designed for Inno Setup Version: 5.3.9 (a)
; Installed Inno Setup Version: 5.3.9 (a)
 
; 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\
 
; Date: July 18, 2010
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   G:\Project VB\Goho\PrGoho.vbp
; Inno Setup Script Output File (.iss):   G:\Project VB\Goho\Scripts\PrGoho 1.0.0 Release.iss
;:   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\Release.tpl
 
; ------------------------
;        References
; ------------------------
 
; OLE Automation - (stdole2.tlb)
; 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)
; ComponentOne Sizer/Tab Controls 8.0 - (c1sizer.ocx)
; ComponentOne True DBContainer3D 8.0 - (ticon3d8.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=Gordyn House  
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=Gordyn House 1.0.0
AppVerName=Gordyn House  
AppPublisher=Gordyn House
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=yes
DefaultGroupName=Performance Edition Dec 2009\Gordyn House  
DefaultDirName={pf}\Gordyn House  
PrivilegesRequired=None
MinVersion=0,5.01
Compression=lzma
OutputBaseFilename=PrGoho0100000Release
 
[Tasks]
Name: Desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: AutoOSUpdater; Description: Install Support for Database Operations; GroupDescription: Install Database Support:
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:
Name: ScriptingRuntime; Description: Install Microsoft's Scripting Runtime; GroupDescription: Install Scripting Runtime:
 
[Files]
Source: G:\Project VB\Goho\Report\*.*; DestDir: {cf}\Performance Edition Dec 2009\Report\; Flags: ignoreversion recursesubdirs
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\c1sizer.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\ticon3d8.ocx; DestDir: {sys}; 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:\Program Files\Microsoft SQL Server\80\Tools\Binn\sqldmo.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
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\scr56en.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,4.01; Tasks: ScriptingRuntime
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: G:\Project VB\Goho\PrGoho.exe; DestDir: {app}; Flags:  ignoreversion restartreplace;  
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
Source: G:\Project VB\Goho\UareUSDKDB.mdb; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\Background.jpg; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\Config.lic; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\dugo.spl; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\MXOTDLL.DLL; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\OSL_DLL_DLINK.dll; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\toolbar.tb2; DestDir: {app}; Flags:  ignoreversion;  
Source: G:\Project VB\Goho\UareUSDK.dll; DestDir: {app}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Microsoft SQL Server\MSSQL\Binn\SQLRESLD.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Microsoft SQL Server\MSSQL\Binn\SQLSVC.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;  
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:\WINDOWS\Crystal\CRXF_PDF.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\WINDOWS\Crystal\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:\WINDOWS\Crystal\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\BusinessObjects Enterprise 11.5\win32_x86\XERCES-C_2_1_0.DLL; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Microsoft SQL Server\MSSQL\Binn\W95SCM.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;
Source: C:\Program Files\Microsoft SQL Server\MSSQL\Binn\dbghelp.dll; DestDir: {sys}; Flags:  restartreplace sharedfile;  
Source: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\CRXI_5_RDC_Redistribution.msi; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
 
[INI]
 
[Icons]
Name: {group}\PrGoho ; Filename : {app}\PrGoho.exe; WorkingDir: {app}
Name: {group}{cm:UninstallProgram, PrGoho }; Filename: {uninstallexe}
Name: {commondesktop}\PrGoho ; Filename: {app}\PrGoho.exe; Tasks: Desktopicon ; WorkingDir: {app}
 
[Run]
Filename: {tmp}\VB_VC_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: AutoOSUpdater
Filename: msiexec.exe; Parameters: /package CRXI_5_RDC_Redistribution.msi /passive /promptrestart /l* {tmp}\crmsilog.txt; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: CRInstallation
Filename: {tmp}\scripten.exe; Parameters: /r:n /q:a; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: ScriptingRuntime
; 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@\b.5}{code:LogFileName|crviewer.dll}; WorkingDir: {code:GetCLSIDFldr|!F62B9FA4-455F-4FE3-8A2D-205E4F0BCAFB@\b.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}\PrGoho.exe; Description: {cm:LaunchProgram, PrGoho }; 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]
 
//============================================================================
// 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;
 
//============================================================================