I used innoscript 10.2 Build 5 and Inno setup compiler 5.3.9(a) to create installer for
my VB 6 application.
The installer is created successfully by Inno Setup.
The problem is when i install my application in other PC, i got following error :
Unable to register the DLL/OCX: RegSvr32 failed with exit code 0x3
This error appeared when the installer tried to register : DTSPUMP.DLL, DYSPKG.DLL and CUSTTASK.DLL
Appreciate your advise how to solve this error.
Please find below my innoscript:
; InnoScript Version 10.2 Build 5
; Randem Systems, Inc.
; Copyright (c) 2002 - 2010, 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.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\Fadjar\Application Data\Randem Systems\InnoScript\
; {localappdata} : C:\Documents and Settings\Fadjar\Local Settings\Application Data\Randem Systems\InnoScript\
; {cf} : C:\Program Files\Common Files\Randem Systems
; {tmp} : C:\Documents and Settings\Fadjar\Local Settings\Temp\
; {commonappdata} : C:\Documents and Settings\All Users\Application Data\Randem Systems\InnoScript\Release\
; {pf} : C:\Program Files\
; Date: July 06, 2010
; VB Runtime Files Folder: C:\Program Files\InnoScript 10\VB 6 Redist Files\
; Visual Basic Project File (.vbp): F:\SEAPSSystem\SEAPSMCS.vbp
; Inno Setup Script Output File (.iss): F:\SEAPSSystem\SEAPSMRP1006 Release.iss
;: C:\Documents and Settings\Fadjar\Local Settings\Application Data\Randem Systems\InnoScript\Release\Templates\Crystal Reports.tpl
; ------------------------
; References
; ------------------------
; OLE Automation - (stdole2.tlb)
; Microsoft Scripting Runtime - (scrrun.dll)
; Microsoft Data Formatting Object Library 6.0 (SP6) - (MSSTDFMT.DLL)
; Microsoft Excel 9.0 Object Library - (EXCEL.EXE)
; MIND Zip Library - (ZipLibrary.dll)
; Activex Component for Exporting - (DataExport.dll)
; Crystal Reports ActiveX Designer Design and Runtime Library 10.5 - (craxddrt.dll)
; Crystal Reports ActiveX Designer Run Time Library 10.0 - (craxdrt.dll)
; Microsoft DTS Custom Tasks Object Library - (custtask.dll)
; Microsoft ActiveX Data Objects 2.8 Library - (msado15.dll)
; --------------------------
; Components
; --------------------------
; Crystal ActiveX Report Viewer Library 10.0 - (crviewer.dll)
; Microsoft Common Dialog Control 6.0 (SP6) - (Comdlg32.ocx)
; Microsoft Windows Common Controls 6.0 (SP6) - (MSCOMCTL.OCX)
; Microsoft Tabbed Dialog Control 6.0 (SP6) - (TABCTL32.OCX)
; Microsoft Windows Common Controls-2 6.0 (SP6) - (MSCOMCT2.OCX)
; Microsoft ADO Data Control 6.0 (SP6) (OLEDB) - (MSADODC.OCX)
; Microsoft Hierarchical FlexGrid Control 6.0 (OLEDB) - (mshflxgd.ocx)
; FarPoint Spread 7.0 (OLEDB) - (FPSPR70.ocx)
; GMCSWaitWindow - (GMCSWaitWindow.ocx)
; GMCS Active X Controls - (GMCS_ActXCtl.ocx)
; WaitWindow - (WaitWindow.ocx)
; FarPoint Spread 6.0 - (SPR32X60.ocx)
[Setup]
SetupLogging=Yes
AppId=SEAPS MRP
;------------------------------------------------------------------------------------------------------------------------
; Taken from VBP/VBG Project File Parameters AppName, AppName AppVersion and Company
;------------------------------------------------------------------------------------------------------------------------
AppName=SEAPS MRP 1.0.0
AppVerName=SEAPSMRP
AppPublisher=SEAPS
;------------------------------------------------------------------------------------------------------------------------
AppVersion=1.0.0
VersionInfoVersion=1.0.0
AllowNoIcons=no
DefaultGroupName=\SEAPSMRP
DefaultDirName={pf}\SEAPS_MRP
AppCopyright=SEAPS
PrivilegesRequired=Admin
MinVersion=0,5.01
Compression=lzma
OutputBaseFilename=SEAPSMRP_SETUP
[Tasks]
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: C:\Program Files\InnoScript 10\VB 6 Redist Files\scripten.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02; Tasks: ScriptingRuntime
Source: C:\Program Files\InnoScript 10\VB 6 Redist Files\scr56en.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,4.01; Tasks: ScriptingRuntime
Source: F:\SEAPSSystem\DLL\MSSTDFMT.DLL; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\G-MCS\ZipLibrary.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\CNCSystem\DataExport.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Microsoft SQL Server\80\Tools\BINN\dtspump.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Microsoft SQL Server\80\Tools\BINN\dtspkg.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Microsoft SQL Server\80\Tools\BINN\custtask.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\Sato\Label Gallery v3 Integration Pack\Samples\LabelGallery\Visual Basic 6\LateBinding 2\Comdlg32.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: F:\SEAPSSystem\DLL\MSCOMCTL.OCX; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: F:\SEAPSSystem\DLL\TABCTL32.OCX; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: F:\SEAPSSystem\DLL\MSCOMCT2.OCX; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: F:\SEAPSSystem\DLL\MSADODC.OCX; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: F:\SEAPSSystem\DLL\mshflxgd.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\FarPoint Technologies\Spread70\Bin\FPSPR70.ocx; DestDir: {sys}; Flags: restartreplace sharedfile;
Source: C:\Program Files\G-MCS\GMCSWaitWindow.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\G-MCS\GMCS_ActXCtl.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\G-MCS\WaitWindow.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: C:\Program Files\G-MCS\SPR32X60.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile;
Source: F:\SEAPSSystem\SEAPSMRP.exe; DestDir: {app}; Flags: ignoreversion restartreplace;
Source: C:\Program Files\InnoScript 10\VB 6 Redist Files\VB_DCOM_MDAC_JET_AutoSetup_XP.exe; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; Tasks: AutoOSUpdater
Source: C:\Program Files\InnoScript 10\VB 6 Redist Files\CRX_RDC_Redistribution.msi; DestDir: {tmp}; Flags: deleteafterinstall ignoreversion nocompression; Tasks: CRInstallation
[INI]
Filename: {app}\SEAPSMRP.url; Section: InternetShortcut; Key: URL; String:
[Icons]
Name: {group}\SEAPS_MRP ; Filename : {app}\SEAPSMRP.exe; WorkingDir: {app}
Name: {group}{cm:ProgramOnTheWeb, SEAPS_MRP }; Filename: {app}\SEAPSMRP.url; IconFilename: {app}\SEAPS_MRP.ico
Name: {group}{cm:UninstallProgram, SEAPS_MRP }; Filename: {uninstallexe}
[Run]
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup_XP.exe; Parameters: /NORESTART /VERYSILENT; WorkingDir: {tmp}; Flags: skipifdoesntexist runascurrentuser; Tasks: AutoOSUpdater
Filename: msiexec.exe; Parameters: /package CRX_RDC_Redistribution.msi /passive /promptrestart /l* {app}\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|!3C62B3DD-12BE-4941-A787-EA25415DCD27@\a.0}{code:LogFileName|crviewer.dll}; WorkingDir: {code:GetCLSIDFldr|!3C62B3DD-12BE-4941-A787-EA25415DCD27@\a.0}\; StatusMsg: Registering crviewer.dll; Tasks: CRInstallation; Flags: runascurrentuser
;Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|!27ACBFDA-8DE9-446D-872F-11824636EF7C@\a.5}{code:LogFileName|craxddrt.dll}; WorkingDir: {code:GetCLSIDFldr|!27ACBFDA-8DE9-446D-872F-11824636EF7C@\a.5}\; StatusMsg: Registering craxddrt.dll; Tasks: CRInstallation; Flags: runascurrentuser
;Filename: regsvr32.exe; Parameters: /s {code:GetCLSIDFldr|!76691052-244D-4C07-8ECA-9FA4F1A25263@\a.0}{code:LogFileName|craxdrt.dll}; WorkingDir: {code:GetCLSIDFldr|!76691052-244D-4C07-8ECA-9FA4F1A25263@\a.0}\; StatusMsg: Registering craxdrt.dll; Tasks: CRInstallation; Flags: runascurrentuser
Filename: {app}\SEAPSMRP.exe; Description: {cm:LaunchProgram, SEAPS_MRP }; Flags: nowait postinstall skipifsilent runascurrentuser; WorkingDir: {app}
[UninstallDelete]
Type: files; Name: {app}\SEAPSMRP.url
Type: dirifempty; Name: {app}
[InstallDelete]
Type: files; Name: {app}\Install.log;
[Code]
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;
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;
Aloha fadjar,
Did InnoScript automatically place those files into your script or did you select for them to be placed into your script?
Hi, Randem
InnoScript automatically placed those files into my script, i din't select it manually
Ok, because when deploying SQL Server files in most all cases that I have seen, the whole BINN folder needed to be deployed not just the dll's or they will not register correctly.
Try deploying the whole SQL Server BINN folder then attempt registration. MS may require that MS SQL Server client be installed on the computer for the dll's to work.
Hi Randem
Yes, its work after SQL Client is installed.
However i think it is not the best solution.
It won't be convenience for end-user
All DLL and OCX should be in one installer.
Thank you for your advise
fadjar
You can install the SQL client at the same time you install your app. Convenience is not a shortcut, you need to install everything that the client needs for your app to work or at least tell them that the SQL Server Client is a prerequisite.
When you take shortcuts you have no idea of what your app needs to run. If it needs SQL Client it needs SQL Client not just a few dll's that you have no idea of how they interact with the rest of the client.
OK, Thank you for your advice