Results 1 to 19 of 19

Thread: Need help with installing ocx files during deployment

  1. #1

    Thread Starter
    Member midway's Avatar
    Join Date
    Apr 2006
    Posts
    39

    Need help with installing ocx files during deployment

    Hi,

    I did a project using databases and MS mail api. It works fine on my computer, But if I try to install into someone else's computer it gives a error. Looks like MSMAPI32.OCX and MSADODB.OCX are missing in their comp. I am using InnoSetup and how can I install these OCX files when the they run the setup?

    Thanks & Cheers!
    Kumar

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333

    Re: Need help with installing ocx files during deployment

    What is the error message?

  3. #3
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Need help with installing ocx files during deployment

    You have to include them in your setup package to be installed and registered. How did you create you script by hand? Take a look at Inno Setup Third Party Tools in my signature. Perhaps you will find something that can help you generate a complete script with all dependencies and will register them also.

  4. #4

    Thread Starter
    Member midway's Avatar
    Join Date
    Apr 2006
    Posts
    39

    Re: Need help with installing ocx files during deployment

    It says MSMAPI31.OCX not registered or missing. Same with MSADODB.OCX. When i manually put it those files into system32 folder, it works fine.

    Cheers!
    Quote Originally Posted by Hack
    What is the error message?

  5. #5

    Thread Starter
    Member midway's Avatar
    Join Date
    Apr 2006
    Posts
    39

    Re: Need help with installing ocx files during deployment

    Thank, I will look into it. I used Innosetup to package the files to a setup files. I am a noob, so I am not very familiar with packaging.

    Cheers!

    Quote Originally Posted by randem
    You have to include them in your setup package to be installed and registered. How did you create you script by hand? Take a look at Inno Setup Third Party Tools in my signature. Perhaps you will find something that can help you generate a complete script with all dependencies and will register them also.

  6. #6
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Need help with installing ocx files during deployment

    Try Using ********** to Create your Inno Setup Script. You can avoid problems like this in the future.

  7. #7

    Thread Starter
    Member midway's Avatar
    Join Date
    Apr 2006
    Posts
    39

    Re: Need help with installing ocx files during deployment

    Thanks a lot. I will try to use that. It looks pretty easy. Meanwhile I have another question. if I copy those ocx files into the system32 folder, the program starts up ok. The MAPI works and sends mail. But if I try to connect to a access database it says "ADODC1 - Provider cannot be found, it may not be properly installed" and then gives a error "Run time error 3706, application-defined or object-defined error" and closes the program. Why does it happen? What should I do?

    Cheers!
    Kumar

    Quote Originally Posted by randem
    Try Using ********** to Create your Inno Setup Script. You can avoid problems like this in the future.

  8. #8
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Need help with installing ocx files during deployment

    You have to create a proper installation package with all the dependencies.

  9. #9

    Thread Starter
    Member midway's Avatar
    Join Date
    Apr 2006
    Posts
    39

    Re: Need help with installing ocx files during deployment

    But those are the two files which my project says missing when I install in a different comp. But copying the files in solves the problem of starting the program but only it doesnt run. I dont know what else i am missing. How do I find that out? Probably I shuld post a copy of my work.

    The program can be found at www.andrews.edu/~gunaseka/project

    Cheers!
    Quote Originally Posted by randem
    You have to create a proper installation package with all the dependencies.

  10. #10
    Smitten by reality Harsh Gupta's Avatar
    Join Date
    Feb 2005
    Posts
    2,938

    Re: Need help with installing ocx files during deployment

    just copying the DLLs or OCXs cannot make them work. you need to install them properly in order to get work done.

    to register the OCXs, goto

    Start -> Run.

    in the Run dialog box type

    RegSvr32.exe path and name of the OCX

    when you create a setup package using Inno, it doesnot create scripts which actually installs the VB runtime packages and other Active X components required by your project. for this you need 3rd party Script editors for Inno. please take a look here for such editors.
    Show Appreciation. Rate Posts.

  11. #11
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Need help with installing ocx files during deployment

    midway,

    Then you did not create a proper installation.

  12. #12

    Thread Starter
    Member midway's Avatar
    Join Date
    Apr 2006
    Posts
    39

    Re: Need help with installing ocx files during deployment

    THanks, I tried registering the ocx as you said but still I get the same problem. "ADODC1 - Provider cannot be found, it may not be properly installed" and then gives a error "Run time error 3706, application-defined or object-defined error" and closes the program. I dont know what is wrong.

    You can download the program from www.andrews.edu/~gunaseka/project and check it out.

    Cheers!

    Quote Originally Posted by Harsh Gupta
    just copying the DLLs or OCXs cannot make them work. you need to install them properly in order to get work done.

    to register the OCXs, goto

    Start -> Run.

    in the Run dialog box type

    RegSvr32.exe path and name of the OCX

    when you create a setup package using Inno, it doesnot create scripts which actually installs the VB runtime packages and other Active X components required by your project. for this you need 3rd party Script editors for Inno. please take a look here for such editors.

  13. #13
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Need help with installing ocx files during deployment

    midway,

    No one is going to download exes. If you post your project then maybe someone will look into it.

  14. #14

    Thread Starter
    Member midway's Avatar
    Join Date
    Apr 2006
    Posts
    39

    Re: Need help with installing ocx files during deployment

    Ok, I have zipped my project and uploaded it. Please take a look. There are two VB project files "ng" and "project". "project.vbp" is the working one.

    Thanks in advance

    Cheers!
    Kumar

    Quote Originally Posted by randem
    midway,

    No one is going to download exes. If you post your project then maybe someone will look into it.
    Attached Files Attached Files

  15. #15
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Need help with installing ocx files during deployment

    Where did you get the info that you needed this file MSADODB.OCX. This is what your project returns from **********:

    ; ********** Version 5.3 Build 4
    ; Randem Systems, Inc.
    ; Copyright 2003-2006
    ; website: http://www.***********
    ; support: http://www.**********.com/cgi-bin/discus/discus.cgi

    ; Date: May 03, 2006

    ; VB Runtime Files Folder: C:\Program Files\Randem Systems\**********\********** 5.2\VB 6 Redist Files\
    ; Visual Basic Project File (.vbp): C:\TEMP\midway\NG Project\NG Project\Project.vbp
    ; Inno Setup Script Output File (.iss): C:\TEMP\midway\NG Project\NG Project\Project.iss

    ; ------------------------
    ; References
    ; ------------------------

    ; Visual Basic For Applications - (MSVBVM60.DLL)
    ; Standard OLE Types - (OLEPRO32.DLL)
    ; OLE Automation - (STDOLE2.TLB)
    ; Microsoft Data Formatting Object Library - (MSSTDFMT.DLL)
    ; Microsoft DAO 3.51 Object Library - (DAO350.DLL)
    ; Microsoft ActiveX Data Objects 2.6 Library - (msado26.tlb)
    ; ODBC Driver & Data Source Name Functions - (ODBCTOOL.DLL)
    ; Microsoft Internet Controls - (shdocvw.dll)


    ; --------------------------
    ; Components
    ; --------------------------

    ; Microsoft Common Dialog Control 6.0 (SP6) - (comdlg32.ocx)
    ; Microsoft ADO Data Control 6.0 (SP6) (OLEDB) - (MSADODC.OCX)
    ; Microsoft MAPI Controls 6.0 - (MSMAPI32.OCX)


    [Setup]
    AppName=Project1
    AppVerName=Project1 1.0.0
    AppPublisher=KaffeinePhree
    AppVersion=1.0.0
    VersionInfoVersion=1.0.0
    AllowNoIcons=no
    DefaultGroupName=Project
    DefaultDirName={pf}\Project
    AppCopyright=
    PrivilegesRequired=Admin
    MinVersion=4.0,4.0sp6
    Compression=lzma
    OutputBaseFilename=C&PD1100Release

    [Tasks]

    [Files]
    Source: c:\program files\randem systems\**********\********** 5.2\vb 6 redist files\msvbvm60.dll; DestDir: {sys}; Flags: sharedfile
    Source: c:\program files\randem systems\**********\********** 5.2\vb 6 redist files\oleaut32.dll; DestDir: {sys}; Flags: sharedfile
    Source: c:\program files\randem systems\**********\********** 5.2\vb 6 redist files\olepro32.dll; DestDir: {sys}; Flags: sharedfile
    Source: c:\program files\randem systems\**********\********** 5.2\vb 6 redist files\asycfilt.dll; DestDir: {sys}; Flags: sharedfile
    Source: c:\program files\randem systems\**********\********** 5.2\vb 6 redist files\stdole2.tlb; DestDir: {sys}; Flags: regtypelib
    Source: c:\program files\randem systems\**********\********** 5.2\vb 6 redist files\comcat.dll; DestDir: {sys}; Flags: sharedfile
    Source: c:\program files\common files\microsoft shared\dao\dao350.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
    Source: c:\program files\common files\system\ado\msado26.tlb; DestDir: {sys}; Flags: uninsneveruninstall regtypelib
    Source: c:\program files\microsoft visual studio\common\tools\ape\odbctool.dll; DestDir: {sys}; Flags: regserver restartreplace sharedfile
    Source: c:\windows\system32\comdlg32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
    Source: c:\windows\system32\msadodc.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
    Source: c:\windows\system32\msmapi32.ocx; DestDir: {sys}; Flags: regserver restartreplace sharedfile
    Source: c:\temp\midway\ng project\ng project\c&pd1.0.exe; DestDir: {app}; Flags: ignoreversion

    [INI]
    Filename: {app}\C&PD1.url; Section: InternetShortcut; Key: URL; String:

    [Icons]
    Name: {group}\Project1; Filename: {app}\C&PD1.0.exe; WorkingDir: {app}
    Name: {group}\Project1 on the Web; Filename: {app}\C&PD1.url
    Name: {group}\Uninstall Project1; Filename: {uninstallexe}

    [Run]
    Filename: {app}\C&PD1.0.exe; Description: Launch Project1; Flags: nowait postinstall skipifsilent; WorkingDir: {app}

    [UninstallDelete]
    Type: files; Name: {app}\C&PD1.url

  16. #16

    Thread Starter
    Member midway's Avatar
    Join Date
    Apr 2006
    Posts
    39

    Re: Need help with installing ocx files during deployment

    I tried installing it on a friends computer and ran it. Then it popped an error message saying that msadodb.ocx and msmapi32.ocx files are not installed or not registered properly.

    CHeers!
    Kumar

  17. #17
    Junior Member
    Join Date
    Dec 2004
    Posts
    16

    Re: Need help with installing ocx files during deployment

    Hi

    I used to have similar problem.

    U need to register the ocx.Showing the steps for registering the msflexgrid.ocx

    2.0 Copy msflexgrid.ocx to root C:\ drive, so that its path becomes C:\ msflxgrd.ocx.

    3.0 Click Start->Run from main window

    4.0 Following dialog box will appear. Type regsvr32 C:\msflxgrd.ocx and press Ok.

    A message will appear on process success.


    Most of the installers have the option of registering the OCX files.

  18. #18
    Banned randem's Avatar
    Join Date
    Oct 2002
    Location
    Maui, Hawaii
    Posts
    11,385

    Re: Need help with installing ocx files during deployment

    Perhaps the MAPI has a service pack that needs to be installed for those controls to work properly.

  19. #19

    Thread Starter
    Member midway's Avatar
    Join Date
    Apr 2006
    Posts
    39

    Re: Need help with installing ocx files during deployment

    Let me try doing that. I will let you know. THanks a lot.

    Cheers!
    Kumar

    Quote Originally Posted by justforsomefun2000
    Hi

    I used to have similar problem.

    U need to register the ocx.Showing the steps for registering the msflexgrid.ocx

    2.0 Copy msflexgrid.ocx to root C:\ drive, so that its path becomes C:\ msflxgrd.ocx.

    3.0 Click Start->Run from main window

    4.0 Following dialog box will appear. Type regsvr32 C:\msflxgrd.ocx and press Ok.

    A message will appear on process success.


    Most of the installers have the option of registering the OCX files.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width