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

bibin98

Ohh... you mean these ones should I add on the top lines of [Run] Section?
 
[Files]
Source: C:WINDOWSsystem32tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:WINDOWSsystem32tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;

Randem

Your WorkingDir should be {app}
 
What about the lines I told you to add to the template???

bibin98

This is my Templates file, I save it using ComponentOne.tpl :
 
[Run]
Filename: {app}c1regsvr.exe; Parameters: /u tidate8.ocx; Flags: skipifdoesntexist; WorkingDir: C:WINDOWSsystem32
Filename: {app}c1regsvr.exe; Parameters: /u tinumb8.ocx; Flags: skipifdoesntexist; WorkingDir: C:WINDOWSsystem32
 
Is it correct? I confused in WorkingDir should I write C:WINDOWSsystem32 OR {sys}?
 
Thx

bibin98

Yes indeed, my ticon3d8.ocx is'nt used anymore but I added it in TPL hehehe, I have updated it.
 
Thanks

Randem

Copy these lines to the template under the [Files] Section
 
 
[Files]
Source: C:WINDOWSsystem32tidate8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:WINDOWSsystem32tinumb8.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;  
 
I don't see where you are deploying ticon3d8.ocx, but you have it in the [Run] section.

bibin98

This is my script:
 
; InnoScript Version 10.3  Build 3
; 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 2)
 
; Derived from VB VBP Project File
 
; Designed for Inno Setup Version: 5.3.10 (a)
; Installed Inno Setup Version: 5.3.10 (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: August 04, 2010
 
;              VB Runtime Files Folder:   C:\Program Files\Randem Systems\InnoScript\InnoScript 10\VB 6 Redist Files\
;     Visual Basic Project File (.vbp):   D:\Project VB\RajaPaksi\PrRajaPaksi.vbp
; Inno Setup Script Output File (.iss):   D:\Project VB\RajaPaksi\Scripts\PrRajaPaksi 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
;:   C:\Documents and Settings\Administrator\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\ComponentOne.tpl
 
; ------------------------
;        References
; ------------------------
 
; Microsoft ActiveX Data Objects 2.7 Library - (msado27.tlb)
; Microsoft Data Binding Collection VB 6.0 (SP4) - (MSBind.dll)
 
 
; --------------------------
;        Components
; --------------------------
 
; Data Dynamics ActiveBar 2.0 - (Actbar2.ocx)
; Crystal Report Control - (Crystl32.OCX)
; ComponentOne True DBGrid Pro 8.0 (OLEDB) - (todg8.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; Microsoft Common Dialog Control 6.0 (SP6) - (Comdlg32.ocx)
; FindButton by Bibin - (FindButton.ocx)
; ActiveSplash 1.0 Type Library - (actsplash.ocx)
; ComponentOne True DBDate 8.0 - (tidate8.ocx)
; ComponentOne True DBList Pro 8.0 (OLEDB) - (todl8.ocx)
; ComponentOne True DBNumber 8.0 - (tinumb8.ocx)
; Microsoft Tabbed Dialog Control 6.0 (SP6) - (tabctl32.ocx)
 
 
[Setup]
SetupLogging=Yes
AppId=RajaPaksi  
 
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
 
AppName=RajaPaksi 1.0.0
AppVerName=RajaPaksi  
AppPublisher=DarkOS
 
;------------------------------------------------------------------------------------------------------------------------
 
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=yes
DefaultGroupName=DarkOS\PrRajaPaksi  
DefaultDirName={pf}\DarkOS\PrRajaPaksi 1  
PrivilegesRequired=None
MinVersion=0,5.01
Compression=lzma
OutputBaseFilename=PrRajaPaksi0100000Release
 
[Tasks]
Name: Desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}
Name: AutoOSUpdater; Description: Install Support for Database Operations; GroupDescription: Database Support:
Name: CRInstallation; Description: Install Crystal Reports Runtime Files; GroupDescription: Install CR Runtime Files:
 
[Files]
Source: D:\Project VB\RajaPaksi\Report\*.*; DestDir: {app}\Report\; Flags: ignoreversion recursesubdirs
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: C:\Program Files\Randem Systems\InnoScript\InnoScript 10\CR85_RDC_Redistribution.exe; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
Source: D:\Project VB\RajaPaksi\Toolbar.tb2; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\RajaPaksi\Administrator.jpg; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\RajaPaksi\config.lic; DestDir: {app}; Flags:  ignoreversion;  
Source: D:\Project VB\RajaPaksi\RajaPaksi.spl; DestDir: {app}; Flags:  ignoreversion;  
Source: C:\Program Files\ComponentOne Studio\Chart8\Bin\c1regsvr.exe; DestDir: {app}; 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\todg8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Microsoft Visual Studio\Common\Tools\VB\Controls\Controls_Backup\MSCOMCTL.OCX; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Microsoft Visual Studio\Common\Tools\VB\Controls\Controls_Backup\Comdlg32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\FindButton.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\actsplash.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\tidate8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\todl8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\WINDOWS\system32\tinumb8.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Microsoft Visual Studio\Common\Tools\VB\Controls\Controls_Backup\MSBind.dll; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\Microsoft Visual Studio\Common\Tools\VB\Controls\Controls_Backup\tabctl32.ocx; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
Source: C:\Program Files\PrRajaPaksi\PrRajaPaksi.exe; DestDir: {app}; Flags:  ignoreversion restartreplace;  
Source: C:\Program Files\Microsoft Visual Studio\Common\Tools\VB\Controls\Controls_Backup\MSSTDFMT.DLL; DestDir: {sys}; Flags:  regserver restartreplace sharedfile;  
 
[INI]
Filename: {app}\PrRajaPaksi.url; Section: InternetShortcut; Key: URL; String:  
 
[Icons]
Name: {group}\PrRajaPaksi ; Filename : {app}\PrRajaPaksi.exe; WorkingDir: {app}
Name: {group}{cm:ProgramOnTheWeb, PrRajaPaksi }; Filename: {app}\PrRajaPaksi.url; IconFilename: {app}\PrRajaPaksi.ico
Name: {group}{cm:UninstallProgram, PrRajaPaksi }; Filename: {uninstallexe}
Name: {commondesktop}\PrRajaPaksi ; Filename: {app}\PrRajaPaksi.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: {tmp}\CR85_RDC_Redistribution.exe; Parameters: /NORESTART /VERYSILENT; 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|!00025600-0000-0000-C000-000000000046@\8.0.0.4}{code:LogFileName|crystl32.ocx}; WorkingDir: {code:GetCLSIDFldr|!00025600-0000-0000-C000-000000000046@\8.0.0.4}\; StatusMsg: Registering Crystal Report Control; Tasks: CRInstallation; Flags: runascurrentuser
Filename: {app}\PrRajaPaksi.exe; Description: {cm:LaunchProgram, PrRajaPaksi }; Flags: nowait postinstall skipifsilent runascurrentuser; WorkingDir: {app}
Filename: {app}\c1regsvr.exe; Parameters: /u tidate8.ocx; Flags: skipifdoesntexist; WorkingDir: C:\WINDOWS\system32
Filename: {app}\c1regsvr.exe; Parameters: /u ticon3d8.ocx; Flags: skipifdoesntexist; WorkingDir: C:\WINDOWS\system32
Filename: {app}c1regsvr.exe; Parameters: /u tinumb8.ocx; Flags: skipifdoesntexist; WorkingDir: C:\WINDOWS\system32
 
