Msadox.dll not registered by VB_DCOM_MDAC_JET_AutoSetup.exe

Started by Randem, February 21, 2008, 10:34:10 AM

Previous topic - Next topic

jcbaena

sorry..I dont understand. That file is not installed by VB_DCOM_MDAC_JET_AutoSetup.exe

Randem

No, the Automatic OS Updater does not install that file. Try using InnoScript to see the difference in the script.

jcbaena

I used isTool. But...one question:
 
Does VB_DCOM_MDAC_JET_AutoSetup.exe register this dlls (msadaox.dll and msjro.dll)? If you say yes that is the error because with that script i can see VB_DCOM_MDAC_JET_AutoSetup.exe does NOT register. I use my program (the dll exists) but fails. I run regsvr msadox.dll and my program runs perfectly. My script does not include that dll so VB_DCOM_MDAC_JET_AutoSetup.exe install it but doesnt register. That is my problem.
 
P.S: Sorry, Im from spain, my english is very poor.  

Randem

No, It's not included in with the MDAC component. If you used InnoScript to make your script it would have been included.

jcbaena

But...then...what is the problem? why if a register manually the msadox.dll the app works? don't B_DCOM_MDAC_JET_AutoSetup.exe register it?

Randem

The automatic OS Updater should be installing. Your script is a little confusing with all the commented lines. Have you tried running your VBP thru InnoScript to create your Inno Setup Script (Not the Inno Setup Wizard)?

You are missing msadox.dll because it does not get installed with MDAC. Run your package thru InnoScript for clarification of what should and should not be deployed. You are deploying a few files that you really should not. Please read Installation Problems for more help on this issue.

jcbaena

Here you have the complete script.
 
[Setup]
PrivilegesRequired=admin
AppName=Tasadaix
AppVerName=Tasadaix 2.0
AppPublisher=adaix.com
AppPublisherURL=http://www.adaix.com
AppSupportURL=http://www.adaix.com
AppUpdatesURL=http://www.adaix.com
DefaultDirName={commondocs}\Adaix.com\Tasadaix
DisableDirPage=yes
DefaultGroupName=Adaix\Tasadaix
DisableProgramGroupPage=yes
;LicenseFile=C:\Varios\Desarrollos\AlainBrand\Inmobiliaria\Licencia\Licencia.rtf
OutputBaseFilename=setup
SetupIconFile=C:\Varios\Desarrollos\AlainBrand\TasAdaix\Bmp\tasadaix.ico
Compression=lzma
SolidCompression=yes
WizardImageFile=C:\Varios\Desarrollos\InstalacionesInnoSetup\Inmoadaix\bmp\adaix.bmp
WizardSmallImageFile=C:\Varios\Desarrollos\InstalacionesInnoSetup\Inmoadaix\bmp\miniadaix.bmp
[Languages]
;Name: english; MessagesFile: compiler:Default.isl
Name: spanishstd; MessagesFile: compiler:Languages\Spanish.isl; LicenseFile: C:\Varios\Desarrollos\AlainBrand\Inmobiliaria\Licencia\Licencia-Esp.rtf
Name: French; MessagesFile: compiler:Languages\French.isl; LicenseFile: C:\Varios\Desarrollos\AlainBrand\Inmobiliaria\Licencia\Licencia-Frances.rtf
 
