SQLDMO not found

Started by Randem, April 14, 2011, 09:40:06 PM

Previous topic - Next topic

Randem

No, as in the documentation it describes why a template with the name of your project is created. It is created so that you can do exactly what I proposed.  
 
BTW: Private training and consulting is at a rate of $75/hr...

bibin98

I don't create file SilviaCell.tpl, how come it appear in InnoScript, and the file is 0 KB hehehe... weird isn't it.... Can u reply me via email jazzfantasy2003@yahoo.com so we can chatt more attratively and direct message. Thanks

Randem

The one with the name of your project:
 
D:Project VBSilvia CellinstallerTemplatesSilviaCell.tpl

bibin98

Which template file should I change?

Randem

BTW: Your Template file should have these lines added if you did not add those files to the unsafe file list. This will achieve the results of removing those lines from the script at generation time. Notice the minus sign at the beginning of each line that is to be removed from the script.  
 
[Files]
-Source: C:Program FilesBusiness ObjectsCommon3.5binCRTOWORDS_EN.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binUFMANAGER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binQUERYBUILDER.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binCHARTUI.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binCRANALYZER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binCRDB_DICTIONARY.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binCRXF_PDF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binCRXF_RTF.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binCRXF_WORDW.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binCRXF_XLS.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binU2FXML.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binCRDEPLOY.REG; DestDir: {app}; Flags: ignoreversion;
-Source: C:Program FilesBusiness ObjectsCommon3.5binPARAMETERDESIGNER.DLL; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binCRLOV.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
-Source: C:Program FilesBusiness ObjectsCommon3.5binXERCES-C_2_1_0.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;

bibin98

hmmm.... If I right click https://randemsystems.com/scripts/downloadit.php?filename=CRX_RDC_ReportEngine.zip and download with IDM 6.05 said error because file CRX_RDC_Reportengine.zip doesn't exist but if I copy the text is safe hehehe.... so weird.. but thanks I have already download the file


bibin98

Yes I have remove the AutomaticOS Updater and I download all the manual OS Updater file from your site and I still cannot download https://randemsystems.com/scripts/downloadit.php?filename=CRX_RDC_Reportengine.zip, OK I will remove BO FixPack 3.5 if it isn't necessary. Thanks

Randem

BTW: The script that you posted does not have the Automatic OS Updater in it, but it still has the Business Objects FixPack 3.5 files still in it. You should add those files to the unsafe file list or remove them with the aid of a template process.

Randem

InnoScript does not ask for the Automatic OS Updater unless you choose it from the drop down menu. In that same menu select 'NONE' to not have it added to the script then when you run InnoScript again it will put the correct MDAC and JET installations into your script which will result in a much smaller installation to deploy.

Randem

Thanks for reporting this error. It has been fixed and you can download from those links now.



bibin98

; InnoScript Version 10.5  Build 5
; Randem Systems, Inc.
; Copyright (c) 2002 - 2011, Randem Systems, Inc.
; Website:  https://randemsystems.com
; Support:  https://randemsystems.support
; OS: Windows XP 5.1 build 2600 (Service Pack 3)
 
; Derived from VB VBP Project File
 
; Designed for Inno Setup Version: 5.4.0 (a)
; Installed Inno Setup Version: 5.4.0 (a)
 
; Date: April 19, 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: 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:\Program Files\Randem Systems\InnoScript\InnoScript 10\CRXI_5_RDC_Redistribution.msi; DestDir: {tmp}; Flags:  deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
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: e:\server data\Randem\Develop\Support\mdac_typ_281.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,6.0; Tasks: DatabaseSupport
Source: e:\server data\Randem\Develop\Support\mdac_typ_20.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
Source: e:\server data\Randem\Develop\Support\Jet35sp3.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 4.0,4.0; Tasks: DatabaseSupport
Source: e:\server data\Randem\Develop\Support\Jet40SP8_WXP.exe; DestDir: {tmp}; Flags: ignoreversion; MinVersion: 0,5.01; OnlyBelowVersion: 0,5.01sp1; Tasks: DatabaseSupport
Source: e:\server data\Randem\Develop\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}; 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;
 
//============================================================================

bibin98

Hi randem, thx for the answer...
I have 1 question, if I don't include AutomaticOS Updater in my script, the InnoScript asking about this file
 
Microsoft Data Access 2.7 Components (Installed with Windows XP)
Microsoft Jet 4.0 SP7 XP Components (Installed with XP).
 
So am I doing wrong if I include VB_VC_DCOM_MDAC_JET_AutoSetup.exe ?