[UninstallDelete]
Type: files; Name: {app}\PrRajaPaksi.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]
 
//============================================================================
// Get the CLSID from the registry for the queried file to locate where this file was installed by the CR merge module
// We do this so that we know where to register the file after installation.
//============================================================================
 
function GetCLSIDFldr(Param: String): String;
var
  Location: String;
  CSLID: String;
  LogFile: String;
  sStr: String;
begin
  CSLID := Param;
  StringChangeEx(CSLID, '!', '{', True);
  StringChangeEx(CSLID, '@', '}', True);
 
  LogFile := ExpandConstant('{app}')   '\Install.log';
  SaveStringToFile(LogFile, #13#10   CSLID   #13#10, True);
 
  if not RegQueryStringValue(HKEY_CLASSES_ROOT, 'TypeLib\'   CSLID   '\0\win32','', Location) then
     Result := 'Not Registered !!!'   #13#10   'Possible Wrong Crystal Reports Version Installed on Source Machine or '   #13#10   'Wrong CRystal Reports Merge Module Installed on Target Machine'   #13#10;
     
  begin
    Location := ExpandConstant(Location)
    sStr := #13#10   Location   #13#10   StringOfChar('*',70)   #13#10
    SaveStringToFile(LogFile, sStr, True);
    Result := ExtractFileDir(Location);
  end;
end;
 
//-----------------------------------------------------------------------------------------------------------------
// Log the filename process to a log file  
//-----------------------------------------------------------------------------------------------------------------
 
function LogFileName(Filename: String): String;
var
  LogFile: String;
  sSTr: String;
begin
  LogFile := ExpandConstant('{app}')   '\Install.log';
  sStr := #13#10   'Registering '   Filename   #13#10;
  SaveStringToFile(LogFile, sStr, True);
  Result := Filename;
end;
 
//============================================================================

Randem

It would actually be best to copy those lines in the [Files] section of those files to the template and remove the regserver flag from the line there. InnoScript will replace the lines with the ones from the template each time you create a new script.

Randem

You have to give me some idea of where you are confused?
 
Each file in the [Run] section that is being registered with c1regsvr.exe you will revove regserver from the line in the [Files] section the same file that is being registerd by c1regsvr.exe

bibin98


Randem

Yes, but did you remove the regserver flag from those files that are going to be registered by c1regsvr.exe. You can't register those files in the conventional way, that is why you need the lines in the [Run] section.

bibin98

c1regsvr.exe is in my folder C:\Program Files\ComponentOne Studio\Chart8\Bin
 
Then I have to use Add Files Tab to insert c1regsvr.exe?
 
Is it right to change the Filename and Working Dir to C:\Program Files\ComponentOne Studio\Chart8\Bin?
 
I have tried and in the last installation, error occurs
 

Randem

If you put those lines in a template the color you see is not red but a shade of red. Look carefully or you can change the color of added lines from the main menu.
 
Also is {pf}ComponentOne StudioChart8Bin where you are installing c1regsvr.exe?

bibin98

[Run]
Filename: {pf}ComponentOne StudioChart8Binc1regsvr.exe; Parameters: /u tidate8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}Programs
Filename: {pf}ComponentOne StudioChart8Binc1regsvr.exe; Parameters: /u ticon3d8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}Programs
Filename: {pf}ComponentOne StudioChart8Binc1regsvr.exe; Parameters: /u tinumb8.ocx; Flags: skipifdoesntexist; WorkingDir: {app}Programs
 
 
3 files above is in red color. Where I make a mistakes?

Randem

That is correct. c1regsvr.exe is a ComponentOne file NOT a Windows System file.

bibin98

Ohh... I thought the file in my CPU.
 
Then it means that I have to include file c1regsvr.exe in the InnoScript? so I can register it after the OCX's installed on the target machine?