[Tasks]
;Name: desktopicon; Description: {cm:CreateDesktopIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
;Name: quicklaunchicon; Description: {cm:CreateQuickLaunchIcon}; GroupDescription: {cm:AdditionalIcons}; Flags: unchecked
;Name: DCOM98; Description: DCOM 1.3 for Windows 98; Flags: checkedonce; MinVersion: 4.1,0; OnlyBelowVersion: 4.9,0
;Name: MDAC; Description: Microsoft Data Access Components; Flags: checkedonce restart; MinVersion: 4.0,4.0; OnlyBelowVersion: 0,5.0
 
[Files]
;scrrun Windows 2000 y xp
Source: ..\inmoadaix\..\inmoadaix\ficheros\WindowsXP-Windows2000-Script56-KB917344-x86-esn.exe; DestDir: {tmp}; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02
;windows 98, millenium y NT
Source: ..\inmoadaix\ficheros\scr56en.exe; DestDir: {tmp}; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,4.01
 
;Instalacion del comctl32 de microsoft.
Source: ..\inmoadaix\ficheros\50comupd.exe; DestDir: {tmp}
Source: ..\inmoadaix\ficheros\VB_DCOM_MDAC_JET_AutoSetup.exe; DestDir: {tmp}; Flags: ignoreversion deleteafterinstall
Source: ..\..\AlainBrand\TasAdaix\tasadaix.exe; DestDir: {commondocs}\Adaix.com\TasAdaix; Flags: ignoreversion
Source: C:\Varios\Desarrollos\AlainBrand\AdaixCalendar\AdaixCalendar.exe; DestDir: {commondocs}\Adaix.com\TasAdaix; Flags: ignoreversion
Source: C:\Varios\Desarrollos\AlainBrand\Comun\adaixupdate.exe; DestDir: {commondocs}\Adaix.com\TasAdaix; Flags: ignoreversion
Source: ..\..\AlainBrand\TasAdaix\bdVacia\Tasadaix.mdb; DestDir: {commondocs}\Adaix.com\TasAdaix\Data; Flags: ignoreversion
Source: ..\..\AlainBrand\TasAdaix\724.doc; DestDir: {commondocs}\Adaix.com\TasAdaix; Flags: ignoreversion
Source: ..\..\AlainBrand\TasAdaix\25.doc; DestDir: {commondocs}\Adaix.com\TasAdaix; Flags: ignoreversion; Languages: French
Source: C:\Varios\Desarrollos\AlainBrand\Inmobiliaria\Replicador\InmoSync.exe; DestDir: {commondocs}\Adaix.com\TasAdaix; Flags: ignoreversion
; START DCOM
;Source: DCOM\dcom95.EXE; DestDir: {tmp}; CopyMode: alwaysoverwrite; MinVersion: 4.0,0; OnlyBelowVersion: 4.1,0; Tasks: DCOM95
;Source: DCOM\dcom98.exe; DestDir: {tmp}; MinVersion: 4.1,0; OnlyBelowVersion: 4.9,0; Tasks: DCOM98; Flags: ignoreversion
;Source: DCOM\dcom98.exe; DestDir: {tmp}; MinVersion: 4.1,0; OnlyBelowVersion: 4.9,0; Flags: ignoreversion
;Source: Redist\DCOM\dcm95cfg.exe; DestDir: {tmp}; CopyMode: alwaysoverwrite; MinVersion: 4.0,0; OnlyBelowVersion: 4.9,0; Tasks: DCOM95 DCOM98
; END DCOM
; START MDAC
;Source: MDAC\mdac_typ27.exe; DestDir: {tmp}; MinVersion: 4.0,0; OnlyBelowVersion: 4.1,0; Tasks: MDAC; Flags: ignoreversion
;Source: MDAC\mdac_typ27.exe; DestDir: {tmp}; MinVersion: 4.0,0; OnlyBelowVersion: 4.1,0; Flags: ignoreversion
; END MDAC
;Source: ..\inmoadaix\ficheros\VB6ES.DLL; DestDir: {sys}; Flags: promptifolder sharedfile
;Source: ..\inmoadaix\ficheros\COMCAT.DLL; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile regserver
;Source: ..\inmoadaix\ficheros\STDOLE2.TLB; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile regtypelib
;Source: ..\inmoadaix\ficheros\ASYCFILT.DLL; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile
;Source: ..\inmoadaix\ficheros\OLEPRO32.DLL; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile regserver
;Source: ..\inmoadaix\ficheros\OLEAUT32.DLL; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile regserver
;Source: ..\inmoadaix\ficheros\msvbvm60.dll; DestDir: {sys}; Flags: restartreplace uninsneveruninstall sharedfile regserver
Source: ..\inmoadaix\ficheros\Codejock.Calendar.v10.4.0.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
Source: ..\inmoadaix\ficheros\DXDBGrid.dll; DestDir: {sys}; Flags: promptifolder regserver sharedfile uninsneveruninstall
Source: ..\inmoadaix\ficheros\dXCtrls.dll; DestDir: {sys}; Flags: promptifolder regserver sharedfile uninsneveruninstall
Source: ..\inmoadaix\ficheros\FraPlus1.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
Source: ..\inmoadaix\ficheros\BtnPlus1.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
Source: ..\inmoadaix\ficheros\COMDLG32.OCX; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
Source: ..\inmoadaix\ficheros\DartWeb.dll; DestDir: {sys}; Flags: regserver sharedfile uninsneveruninstall promptifolder
Source: ..\inmoadaix\ficheros\DartSock.dll; DestDir: {sys}; Flags: sharedfile uninsneveruninstall regserver
Source: ..\inmoadaix\ficheros\MSDATLST.OCX; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
Source: ..\inmoadaix\ficheros\DATLSES.DLL; DestDir: {sys}; Flags: sharedfile uninsneveruninstall
Source: ..\inmoadaix\ficheros\TABCTL32.OCX; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
Source: ..\inmoadaix\ficheros\TABCTES.DLL; DestDir: {sys}; Flags: sharedfile uninsneveruninstall
Source: ..\inmoadaix\ficheros\MSCOMCTL.OCX; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
Source: ..\inmoadaix\ficheros\DownloadFile.ocx; DestDir: {sys}; Flags: sharedfile uninsneveruninstall
Source: ..\inmoadaix\ficheros\MSCmCES.dll; DestDir: {sys}; Flags: sharedfile uninsneveruninstall
Source: ..\inmoadaix\ficheros\MSADODC.OCX; DestDir: {sys}; Flags: restartreplace sharedfile regserver  uninsneveruninstall
Source: ..\inmoadaix\ficheros\ADODCES.DLL; DestDir: {sys}; Flags: sharedfile uninsneveruninstall
Source: ..\inmoadaix\ficheros\IsUninst.exe; DestDir: {app}
Source: ..\inmoadaix\ficheros\MSSTDFMT.DLL; DestDir: {sys}; Flags: regserver sharedfile uninsneveruninstall uninsneveruninstall
Source: ..\inmoadaix\ficheros\MSBIND.DLL; DestDir: {sys}; Flags: regserver sharedfile uninsneveruninstall uninsneveruninstall
;Source: ..\inmoadaix\ficheros\msjro.dll; DestDir: {sys}; Flags: regserver sharedfile uninsneveruninstall uninsneveruninstall
Source: ..\..\OCX\ShellURL.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
Source: ..\inmoadaix\ficheros\PolarCryptoLight.dll; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
Source: ..\inmoadaix\ficheros\COMCTL32.OCX; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
;Source: ..\inmoadaix\ficheros\shdocvw.dll; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
;INPUT PRO
Source: ..\inmoadaix\ficheros\Edt32x30.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
;Source: ..\inmoadaix\ficheros\EDT32D30.dll; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
;Source: ficheros\mem32x30.ocx; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
;Source: ficheros\MEM32D30.dll; DestDir: {sys}; Flags: restartreplace sharedfile regserver uninsneveruninstall
;Source: ..\inmoadaix\ficheros\msadox.dll; DestDir: {sys}; Flags: regserver sharedfile uninsneveruninstall uninsneveruninstall
 
 
[Registry]
; Delay MDAC installation on Win95 machines
;MDAC 2.0  
;Root: HKCU; Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce; ValueType: string; ValueName: MDAC_Setup; ValueData: {%TEMP}\mdac_typ.exe /Q /C:setup /QT; MinVersion: 4.0,0; OnlyBelowVersion: 4.1,0; Tasks: MDAC
;MDAC 2.6  
;Root: HKCU; Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce; ValueType: string; ValueName: MDAC_Setup; ValueData: {%TEMP}\mdac_typ.exe /Q:A /C:dasetup /Q:D /N; MinVersion: 4.0,0; OnlyBelowVersion: 4.1,0; Tasks: MDAC
Root: HKCU; Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce; ValueType: string; ValueName: MDAC_Setup; ValueData: {%TEMP}\mdac_typ27.exe /Q:A /C:dasetup /Q:D /N; MinVersion: 4.0,0; OnlyBelowVersion: 4.1,0
Root: HKCU; Subkey: software\adaix; Flags: deletekey
Root: HKCU; Subkey: Software\AdaixGroup\Tasadaix; Flags: uninsdeletekey dontcreatekey
 
[INI]
Filename: {app}\Adaix.url; Section: InternetShortcut; Key: URL; String: http://www.adaix.com
 
[Icons]
Name: {group}\Tasadaix; Filename: {app}\tasadaix.exe; IconIndex: 0
Name: {group}{cm:ProgramOnTheWeb,Inmoadaix}; Filename: {app}\inmoadaix.url
Name: {group}{cm:UninstallProgram,Tasadaix}; Filename: {uninstallexe}; IconFilename: {app}\IsUninst.exe
;Name: {userdesktop}\Inmoadaix; Filename: {app}\inmoadaix.exe; Tasks: desktopicon
Name: {userdesktop}\Tasadaix; Filename: {app}\tasadaix.exe; IconIndex: 0
;Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\Inmoadaix; Filename: {app}\inmoadaix.exe; Tasks: quicklaunchicon
Name: {userappdata}\Microsoft\Internet Explorer\Quick Launch\Tasadaix; Filename: {app}\tasadaix.exe; IconIndex: 0
Name: {group}\Calendario; Filename: {app}\AdaixCalendar.exe; IconFilename: {app}\AdaixCalendar.exe; IconIndex: 0
Name: {group}\AdaixSync; Filename: {app}\InmoSync.exe; WorkingDir: {app}; IconFilename: {app}\InmoSync.exe; IconIndex: 0
 
[Run]
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT WorkingDir: {tmp}; Flags: skipifdoesntexist
Filename: {tmp}\50comupd.exe; Parameters: /r:n /q:1; Check: ShouldInstallComCtlUpdate
Filename: {tmp}\WindowsXP-Windows2000-Script56-KB917344-x86-esn.exe; Parameters: /r:n /q:1; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02
Filename: {tmp}\scr56en.exe; Parameters: /r:n /q:1; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,4.01
 
; START DCOM
;Filename: {tmp}\dcom95.EXE; Parameters: /r:n /q:u; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: DCOM95; MinVersion: 4.0,0; OnlyBelowVersion: 4.1,0
;Filename: {tmp}\dcom98.exe; Parameters: /r:n /q:u; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: DCOM98; MinVersion: 4.1,0; OnlyBelowVersion: 4.9,0
;Filename: {tmp}\dcom98.exe; Parameters: /r:n /q:u; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.1,0; OnlyBelowVersion: 4.9,0
;Filename: {tmp}\dcm95cfg.exe; Parameters: /r:n /q:u; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: DCOM95 DCOM98; MinVersion: 4.0,0; OnlyBelowVersion: 4.9,0
; END DCOM
; START MDAC 2.0  (see also: http://support.microsoft.com/default.aspx?scid=KB;EN-US;Q192009&)
;Filename: {tmp}\mdac_typ.exe; Parameters: /Q /C:setup /QNT; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: MDAC; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,5.0
; END MDAC 2.0  
; START MDAC 2.6  (see also: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mdacsdk/htm/wphistory_redistributemdac.asp)
;Filename: {tmp}\mdac_typ27.exe; Parameters: /Q:A /C:dasetup /Q:D /N; WorkingDir: {tmp}; Flags: skipifdoesntexist; Tasks: MDAC; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,5.0
;Filename: {tmp}\mdac_typ27.exe; Parameters: /Q:A /C:dasetup /Q:D /N; WorkingDir: {tmp}; Flags: skipifdoesntexist; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,5.0
; END MDAC 2.6  
;Filename: {app}\inmoadaix.exe; Description: {cm:LaunchProgram,Inmoadaix}; Flags: nowait postinstall skipifsilent
 
[UninstallDelete]
Type: files; Name: {app}\adaix.url
 
[Code]
function ShouldInstallComCtlUpdate: Boolean;
var
  MS, LS: Cardinal;
begin
  // Only install if the existing comctl32.dll is

Randem

An extract doesn't help. How did you make this script? I need to see the whole script. The problem with an extract is you don't have any idea of why it doesn't work yet you decide what to remove... How can you know what to remove if you don't know why it isn't working?

jcbaena

Here you have an extract, Thanks on advance:
[Setup]
PrivilegesRequired=admin
AppName=XXX
AppVerName=XXX
AppPublisher=XXX.com
DefaultDirName={commondocs}\XX\XX
DisableDirPage=yes
DefaultGroupName=XX\XX
DisableProgramGroupPage=yes
OutputBaseFilename=setup
Compression=lzma
SolidCompression=yes
[Languages]
;Name: english; MessagesFile: compiler:Default.isl
Name: spanishstd; MessagesFile: compiler:Languages\Spanish.isl; LicenseFile: C:\Licencia-Esp.rtf
Name: French; MessagesFile: compiler:Languages\French.isl; LicenseFile: C:\Licencia-Frances.rtf
 
 
[Files]
;scrrun Windows 2000 y xp
Source: ..\XX\..\xxx\ficheros\WindowsXP-Windows2000-Script56-KB917344-x86-esn.exe; DestDir: {tmp}; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02
;windows 98, millenium y NT
Source: ..\xx\ficheros\scr56en.exe; DestDir: {tmp}; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,4.01
 
;Instalacion del comctl32 de microsoft.
Source: ..\xx\ficheros\50comupd.exe; DestDir: {tmp}
Source: ..\xx\ficheros\VB_DCOM_MDAC_JET_AutoSetup.exe; DestDir: {tmp}; Flags: ignoreversion deleteafterinstall
 
 
[Registry]
Root: HKCU; Subkey: SOFTWARE\Microsoft\Windows\CurrentVersion\RunOnce; ValueType: string; ValueName: MDAC_Setup; ValueData: {%TEMP}\mdac_typ27.exe /Q:A /C:dasetup /Q:D /N; MinVersion: 4.0,0; OnlyBelowVersion: 4.1,0
Root: HKCU; Subkey: software\xxx; Flags: deletekey
Root: HKCU; Subkey: Software\xxx\xxx; Flags: uninsdeletekey dontcreatekey
 
[INI]
Filename: {app}\xxx.url; Section: InternetShortcut; Key: URL; String: http://www.xxx.com
 
[Icons]
 
[Run]
Filename: {tmp}\VB_DCOM_MDAC_JET_AutoSetup.exe; Parameters: /NORESTART /VERYSILENT WorkingDir: {tmp}; Flags: skipifdoesntexist
Filename: {tmp}\50comupd.exe; Parameters: /r:n /q:1; Check: ShouldInstallComCtlUpdate
Filename: {tmp}\WindowsXP-Windows2000-Script56-KB917344-x86-esn.exe; Parameters: /r:n /q:1; MinVersion: 0,5.0; OnlyBelowVersion: 0,5.02
Filename: {tmp}\scr56en.exe; Parameters: /r:n /q:1; MinVersion: 4.1,4.0; OnlyBelowVersion: 0,4.01
 
[UninstallDelete]
Type: files; Name: {app}\xxx.url
 
[Code]
function ShouldInstallComCtlUpdate: Boolean;
var
  MS, LS: Cardinal;
begin
  // Only install if the existing comctl32.dll is

Randem

How are you sure the Automatic Updater has run. Show your script.

jcbaena

The clients doesnt have access installed. In my developer machine i have access 2000 with wxp sp2

Randem

I imagine that you are using Access? If so what Version of Access are you running?
 
BTW: What does your script look like?
 
(Message edited by randem on February 21, 2008)

jcbaena

Hello:
  In my program vb6 i have this code.
Dim Cat As Object
Dim Tbl As Object
Dim Col As Object
Set Cat = CreateObject(ADOX.Catalog)
Set Tbl = CreateObject(ADOX.Table)
Set Col = CreateObject(ADOX.Column)
 
This fails. It seems VB_DCOM_MDAC_JET_AutoSetup.exe does not register msadox.dll.
In the client (with admin) I execute regsvr32 c:....systemadomsadox.dll.
Then...my program works.
 
The inno setup is executed with admin privielegies...  
 
What i have to do to make the msadox.dll registered?  
Does VB_DCOM_MDAC_JET_AutoSetup.exe register this dlls?
 
Please, i have to distributed my program in many languajes.